Hi,
the below patch extends winternl.h slightly. OK to apply?
Thanks,
Corinna
* winternl.h (NT_SUCCESS): Define.
(enum _PROCESSINFOCLASS): Add ProcessDebugFlags.
(NtSetInformationProcess): Declare.
Index: winternl.h
===================================================================
--- winternl.h (revision 5206)
+++ winternl.h (working copy)
@@ -8,6 +8,10 @@
#include <windef.h>
+#ifndef NT_SUCCESS
+#define NT_SUCCESS(status) ((NTSTATUS) (status) >= 0)
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -732,7 +736,8 @@
typedef enum _PROCESSINFOCLASS {
ProcessBasicInformation = 0,ProcessQuotaLimits = 1,ProcessIoCounters =
2,ProcessVmCounters = 3,ProcessTimes = 4,ProcessBasePriority = 5,
- ProcessRaisePriority = 6,ProcessDebugPort = 7,ProcessExceptionPort =
8,ProcessAccessToken = 9,ProcessWow64Information = 26,ProcessImageFileName = 27
+ ProcessRaisePriority = 6,ProcessDebugPort = 7,ProcessExceptionPort =
8,ProcessAccessToken = 9,ProcessWow64Information = 26,ProcessImageFileName = 27,
+ ProcessDebugFlags = 31
} PROCESSINFOCLASS;
typedef enum _THREADINFOCLASS {
@@ -790,6 +795,7 @@
NTSTATUS WINAPI NtQueryObject(HANDLE Handle,OBJECT_INFORMATION_CLASS
ObjectInformationClass,PVOID ObjectInformation,ULONG
ObjectInformationLength,PULONG ReturnLength);
NTSTATUS WINAPI NtQuerySystemInformation(SYSTEM_INFORMATION_CLASS
SystemInformationClass,PVOID SystemInformation,ULONG
SystemInformationLength,PULONG ReturnLength);
NTSTATUS WINAPI NtQuerySystemTime(PLARGE_INTEGER SystemTime);
+ NTSTATUS NTAPI NtSetInformationProcess(HANDLE ProcessHandle,
PROCESSINFOCLASS ProcessInformationClass, PVOID ProcessInformation, ULONG
ProcessInformationLength);
NTSTATUS WINAPI RtlLocalTimeToSystemTime(PLARGE_INTEGER
LocalTime,PLARGE_INTEGER SystemTime);
BOOLEAN WINAPI RtlTimeToSecondsSince1970(PLARGE_INTEGER Time,PULONG
ElapsedSeconds);
VOID WINAPI RtlFreeAnsiString(PANSI_STRING AnsiString);
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public