diff options
author | midipix <writeonce@midipix.org> | 2016-08-21 14:24:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-08-22 09:00:02 -0400 |
commit | 5b9ff6577550b2ac84fe485ede8e82e96f6f06a8 (patch) | |
tree | a932e414591b48bbeeef3ae869d6cd666dd45f10 /src | |
parent | 273d6442b8579adf50ea8dae1a3068610eed67bd (diff) | |
download | ntapi-5b9ff6577550b2ac84fe485ede8e82e96f6f06a8.tar.bz2 ntapi-5b9ff6577550b2ac84fe485ede8e82e96f6f06a8.tar.xz |
__ntapi_tt_port_generate_keys(): use zw_query_performance_counter().
Diffstat (limited to 'src')
-rw-r--r-- | src/port/ntapi_port_name_helper.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/port/ntapi_port_name_helper.c b/src/port/ntapi_port_name_helper.c index eb61d38..ef87570 100644 --- a/src/port/ntapi_port_name_helper.c +++ b/src/port/ntapi_port_name_helper.c @@ -79,10 +79,11 @@ int32_t __stdcall __ntapi_tt_port_generate_keys( __out nt_port_keys * keys) { int32_t status; - nt_large_integer systime; + nt_large_integer ticks; + nt_large_integer pcfreq; nt_luid luid; - if ((status = __ntapi->zw_query_system_time(&systime))) + if ((status = __ntapi->zw_query_performance_counter(&ticks,&pcfreq))) return status; if ((status = __ntapi->zw_allocate_locally_unique_id(&luid))) @@ -90,8 +91,8 @@ int32_t __stdcall __ntapi_tt_port_generate_keys( keys->key[0] = pe_get_current_process_id(); keys->key[1] = pe_get_current_thread_id(); - keys->key[2] = systime.ihigh; - keys->key[3] = systime.ulow; + keys->key[2] = ticks.ihigh; + keys->key[3] = ticks.ulow; keys->key[4] = luid.high; keys->key[5] = luid.low; |