DosTmrQueryFreq: Difference between revisions
Appearance
m Martini moved page OS2 API:CPI:DosTmrQueryFreq to DosTmrQueryFreq |
mNo edit summary |
||
Line 1: | Line 1: | ||
Provides the frequency of the IRQ0 high resolution timer (Intel 8254). | Provides the frequency of the IRQ0 high resolution timer (Intel 8254). | ||
Line 11: | Line 10: | ||
rc = DosTmrQueryFreq(pulTmrFreq); | rc = DosTmrQueryFreq(pulTmrFreq); | ||
</PRE> | |||
==Parameters== | ==Parameters== | ||
; | ;pulTmrFreq (PULONG) - output : Timer Frequency. | ||
Provides the frequency of the IRQ0 high resolution timer in hertz (timer units/sec). | :Provides the frequency of the IRQ0 high resolution timer in hertz (timer units/sec). | ||
==Return Code== | ==Return Code== | ||
rc (APIRET) - returns | rc (APIRET) - returns | ||
DosTmrQueryFrequency returns the following values: | DosTmrQueryFrequency returns the following values: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
* 87 ERROR_INVALID_PARAMETER | * 87 ERROR_INVALID_PARAMETER | ||
Line 28: | Line 24: | ||
* 99 ERROR_DEVICE_IN_USE | * 99 ERROR_DEVICE_IN_USE | ||
==Related Functions== | ==Related Functions== | ||
* [[ | * [[DosDevConfig]] | ||
* [[ | * [[DosDevIOCtl]] | ||
* [[ | * [[DosPhysicalDisk]] | ||
[[Category: | [[Category:Dos]] |
Revision as of 22:11, 23 December 2016
Provides the frequency of the IRQ0 high resolution timer (Intel 8254).
Syntax
#define INCL_DOSPROFILE #include <os2.h> PULONG pulTmrFreq; /* Timer Frequency. */ APIRET rc; /* Return Code. */ rc = DosTmrQueryFreq(pulTmrFreq);
Parameters
- pulTmrFreq (PULONG) - output
- Timer Frequency.
- Provides the frequency of the IRQ0 high resolution timer in hertz (timer units/sec).
Return Code
rc (APIRET) - returns
DosTmrQueryFrequency returns the following values:
- 0 NO_ERROR
- 87 ERROR_INVALID_PARAMETER
- 535 ERROR_TMR_NO_DEVICE
- 99 ERROR_DEVICE_IN_USE