diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-03-02 11:00:50 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-03-02 11:00:50 +0300 |
commit | dbc8ac3468f93f697aa842a6ac6409f6bba6122b (patch) | |
tree | 862ec9477752322df00439edb985bda09631d8bf /winsup | |
parent | 2e4cdd558275e749aa88bed66cf50ad915359a2f (diff) |
* include/ddk/winddk.h (TIMER_INFORMATION_CLASS): Define.
(TIMER_BASIC_INFORMATION): Define.
(NtQueryTimer): Define.
(ZwQueryTimer): Define.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/w32api/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/w32api/include/ddk/winddk.h | 29 |
2 files changed, 36 insertions, 0 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index e4d1119c9..f21aa6c32 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 fdf99b524..0c9d695a4 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, |