You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brian Gianforcaro edited this page Aug 22, 2020
·
6 revisions
DetourGetModuleSize
Return the load size of a module.
Definition
ULONGDetourGetModuleSize(
_In_ HMODULE hModule
);
Parameters
hModule
: The handle to the module whose load size is desired.
Return value
Returns the size of the module in bytes, if it can be determined;
otherwise, returns 0.
Error codes
The function sets one of the following error codes, as appropriate. The
error code may be retrieved after the function has returned by calling
GetLastError.
ERROR_BAD_EXE_FORMAT
: The MZ header of specified module is invalid.
ERROR_EXE_MARKED_INVALID
: The NT COFF header of the specified module is invalid.
ERROR_INVALID_EXE_SIGNATURE
: The NT COFF header of the specified module has an invalid signature.