| 946 | } |
| 947 | |
| 948 | SIZE_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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected