Table of Contents

Method EnumProcessModules

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

EnumProcessModules(nint, nint[], int, out int)

Enumerates the modules (loaded DLLs) for the specified process.

public static extern bool EnumProcessModules(nint hProcess, nint[] lphModule, int cb, out int lpcbNeeded)

Parameters

hProcess nint

A handle to the process whose modules are to be enumerated.

lphModule nint[]

An array that receives the module handles.

cb int

The size, in bytes, of the array pointed to by lphModule.

lpcbNeeded int

Receives the number of bytes required to store all module handles or the number actually written.

Returns

bool

true if the function succeeds; otherwise, false.