summaryrefslogtreecommitdiffhomepage
path: root/include/ntapi/nt_time.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
committermidipix <writeonce@midipix.org>2015-07-27 04:01:18 -0400
commitdd89bb8ad4fe184a34b5dbdda237e640fc82121b (patch)
tree5e80d2da35f5892f92be29f57982b2708e6bd99b /include/ntapi/nt_time.h
parentdcdadc2702712fa750ed255ed1dfa354522797a0 (diff)
downloadntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.bz2
ntapi-dd89bb8ad4fe184a34b5dbdda237e640fc82121b.tar.xz
entered advanced internal development stage.
Diffstat (limited to 'include/ntapi/nt_time.h')
-rw-r--r--include/ntapi/nt_time.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/include/ntapi/nt_time.h b/include/ntapi/nt_time.h
new file mode 100644
index 0000000..b8ddd41
--- /dev/null
+++ b/include/ntapi/nt_time.h
@@ -0,0 +1,45 @@
+#ifndef _NT_TIME_H_
+#define _NT_TIME_H_
+
+#include <psxtypes/psxtypes.h>
+#include "nt_object.h"
+
+typedef struct _nt_itimerval {
+ nt_timeout interval;
+ nt_timeout value;
+} nt_itimerval;
+
+typedef int32_t __stdcall ntapi_zw_query_system_time(
+ __out nt_large_integer * current_time);
+
+
+typedef int32_t __stdcall ntapi_zw_set_system_time(
+ __in nt_large_integer * new_time,
+ __out nt_large_integer * old_time __optional);
+
+
+typedef int32_t __stdcall ntapi_zw_query_performance_counter(
+ __out nt_large_integer * performance_count,
+ __out nt_large_integer * performance_frequency __optional);
+
+
+typedef int32_t __stdcall ntapi_zw_set_timer_resolution(
+ __in uint32_t requested_resolution,
+ __in int32_t set,
+ __out uint32_t * actual_resolution);
+
+
+typedef int32_t __stdcall ntapi_zw_query_timer_resolution(
+ __out uint32_t * coarsest_resolution,
+ __out uint32_t * finest_resolution,
+ __out uint32_t * actual_resolution);
+
+
+typedef int32_t __stdcall ntapi_zw_delay_execution(
+ __in int32_t * alertable,
+ __in nt_large_integer * interval);
+
+typedef int32_t __stdcall ntapi_zw_yield_execution(void);
+
+
+#endif