diff options
author | midipix <writeonce@midipix.org> | 2016-08-10 04:30:27 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-10 21:44:17 -0400 |
commit | 7ddcea31a85ae820912566380d8b80c9aad6b93b (patch) | |
tree | 2f53a2639ed5f995af10f5751d87a9a306ecad7a | |
parent | fff2afe2aee281a70dce4d9c536de14ed2277bae (diff) | |
download | ntapi-7ddcea31a85ae820912566380d8b80c9aad6b93b.tar.bz2 ntapi-7ddcea31a85ae820912566380d8b80c9aad6b93b.tar.xz |
runtime data: added flags and NT_RUNTIME_DATA_INTEGRAL_PROCESS support.
-rw-r--r-- | include/ntapi/nt_process.h | 5 | ||||
-rw-r--r-- | src/process/ntapi_tt_get_runtime_data.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h index 5430b46..2aef7ee 100644 --- a/include/ntapi/nt_process.h +++ b/include/ntapi/nt_process.h @@ -175,6 +175,9 @@ typedef enum _nt_process_create_info_class { /* nt_runtime_data_block flag bits */ #define NT_RUNTIME_DATA_DUPLICATE_SESSION_HANDLES (0x01) +/* nt_runtime_data flag bits */ +#define NT_RUNTIME_DATA_INTEGRAL_PROCESS (0x01) + /* runtime data convenience storage */ #define NT_RUNTIME_DATA_USER_PTRS (0x10) #define NT_RUNTIME_DATA_USER_INT32_SLOTS (0x10) @@ -439,6 +442,8 @@ typedef struct _nt_runtime_data { nt_cid cid_parent; nt_alt_cid alt_cid_self; nt_alt_cid alt_cid_parent; + uint32_t flags; + uint32_t reserved; void * himage; void * hroot; void * hcwd; diff --git a/src/process/ntapi_tt_get_runtime_data.c b/src/process/ntapi_tt_get_runtime_data.c index e5a7d55..5dc2366 100644 --- a/src/process/ntapi_tt_get_runtime_data.c +++ b/src/process/ntapi_tt_get_runtime_data.c @@ -69,6 +69,9 @@ int32_t __stdcall __ntapi_tt_get_runtime_data( sizeof(buffer),0))) return status; + /* update state */ + prtdata->flags |= NT_RUNTIME_DATA_INTEGRAL_PROCESS; + /* avoid confusion :-) */ process_params = ((nt_peb *)pe_get_peb_address())->process_params; |