| psapi.h (6.0.6001.18000-Windows 6.0) | | psapi.h (6.1.7600.16385-Windows 7.0) |
| | |
| skipping to change at line 39 | | skipping to change at line 39 |
| extern "C" { | | extern "C" { |
| #endif | | #endif |
| | |
| #define LIST_MODULES_DEFAULT 0x0 // This is the default one app would get witho
ut any flag. | | #define LIST_MODULES_DEFAULT 0x0 // This is the default one app would get witho
ut any flag. |
| #define LIST_MODULES_32BIT 0x01 // list 32bit modules in the target process. | | #define LIST_MODULES_32BIT 0x01 // list 32bit modules in the target process. |
| #define LIST_MODULES_64BIT 0x02 // list all 64bit modules. 32bit exe will be
stripped off. | | #define LIST_MODULES_64BIT 0x02 // list all 64bit modules. 32bit exe will be
stripped off. |
| | |
| // list all the modules | | // list all the modules |
| #define LIST_MODULES_ALL (LIST_MODULES_32BIT | LIST_MODULES_64BIT) | | #define LIST_MODULES_ALL (LIST_MODULES_32BIT | LIST_MODULES_64BIT) |
| | |
|
| | // |
| | // Give teams a choice of using a downlevel version of psapi.h for an OS version |
| | s. |
| | // Teams can set C_DEFINES=$(C_DEFINES) -DPSAPI_VERSION=1 for downlevel psapi |
| | // on windows 7 and higher. We found that test code needs this capability. |
| | // |
| | #ifndef PSAPI_VERSION |
| | #if (NTDDI_VERSION >= NTDDI_WIN7) |
| | #define PSAPI_VERSION 2 |
| | #else |
| | #define PSAPI_VERSION 1 |
| | #endif |
| | #endif |
| | |
| | #if (PSAPI_VERSION > 1) |
| | #define EnumProcesses K32EnumProcesses |
| | #define EnumProcessModules K32EnumProcessModules |
| | #define EnumProcessModulesEx K32EnumProcessModulesEx |
| | #define GetModuleBaseNameA K32GetModuleBaseNameA |
| | #define GetModuleBaseNameW K32GetModuleBaseNameW |
| | #define GetModuleFileNameExA K32GetModuleFileNameExA |
| | #define GetModuleFileNameExW K32GetModuleFileNameExW |
| | #define GetModuleInformation K32GetModuleInformation |
| | #define EmptyWorkingSet K32EmptyWorkingSet |
| | #define QueryWorkingSet K32QueryWorkingSet |
| | #define QueryWorkingSetEx K32QueryWorkingSetEx |
| | #define InitializeProcessForWsWatch K32InitializeProcessForWsWatch |
| | #define GetWsChanges K32GetWsChanges |
| | #define GetWsChangesEx K32GetWsChangesEx |
| | #define GetMappedFileNameW K32GetMappedFileNameW |
| | #define GetMappedFileNameA K32GetMappedFileNameA |
| | #define EnumDeviceDrivers K32EnumDeviceDrivers |
| | #define GetDeviceDriverBaseNameA K32GetDeviceDriverBaseNameA |
| | #define GetDeviceDriverBaseNameW K32GetDeviceDriverBaseNameW |
| | #define GetDeviceDriverFileNameA K32GetDeviceDriverFileNameA |
| | #define GetDeviceDriverFileNameW K32GetDeviceDriverFileNameW |
| | #define GetProcessMemoryInfo K32GetProcessMemoryInfo |
| | #define GetPerformanceInfo K32GetPerformanceInfo |
| | #define EnumPageFilesW K32EnumPageFilesW |
| | #define EnumPageFilesA K32EnumPageFilesA |
| | #define GetProcessImageFileNameA K32GetProcessImageFileNameA |
| | #define GetProcessImageFileNameW K32GetProcessImageFileNameW |
| | #endif |
| | |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| EnumProcesses ( | | EnumProcesses ( |
| __out_bcount(cb) DWORD * lpidProcess, | | __out_bcount(cb) DWORD * lpidProcess, |
| __in DWORD cb, | | __in DWORD cb, |
| __out LPDWORD lpcbNeeded | | __out LPDWORD lpcbNeeded |
| ); | | ); |
| | |
| BOOL | | BOOL |
| WINAPI | | WINAPI |
| | |
| End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 44 lines changed or added |
|