![]() ![]() Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. The image is simply loaded into the application's virtual address space and theĭllMain function is called, if one is present.Īll ImageHlp functions, such as this one, are single threaded. If an application can rely on a DLL being loaded at the desired load address, then the system loader does not have to relocate the image. ![]() You can rebase an image to reduce the required load time for its DLLs. This operation involves reading the entire image and updating all fixups, debugging information, and checksum. ReBaseImage function changes the desired load address for the specified image. To retrieve extended error information, call If the function fails, the return value is FALSE. If the function succeeds, the return value is TRUE. If this parameter is 0, the current file header time date stamp is incremented by 1 second. The value must be represented in the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Universal Coordinated Time, according to the system clock. The new time date stamp for the image file header. If fGoingDown is FALSE, the function finds a new base address but does not set this parameter to the new base address. If the address is not available and the fGoingDown parameter is set to TRUE, the function finds a new base address and sets this parameter to the new base address. The base address to use for rebasing the image. The maximum size that the image can grow to, in bytes, or zero if there is no limit.Ī pointer to a variable that receives the original image size, in bytes.Ī pointer to a variable that receives the original image base.Ī pointer to a variable that receives the new image size after the rebase operation, in bytes. If this value is TRUE, the image can be rebased below the given base otherwise, it cannot. Otherwise, the system image is not rebased. If this value is TRUE, the system image is rebased. If this value is TRUE, the image is rebased. Note that even if the symbol path is not valid, the function will succeed if it is able to rebases your image. Specify this path for executable images that have symbolic information because when image addresses change, the corresponding symbol database file (PDB) may also need to be changed. The path used to find the corresponding symbol file. You must specify the full path to the file unless the module is in the current working directory of the calling process. Note that this function is implemented as a call to the This tool is available in Visual Studio and the Windows SDK. Changes the load address for the specified image, which reduces the required load time for a DLL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |