-
Notifications
You must be signed in to change notification settings - Fork 5
GetMD5OfModule
nyfrk edited this page Aug 22, 2020
·
1 revision
Compute the MD5 checksum of the file of a loaded module.
HRESULT ISettlers4Api::GetMD5OfModule(
HMODULE module,
LPSTR out,
SIZE_T sz
);
module
A handle to the loaded module whose file is used to compute the MD5. If this parameter is NULL, GetMD5OfModule will compute the MD5 of the executable of the current process (usually S4_Main.exe).
out
A pointer to a buffer that receives the MD5 in ASCII formatted text. Make sure it can at least hold 33 characters for the complete MD5 including the terminating null-character.
sz
The size of the out buffer in characters.
If the computation was successful 0 (zero) is returned.
Otherwise a windows error code is returned.
none
Minimum API Level | 1 |
Target Edition | Any |
Header | S4ModApi.h |
Library | S4ModApi.lib |
DLL | S4ModApi.dll |