/// Converts the specified auxiliary counter value to the corresponding performance counter value; optionally provides the estimated conversion error in
/// nanoseconds due to latencies and maximum possible drift.
/// </summary>
/// <param name="ullAuxiliaryCounterValue">The auxiliary counter value to convert.</param>
/// <param name="lpPerformanceCounterValue">On success, contains the converted performance counter value. Will be undefined if the function fails.</param>
/// <param name="lpConversionError">On success, contains the estimated conversion error, in nanoseconds. Will be undefined if the function fails.</param>
/// <returns>
/// <para>Returns <c>S_OK</c> if the conversion succeeds; otherwise, returns another <c>HRESULT</c> specifying the error.</para>
/// <para>
/// <list type="table">
/// <listheader>
/// <term>Return value</term>
/// <term>Description</term>
/// </listheader>
/// <item>
/// <term>S_OK</term>
/// <term>The function succeeded.</term>
/// </item>
/// <item>
/// <term>E_NOTIMPL</term>
/// <term>The auxiliary counter is not supported.</term>
/// </item>
/// <item>
/// <term>E_BOUNDS</term>
/// <term>The value to convert is outside the permitted range (+/- 10 seconds from when the called occurred).</term>
/// Converts the specified performance counter value to the corresponding auxiliary counter value; optionally provides the estimated conversion error in
/// nanoseconds due to latencies and maximum possible drift.
/// </summary>
/// <param name="ullPerformanceCounterValue">The performance counter value to convert.</param>
/// <param name="lpAuxiliaryCounterValue">On success, contains the converted auxiliary counter value. Will be undefined if the function fails.</param>
/// <param name="lpConversionError">On success, contains the estimated conversion error, in nanoseconds. Will be undefined if the function fails.</param>
/// <returns>
/// <para>Returns <c>S_OK</c> if the conversion succeeds; otherwise, returns another <c>HRESULT</c> specifying the error.</para>
/// <para>
/// <list type="table">
/// <listheader>
/// <term>Return value</term>
/// <term>Description</term>
/// </listheader>
/// <item>
/// <term>S_OK</term>
/// <term>The function succeeded.</term>
/// </item>
/// <item>
/// <term>E_NOTIMPL</term>
/// <term>The auxiliary counter is not supported.</term>
/// </item>
/// <item>
/// <term>E_BOUNDS</term>
/// <term>The value to convert is outside the permitted range (+/- 10 seconds from when the called occurred).</term>
/// </item>
/// <item>
/// <term>E_BOUNDS</term>
/// <term>The value to convert is prior to the last system boot or S3/S4 transition.</term>
/// <summary>Queries the auxiliary counter frequency.</summary>
/// <param name="lpAuxiliaryCounterFrequency">
/// Long pointer to an output buffer that contains the specified auxiliary counter frequency. If the auxiliary counter is not supported, the value in the
/// output buffer will be undefined.
/// </param>
/// <returns>Returns <c>S_OK</c> if the auxiliary counter is supported and <c>E_NOTIMPL</c> if the auxiliary counter is not supported.</returns>
/// <para>Retrieves the cycle time for the idle thread of each processor in the system.</para>
/// <para>
/// On a system with more than 64 processors, this function retrieves the cycle time for the idle thread of each processor in the processor group to
/// which the calling thread is assigned. Use the <c>QueryIdleProcessorCycleTimeEx</c> function to retrieve the cycle time for the idle thread on each
/// logical processor for a specific processor group.
/// </para>
/// </summary>
/// <param name="BufferLength">
/// <para>
/// On input, specifies the size of the ProcessorIdleCycleTime buffer, in bytes. This buffer is expected to be 8 times the number of processors in the group.
/// </para>
/// <para>
/// On output, specifies the number of elements written to the buffer. If the buffer size is not sufficient, the function fails and this parameter
/// receives the required length of the buffer.
/// </para>
/// </param>
/// <param name="ProcessorIdleCycleTime">
/// The number of CPU clock cycles used by each idle thread. This buffer must be 8 times the number of processors in the system in size.
/// </param>
/// <returns>
/// <para>If the function succeeds, the return value is nonzero.</para>
/// <para>If the function fails, the return value is zero. To get extended error information, call <c>GetLastError</c>.</para>
/// <summary>Retrieves the accumulated cycle time for the idle thread on each logical processor in the specified processor group.</summary>
/// <param name="Group">The number of the processor group for which to retrieve the cycle time.</param>
/// <param name="BufferLength">
/// <para>
/// On input, specifies the size of the ProcessorIdleCycleTime buffer, in bytes. This buffer is expected to be 8 times the number of processors in the group.
/// </para>
/// <para>
/// On output, specifies the number of elements written to the buffer. If the buffer size is not sufficient, the function fails and this parameter
/// receives the required length of the buffer.
/// </para>
/// </param>
/// <param name="ProcessorIdleCycleTime">
/// The number of CPU clock cycles used by each idle thread. If this parameter is NULL, the function updates the BufferLength parameter with the required length.
/// </param>
/// <returns>
/// <para>If the function succeeds, the return value is nonzero.</para>
/// <para>If the function fails, the return value is zero. To get extended error information, use <c>GetLastError</c>.</para>
/// <summary>Gets the current interrupt-time count. For a more precise count, use <c>QueryInterruptTimePrecise</c>.</summary>
/// <param name="lpInterruptTime">
/// A pointer to a ULONGLONG in which to receive the interrupt-time count in system time units of 100 nanoseconds. Divide by ten million, or 1e7, to get
/// seconds (there are 1e9 nanoseconds in a second, so there are 1e7 100-nanoseconds in a second).
/// </param>
/// <returns>This function does not return a value.</returns>
/// <summary>Gets the current interrupt-time count, in a more precise form than <c>QueryInterruptTime</c> does.</summary>
/// <param name="lpInterruptTimePrecise">
/// A pointer to a ULONGLONG in which to receive the interrupt-time count in system time units of 100 nanoseconds. Divide by ten million, or 1e7, to get
/// seconds (there are 1e9 nanoseconds in a second, so there are 1e7 100-nanoseconds in a second).
/// </param>
/// <returns>This function does not return a value.</returns>
/// <summary>Retrieves the sum of the cycle time of all threads of the specified process.</summary>
/// <param name="ProcessHandle">
/// A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information,
/// see Process Security and Access Rights.
/// </param>
/// <param name="CycleTime">
/// The number of CPU clock cycles used by the threads of the process. This value includes cycles spent in both user mode and kernel mode.
/// </param>
/// <returns>
/// <para>If the function succeeds, the return value is nonzero.</para>
/// <para>If the function fails, the return value is zero. To get extended error information, call <c>GetLastError</c>.</para>
/// <summary>Retrieves the cycle time for the specified thread.</summary>
/// <param name="ThreadHandle">
/// A handle to the thread. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information,
/// see Process Security and Access Rights.
/// </param>
/// <param name="CycleTime">The number of CPU clock cycles used by the thread. This value includes cycles spent in both user mode and kernel mode.</param>
/// <returns>
/// <para>If the function succeeds, the return value is nonzero.</para>
/// <para>If the function fails, the return value is zero. To get extended error information, call <c>GetLastError</c>.</para>
/// Gets the current unbiased interrupt-time count, in a more precise form than <c>QueryUnbiasedInterruptTime</c> does. The unbiased interrupt-time count
/// does not include time the system spends in sleep or hibernation.
/// </summary>
/// <param name="lpUnbiasedInterruptTimePrecise">
/// A pointer to a ULONGLONG in which to receive the unbiased interrupt-time count in system time units of 100 nanoseconds. Divide by ten million, or
/// 1e7, to get seconds (there are 1e9 nanoseconds in a second, so there are 1e7 100-nanoseconds in a second).
/// </param>
/// <returns>This function does not return a value.</returns>