HidP_GetVersion - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// hidpi.h

NTSTATUS HidP_GetVersion(
  [out] ULONG *Version
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-hidpi-hidp_getversion)

Description

The HidP_GetVersion function is a header-only implementation that returns the HID API version.

Parameters

Version [out]

The version of the HID API.

Return value

HidP_GetVersion returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an NTSTATUS error code.

Remarks

Call HidP_GetVersion at runtime before using HidP_GetButtonArray or HidP_SetButtonArray. The HidP_GetButtonArray and HidP_SetButtonArray functions are only available on operating systems where HidP_GetVersion returns a value of two or greater. Version two of the API corresponds to Windows 11.

HidP_GetVersion is safe to call on down-level systems because it is a header-only implementation.

See also