MCPcopy Create free account
hub / github.com/NtQuery/Scylla / getSizeOfImageProcessNative

Method getSizeOfImageProcessNative

Scylla/ProcessAccessHelp.cpp:948–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948SIZE_T ProcessAccessHelp::getSizeOfImageProcessNative( HANDLE processHandle, DWORD_PTR moduleBase )
949{
950 MEMORY_REGION_INFORMATION memRegion = {0};
951 SIZE_T retLen = 0;
952 if (NativeWinApi::NtQueryVirtualMemory(processHandle, (PVOID)moduleBase, MemoryRegionInformation, &memRegion, sizeof(MEMORY_REGION_INFORMATION), &retLen) == STATUS_SUCCESS)
953 {
954 return memRegion.RegionSize;
955 }
956
957 return 0;
958}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected