Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Sneed <nivenh@sourceware.org>2008-01-29 23:34:43 +0300
committerBrandon Sneed <nivenh@sourceware.org>2008-01-29 23:34:43 +0300
commit249d08dc1d075bd24a0d0e4b2d4ae1d0d8bcf41f (patch)
treea12d1cf8656bdb16f05f8a5aa5caa661dd8c71e1 /winsup/w32api
parentcb8686370b006488e08701f6f8ed687bf3376bcc (diff)
Added new PSAPI defines and exports
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog7
-rw-r--r--winsup/w32api/include/psapi.h10
-rw-r--r--winsup/w32api/lib/psapi.def2
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