Table of Contents

Method GetModuleFileNameEx

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetModuleFileNameEx(nint, nint, StringBuilder, uint)

Retrieves the fully qualified path for the file containing the specified module.

public static extern uint GetModuleFileNameEx(nint hProcess, nint hModule, StringBuilder lpFilename, uint nSize)

Parameters

hProcess nint

A handle to the process that contains the module.

hModule nint

A handle to the module. If this parameter is Zero, the function returns the path of the executable file for the process specified in hProcess.

lpFilename StringBuilder

A StringBuilder that receives the module path.

nSize uint

The size of the lpFilename buffer, in characters.

Returns

uint

The length, in characters, of the string copied to the buffer, or zero on failure.