summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-01-18 01:47:03 +0000
committermidipix <writeonce@midipix.org>2017-01-17 21:58:32 -0500
commitdea1aa7dfbb473a5625491efb65ef088b68d7092 (patch)
tree64c901745b88d224feaa57d4fedde20b873f333d
parentd16b427bc946660da1b5a4421aacb585dd0a07ad (diff)
downloadntapi-dea1aa7dfbb473a5625491efb65ef088b68d7092.tar.bz2
ntapi-dea1aa7dfbb473a5625491efb65ef088b68d7092.tar.xz
struct nt_runtime_data: update for the benefit of the framework loader impl.
-rw-r--r--include/ntapi/nt_process.h12
-rw-r--r--src/process/ntapi_tt_init_runtime_data.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/include/ntapi/nt_process.h b/include/ntapi/nt_process.h
index 9b0b81b..8088e19 100644
--- a/include/ntapi/nt_process.h
+++ b/include/ntapi/nt_process.h
@@ -448,18 +448,18 @@ typedef struct _nt_process_alternate_client_id {
} nt_process_alternate_client_id, nt_alt_cid;
typedef struct _nt_runtime_data {
- void * hprocess_self;
- void * hprocess_parent;
+ void * hself;
+ void * hparent;
+ void * himage;
+ void * hroot;
+ void * hcwd;
+ void * hdrive;
nt_cid cid_self;
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;
- void * hdrive;
void * hstdin;
void * hstdout;
void * hstderr;
diff --git a/src/process/ntapi_tt_init_runtime_data.c b/src/process/ntapi_tt_init_runtime_data.c
index 211f6f3..aa11b63 100644
--- a/src/process/ntapi_tt_init_runtime_data.c
+++ b/src/process/ntapi_tt_init_runtime_data.c
@@ -22,7 +22,7 @@ int32_t __stdcall __ntapi_tt_update_runtime_data(nt_runtime_data * rtdata)
rtdata->cid_self.thread_id = 0;
if ((status = __ntapi->zw_open_process(
- &rtdata->hprocess_self,
+ &rtdata->hself,
NT_PROCESS_ALL_ACCESS,
&oa,&rtdata->cid_self)))
return status;
@@ -32,14 +32,14 @@ int32_t __stdcall __ntapi_tt_update_runtime_data(nt_runtime_data * rtdata)
/* process (parent) */
if ((status = __ntapi->zw_query_information_process(
- rtdata->hprocess_self,
+ rtdata->hself,
NT_PROCESS_BASIC_INFORMATION,
&pbi,sizeof(pbi),&ret)))
return status;
rtdata->cid_parent.process_id = pbi.inherited_from_unique_process_id;
rtdata->cid_parent.thread_id = 0;
- rtdata->hprocess_parent = 0;
+ rtdata->hparent = 0;
return NT_STATUS_SUCCESS;
}