summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_process.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-09 12:25:10 -0400
committermidipix <writeonce@midipix.org>2016-10-10 01:37:01 -0400
commite93c837607c0768bcca49179196bc0a586c83b3b (patch)
treeaa51bdf72031f1e447904f8c9e3221000e2f12be /include/ntapi/nt_process.h
parent064d5f2e7012bdcfef47ca26a35ff466ed594378 (diff)
downloadntapi-e93c837607c0768bcca49179196bc0a586c83b3b.tar.bz2
ntapi-e93c837607c0768bcca49179196bc0a586c83b3b.tar.xz
nt_process.h: struct _nt_runtime_data: added process synchronization support.
Diffstat (limited to 'include/ntapi/nt_process.h')
-rw-r--r--include/ntapi/nt_process.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h
index d594a27..9a94f0d 100644
--- a/include/ntapi/nt_process.h
+++ b/include/ntapi/nt_process.h
@@ -53,6 +53,14 @@ typedef enum _nt_process_create_info_class {
+/* friendly process synchronization opcode indexes */
+typedef enum _nt_process_opcode_idx {
+ NT_PROCESS_OPCODE_IDX_FORK,
+ NT_PROCESS_OPCODE_IDX_EXECVE,
+} nt_process_opcode_idx;
+
+
+
/* special handles */
#define NT_CURRENT_PROCESS_HANDLE (void *)(uintptr_t)-1
@@ -179,6 +187,7 @@ typedef enum _nt_process_create_info_class {
#define NT_RUNTIME_DATA_INTEGRAL_PROCESS (0x01)
/* runtime data convenience storage */
+#define NT_RUNTIME_DATA_SYNC_OPCODES (0x08)
#define NT_RUNTIME_DATA_USER_PTRS (0x10)
#define NT_RUNTIME_DATA_USER_INT32_SLOTS (0x10)
#define NT_RUNTIME_DATA_USER_INT64_SLOTS (0x10)
@@ -457,6 +466,8 @@ typedef struct _nt_runtime_data {
void * hdebug;
void * hlog;
void * hready;
+ void * hsync;
+ void * hswap;
void * srv_ready;
nt_guid srv_guid;
int32_t srv_type;
@@ -511,6 +522,7 @@ typedef struct _nt_runtime_data {
void * sa_handler[64];
uintptr_t sa_flags [64];
uint32_t sa_mask [64][2];
+ int32_t opcode[NT_RUNTIME_DATA_SYNC_OPCODES];
void * uptr [NT_RUNTIME_DATA_USER_PTRS];
void * uclose[NT_RUNTIME_DATA_USER_PTRS];
int32_t udat32[NT_RUNTIME_DATA_USER_INT32_SLOTS];