[newlib-cygwin] Cygwin: ntdll.h: Add SystemProcessIdInformation

Corinna Vinschen corinna@sourceware.org
Tue Mar 12 19:57:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a2693428b97b43fd2e39982bb9b7b7eb39e73141

commit a2693428b97b43fd2e39982bb9b7b7eb39e73141
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Mar 12 20:11:38 2019 +0100

    Cygwin: ntdll.h: Add SystemProcessIdInformation
    
    Add SystemProcessIdInformation to SYSTEM_INFORMATION_CLASS
    and define struct _SYSTEM_PROCESS_ID_INFORMATION.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/ntdll.h | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h
index 872cb31..b41b99b 100644
--- a/winsup/cygwin/ntdll.h
+++ b/winsup/cygwin/ntdll.h
@@ -582,6 +582,7 @@ typedef enum _SYSTEM_INFORMATION_CLASS
   SystemProcessorPerformanceInformation = 8,
   SystemHandleInformation = 16,
   SystemPagefileInformation = 18,
+  SystemProcessIdInformation = 0x58,
   /* There are a lot more of these... */
 } SYSTEM_INFORMATION_CLASS;
 
@@ -723,15 +724,6 @@ typedef struct _SYSTEM_PROCESS_INFORMATION
   SYSTEM_THREADS Threads[1];
 } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;
 
-typedef struct _IO_STATUS_BLOCK
-{
-  union {
-    NTSTATUS Status;
-    PVOID Pointer;
-  };
-  ULONG_PTR Information;
-} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
-
 typedef struct _SYSTEM_PERFORMANCE_INFORMATION
 {
   LARGE_INTEGER IdleTime;
@@ -818,6 +810,12 @@ typedef struct _SYSTEM_TIMEOFDAY_INFORMATION
   BYTE Reserved1[20];		/* Per MSDN.  Always 0. */
 } SYSTEM_TIMEOFDAY_INFORMATION, *PSYSTEM_TIMEOFDAY_INFORMATION;
 
+typedef struct _SYSTEM_PROCESS_ID_INFORMATION
+{
+  PVOID ProcessId;
+  UNICODE_STRING ImageName;
+} SYSTEM_PROCESS_ID_INFORMATION, *PSYSTEM_PROCESS_ID_INFORMATION;
+
 typedef enum _PROCESSINFOCLASS
 {
   ProcessBasicInformation = 0,
@@ -1241,6 +1239,15 @@ typedef struct _FILE_MAILSLOT_SET_INFORMATION
   LARGE_INTEGER ReadTimeout;
 } FILE_MAILSLOT_SET_INFORMATION, *PFILE_MAILSLOT_SET_INFORMATION;
 
+typedef struct _IO_STATUS_BLOCK
+{
+  union {
+    NTSTATUS Status;
+    PVOID Pointer;
+  };
+  ULONG_PTR Information;
+} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
+
 typedef VOID NTAPI (*PIO_APC_ROUTINE)(PVOID, PIO_STATUS_BLOCK, ULONG);
 
 typedef struct _EVENT_BASIC_INFORMATION



More information about the Cygwin-cvs mailing list