summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-03-12 20:11:38 +0100
committerCorinna Vinschen <corinna@vinschen.de>2019-03-12 20:11:38 +0100
commita2693428b97b43fd2e39982bb9b7b7eb39e73141 (patch)
tree6ed1eba4d89adeb5ffc12628d039d0bd3830e083
parentde7f13aa9acec022ad1e4b3f929d4dc982ddf60b (diff)
downloadcygnal-a2693428b97b43fd2e39982bb9b7b7eb39e73141.tar.gz
cygnal-a2693428b97b43fd2e39982bb9b7b7eb39e73141.tar.bz2
cygnal-a2693428b97b43fd2e39982bb9b7b7eb39e73141.zip
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>
-rw-r--r--winsup/cygwin/ntdll.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h
index 872cb3170..b41b99b4b 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