aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-03-02 08:00:50 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-03-02 08:00:50 +0000
commitdbc8ac3468f93f697aa842a6ac6409f6bba6122b (patch)
tree862ec9477752322df00439edb985bda09631d8bf
parent2e4cdd558275e749aa88bed66cf50ad915359a2f (diff)
downloadnewlib-dbc8ac3468f93f697aa842a6ac6409f6bba6122b.zip
newlib-dbc8ac3468f93f697aa842a6ac6409f6bba6122b.tar.gz
newlib-dbc8ac3468f93f697aa842a6ac6409f6bba6122b.tar.bz2
* include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.
(TIMER_BASIC_INFORMATION): Define. (NtQueryTimer): Define. (ZwQueryTimer): Define.
-rw-r--r--winsup/w32api/ChangeLog7
-rw-r--r--winsup/w32api/include/ddk/winddk.h29
2 files changed, 36 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index e4d1119..f21aa6c 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-02 Corinna Vinschen <corinna@vinschen.de>
+
+ * include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.
+ (TIMER_BASIC_INFORMATION): Define.
+ (NtQueryTimer): Define.
+ (ZwQueryTimer): Define.
+
2010-12-27 David Byron <dbyron0@users.sourceforge.net>
* include/winioctl.h (STORAGE_BUS_TYPE): Define.
diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h
index fdf99b5..0c9d695 100644
--- a/winsup/w32api/include/ddk/winddk.h
+++ b/winsup/w32api/include/ddk/winddk.h
@@ -946,6 +946,15 @@ typedef enum _TIMER_TYPE {
SynchronizationTimer
} TIMER_TYPE;
+typedef enum _TIMER_INFORMATION_CLASS {
+ TimerBasicInformation
+} TIMER_INFORMATION_CLASS;
+
+typedef struct _TIMER_BASIC_INFORMATION {
+ LARGE_INTEGER TimeRemaining;
+ BOOLEAN SignalState;
+} TIMER_BASIC_INFORMATION, *PTIMER_BASIC_INFORMATION;
+
#define EVENT_INCREMENT 1
#define IO_NO_INCREMENT 0
#define IO_CD_ROM_INCREMENT 1
@@ -9009,6 +9018,26 @@ ZwQuerySymbolicLinkObject(
NTOSAPI
NTSTATUS
DDKAPI
+NtQueryTimer(
+ /*IN*/ HANDLE TimerHandle,
+ /*IN*/ TIMER_INFORMATION_CLASS TimerInformationClass,
+ /*OUT*/ PVOID TimerInformation,
+ /*IN*/ ULONG TimerInformationLength,
+ /*OUT*/ PULONG ReturnedLength /*OPTIONAL*/);
+
+NTOSAPI
+NTSTATUS
+DDKAPI
+ZwQueryTimer(
+ /*IN*/ HANDLE TimerHandle,
+ /*IN*/ TIMER_INFORMATION_CLASS TimerInformationClass,
+ /*OUT*/ PVOID TimerInformation,
+ /*IN*/ ULONG TimerInformationLength,
+ /*OUT*/ PULONG ReturnedLength /*OPTIONAL*/);
+
+NTOSAPI
+NTSTATUS
+DDKAPI
NtQueryValueKey(
/*IN*/ HANDLE KeyHandle,
/*IN*/ PUNICODE_STRING ValueName,