diff options
author | Brandon Sneed <nivenh@sourceware.org> | 2008-01-29 20:34:43 +0000 |
---|---|---|
committer | Brandon Sneed <nivenh@sourceware.org> | 2008-01-29 20:34:43 +0000 |
commit | 249d08dc1d075bd24a0d0e4b2d4ae1d0d8bcf41f (patch) | |
tree | a12d1cf8656bdb16f05f8a5aa5caa661dd8c71e1 /winsup/w32api | |
parent | cb8686370b006488e08701f6f8ed687bf3376bcc (diff) | |
download | cygnal-249d08dc1d075bd24a0d0e4b2d4ae1d0d8bcf41f.tar.gz cygnal-249d08dc1d075bd24a0d0e4b2d4ae1d0d8bcf41f.tar.bz2 cygnal-249d08dc1d075bd24a0d0e4b2d4ae1d0d8bcf41f.zip |
Added new PSAPI defines and exports
Diffstat (limited to 'winsup/w32api')
-rw-r--r-- | winsup/w32api/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/w32api/include/psapi.h | 10 | ||||
-rw-r--r-- | winsup/w32api/lib/psapi.def | 2 |
3 files changed, 19 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index b60c3a109..765c2ea47 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,10 @@ +2008-01-29 Brandon Sneed <nivenh@sourceware.org> + + * include/psapi.h (GetProcessImageFileNameA, GetProcessImageFileNameW): + Add prototypes. + * lib/psapi.def (GetProcessImageFileNameA@12, GetProcessImageFileNameW@12): + Add exports. + 2007-12-27 Chris Sutcliffe <ir0nh34d@users.sf.net> * include/w32api.h: Increment version to 3.11. diff --git a/winsup/w32api/include/psapi.h b/winsup/w32api/include/psapi.h index b4ae4a105..398f64a6e 100644 --- a/winsup/w32api/include/psapi.h +++ b/winsup/w32api/include/psapi.h @@ -70,6 +70,10 @@ DWORD WINAPI GetDeviceDriverBaseNameW(LPVOID,LPWSTR,DWORD); DWORD WINAPI GetDeviceDriverFileNameA(LPVOID,LPSTR,DWORD); DWORD WINAPI GetDeviceDriverFileNameW(LPVOID,LPWSTR,DWORD); BOOL WINAPI GetProcessMemoryInfo(HANDLE,PPROCESS_MEMORY_COUNTERS,DWORD); +#if (_WIN32_WINNT >= 0x0501) +DWORD WINAPI GetProcessImageFileNameA(HANDLE,LPSTR,DWORD); +DWORD WINAPI GetProcessImageFileNameW(HANDLE,LPWSTR,DWORD); +#endif #endif /* not RC_INVOKED */ @@ -79,12 +83,18 @@ BOOL WINAPI GetProcessMemoryInfo(HANDLE,PPROCESS_MEMORY_COUNTERS,DWORD); #define GetMappedFileName GetMappedFileNameW #define GetDeviceDriverBaseName GetDeviceDriverBaseNameW #define GetDeviceDriverFileName GetDeviceDriverFileNameW +#if (_WIN32_WINNT >= 0x0501) +#define GetProcessImageFileName GetProcessImageFileNameW +#endif #else #define GetModuleBaseName GetModuleBaseNameA #define GetModuleFileNameEx GetModuleFileNameExA #define GetMappedFileName GetMappedFileNameA #define GetDeviceDriverBaseName GetDeviceDriverBaseNameA #define GetDeviceDriverFileName GetDeviceDriverFileNameA +#if (_WIN32_WINNT >= 0x0501) +#define GetProcessImageFileName GetProcessImageFileNameA +#endif #endif #ifdef __cplusplus diff --git a/winsup/w32api/lib/psapi.def b/winsup/w32api/lib/psapi.def index 9d79fe82c..e544f15d8 100644 --- a/winsup/w32api/lib/psapi.def +++ b/winsup/w32api/lib/psapi.def @@ -16,6 +16,8 @@ GetModuleFileNameExA@16 GetModuleFileNameExW@16 GetModuleInformation@16 GetProcessMemoryInfo@12 +GetProcessImageFileNameA@12 +GetProcessImageFileNameW@12 GetWsChanges@12 InitializeProcessForWsWatch@4 QueryWorkingSet@12 |