Method EnumProcessModules
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
hProcessnintA handle to the process whose modules are to be enumerated.
lphModulenint[]An array that receives the module handles.
cbintThe size, in bytes, of the array pointed to by
lphModule.lpcbNeededintReceives the number of bytes required to store all module handles or the number actually written.