---
name: "NtQueryTimer"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/NtQueryTimer"
---

# NtQueryTimer(3w)

## NAME

**NtQueryTimer** (NTDLL.@)

## SYNOPSIS

NTSTATUS NtQueryTimer\
  (\
   HANDLE                  *TimerHandle*,\
   TIMER\_INFORMATION\_CLASS *TimerInformationClass*,\
   PVOID                   *TimerInformation*,\
   ULONG                   *Length*,\
   PULONG                  *ReturnLength*\
  )

## DESCRIPTION

Retrieves information about a timer.

## PARAMS

*TimerHandle* **\[In\]**  The timer to retrieve information about.

*TimerInformationClass* **\[In\]**  The type of information to retrieve.

*TimerInformation* **\[Out\]**  Pointer to buffer to store information in.

*Length* **\[In\]**  The length of the buffer pointed to by *TimerInformation*.

*ReturnLength* **\[Out\]**  Optional. The size of buffer actually used.

## RETURNS

**Success:** **STATUS\_SUCCESS**

**Failure:** **STATUS\_INFO\_LENGTH\_MISMATCH**, if *Length* doesn't match the required data size for the class specified. **STATUS\_INVALID\_INFO\_CLASS**, if an invalid *TimerInformationClass* was specified. **STATUS\_ACCESS\_DENIED**, if *TimerHandle* does not have **TIMER\_QUERY\_STATE** access to the timer.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/sync.c"**.

Debug channel **"ntdll"**.
