| 32 | static bool l_Debug; |
| 33 | |
| 34 | BOOL EnumPageFilesProc(LPVOID pContext, PENUM_PAGE_FILE_INFORMATION pPageFileInfo, LPCWSTR lpFilename) { |
| 35 | std::vector<pageFileInfo>* pageFile = static_cast<std::vector<pageFileInfo>*>(pContext); |
| 36 | SYSTEM_INFO systemInfo; |
| 37 | |
| 38 | GetSystemInfo(&systemInfo); |
| 39 | |
| 40 | // pPageFileInfo output is in pages, we need to multiply it by the page size |
| 41 | pageFile->push_back({ pPageFileInfo->TotalSize * systemInfo.dwPageSize, (pPageFileInfo->TotalSize - pPageFileInfo->TotalInUse) * systemInfo.dwPageSize }); |
| 42 | |
| 43 | return TRUE; |
| 44 | } |
| 45 | |
| 46 | static int parseArguments(int ac, WCHAR **av, po::variables_map& vm, printInfoStruct& printInfo) |
| 47 | { |