summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2015-08-26 10:47:57 +0200
committerGiampaolo Rodola' <g.rodola@gmail.com>2015-08-26 10:47:57 +0200
commitac49006c9f7d2d51617fd25fc3b8d5aae0b04233 (patch)
treea0a42bc807af4102c93796741ff67d9ec2d677d8
parent3e5aa8a7646cbe31c88413df51c04c06864e25bf (diff)
parente251555084b9837a7e813255c1c55632e4274e3e (diff)
downloadpsutil-ac49006c9f7d2d51617fd25fc3b8d5aae0b04233.tar.gz
Merge pull request #672 from stevenwinfield/master
Prevent enum clash when using Windows SDK v8.0
-rw-r--r--psutil/arch/windows/ntextapi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/psutil/arch/windows/ntextapi.h b/psutil/arch/windows/ntextapi.h
index d10432a3..7f86c57a 100644
--- a/psutil/arch/windows/ntextapi.h
+++ b/psutil/arch/windows/ntextapi.h
@@ -186,7 +186,7 @@ typedef enum _PROCESSINFOCLASS2 {
ProcessTimes,
ProcessBasePriority,
ProcessRaisePriority,
- ProcessDebugPort,
+ _ProcessDebugPort,
ProcessExceptionPort,
ProcessAccessToken,
ProcessLdtInformation,
@@ -207,7 +207,7 @@ typedef enum _PROCESSINFOCLASS2 {
ProcessForegroundInformation,
_ProcessWow64Information,
/* added after XP+ */
- ProcessImageFileName,
+ _ProcessImageFileName,
ProcessLUIDDeviceMapsEnabled,
ProcessBreakOnTermination,
ProcessDebugObjectHandle,
@@ -224,5 +224,7 @@ typedef enum _PROCESSINFOCLASS2 {
#define PROCESSINFOCLASS PROCESSINFOCLASS2
#define ProcessBasicInformation _ProcessBasicInformation
#define ProcessWow64Information _ProcessWow64Information
+#define ProcessDebugPort _ProcessDebugPort
+#define ProcessImageFileName _ProcessImageFileName
#endif // __NTEXTAPI_H__