Skip to content
nyfrk edited this page Aug 22, 2020 · 1 revision

ISettlers4Api::GetMD5OfModule method

Compute the MD5 checksum of the file of a loaded module.

Syntax

HRESULT ISettlers4Api::GetMD5OfModule(
	HMODULE module,
	LPSTR out, 
	SIZE_T sz
);

Parameters

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.

Return value

If the computation was successful 0 (zero) is returned.

Otherwise a windows error code is returned.

Remarks

none

Requirements

Minimum API Level 1
Target Edition Any
Header S4ModApi.h
Library S4ModApi.lib
DLL S4ModApi.dll

See also

ISettlers4Api

Clone this wiki locally