#ifndef _NTEXAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
#if (PHNT_VERSION >= PHNT_WINDOWS_10)
/**
* The NtCreateTimer2 routine creates a timer object.
*
* \param TimerHandle A pointer to a variable that receives the handle to the timer object.
* \param Reserved1 Reserved parameter.
* \param ObjectAttributes A pointer to an OBJECT_ATTRIBUTES structure that specifies the object attributes.
* \param Attributes Timer attributes (TIMER_TYPE).
* \param DesiredAccess The access mask that specifies the requested access to the timer object.
* \return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtCreateTimer2(
_Out_ PHANDLE TimerHandle,
_In_opt_ PVOID Reserved1,
_In_opt_ PCOBJECT_ATTRIBUTES ObjectAttributes,
_In_ ULONG Attributes, // TIMER_TYPE
_In_ ACCESS_MASK DesiredAccess
);
View code on GitHub#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwCreateTimer2(
_Out_ PHANDLE TimerHandle,
_In_opt_ PVOID Reserved1,
_In_opt_ PCOBJECT_ATTRIBUTES ObjectAttributes,
_In_ ULONG Attributes, // TIMER_TYPE
_In_ ACCESS_MASK DesiredAccess
);
View code on GitHubNo description available.