I tried making a MODULEINFO and working with GetHandleInformation(...) but the .SizeOfImage returned is always zero.
I tried making a MODULEINFO and working with GetHandleInformation(...) but the .SizeOfImage returned is always zero.
public struct MEMORY_BASIC_INFORMATION
{
public IntPtr baseAddress;
public IntPtr allocationBase;
public MemoryProtectionConstraints allocationProtect;
public IntPtr regionSize;
public State state;
public MemoryProtectionConstraints protect;
public Type type;
}
public struct SYSTEM_INFO
{
public ushort processorArchitecture;
ushort reserved;
public uint pageSize;
public IntPtr minimumApplicationAddress; // minimum address
public IntPtr maximumApplicationAddress; // maximum address
public IntPtr activeProcessorMask;
public uint numberOfProcessors;
public uint processorType;
public uint allocationGranularity;
public ushort processorLevel;
public ushort processorRevision;
}