GetTimestampForLoadedLibrary function (dbghelp.h)
Retrieves the time stamp of a loaded image.
Syntax
DWORD IMAGEAPI GetTimestampForLoadedLibrary(
[in] HMODULE Module
);
Parameters
[in] Module
The base address of an image that is mapped into memory by a call to the MapViewOfFile function.
Return value
If the function succeeds, the return value is the time stamp from the image.
If the function fails, the return value is zero. To retrieve extended error information, call GetLastError.
Remarks
The time stamp for an image is initially set by the linker, but it can be modified by operations such as rebasing. The value is represented in the number of seconds elapsed since midnight (00:00:00), January 1, 1970, Universal Coordinated Time, according to the system clock. The time stamp can be printed using the C run-time (CRT) function ctime.
All DbgHelp Functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dbghelp.h |
Library | Dbghelp.lib |
DLL | Dbghelp.dll |
Redistributable | DbgHelp.dll 5.1 or later |