pub unsafe fn HalAllocateHardwareCounters(
    groupaffinty: Option<&[GROUP_AFFINITY]>,
    resourcelist: Option<*const PHYSICAL_COUNTER_RESOURCE_LIST>,
    countersethandle: *mut HANDLE,
) -> NTSTATUS