DosEstimateFreqCPU Function

Estimates clock frequency of all available CPUs. For more information visit DosEstimateFreqCPU.

Syntax
 APIRET ulrc = DosEstimateFreqCPU(PCPUFREQUENCY pxCPUFrequency); 
 * 1) define INCL_BASE
 * 2) include 
 * 3) include "FREQCPU.h"

Parameters

 * pxCPUFrequency (PCPUFREQUENCY) - output : Pointer to structure that estimated clock frequencies will be set to.

Return Code

 * ulrc (APIRET) - return : Return codes.
 * !NO_ERROR Error.
 * NO_ERROR Successful completion.

Remarks
This function estimates clock frequency of all available CPUs. Obtained frequency will be set to CPUFREQUENCY structure:  /* CPU frequency information structure */ typedef struct _CPUFREQUENCY {   ULONG ulNumCPUs;            /* # of available CPUs */ FIXED afxFrequencyMHz[64]; /* frequency of each CPUs in FIXED MHz (65536 means 1.0) */ } CPUFREQUENCY, * PCPUFREQUENCY; 