WinStopTimer: Difference between revisions
Appearance
m Ak120 moved page OS2 API:PMI:WinStopTimer to WinStopTimer |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; anchorHndl - [[ | ; anchorHndl - [[HAB]] - input : The anchor block handle. | ||
; windowHndl - [[ | ; windowHndl - [[HWND]] - input : The window handle. | ||
; timerID - [[ | ; timerID - [[ULONG]] - input : The timer identifier. | ||
=== Returns === | === Returns === | ||
Returns [[ | Returns [[BOOL]] with the values of: | ||
* [ | *[TRUE]] | ||
* [[ | *[[FALSE]] | ||
Return from [[ | Return from [[WinGetLastError]] if ''WinStopTimer'' fails: | ||
* [[OS2 API:PMI:error#PMERR_INVALID_HWND|PMERR_INVALID_HWND]] | * [[OS2 API:PMI:error#PMERR_INVALID_HWND|PMERR_INVALID_HWND]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINTIMER or INCL_WIN or INCL_PM | INCL_WINTIMER or INCL_WIN or INCL_PM | ||
=== Calling conversion === | === Calling conversion === | ||
Line 28: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HAB anchorHndl; | |||
HWND windowHndl; | |||
ULONG timerID; | |||
BOOL rc; | |||
... | ... | ||
rc = WinStopTimer(anchorHndl, windowHndl, timerID); | rc = WinStopTimer(anchorHndl, windowHndl, timerID); | ||
=== Related Functions === | === Related Functions === | ||
*[[ | *[[WinGetCurrentTime]] | ||
*[[ | *[[WinQueryMsgTime]] | ||
*[[ | *[[WinStartTimer]] | ||
=== Notes === | === Notes === | ||
No further messages are received from the timer after | No further messages are received from the timer after ''WinStopTimer'' is called. This includes the timer having timed out since the last call to [[WinGetMsg]]. | ||
[[Category: | [[Category:Win]] |
Revision as of 09:04, 6 January 2017
WinStopTimer
- WinStopTimer(anchorHndl, windowHndl, timerID)
- Stop the timer timerID.
Parameters
- anchorHndl - HAB - input
- The anchor block handle.
- windowHndl - HWND - input
- The window handle.
- timerID - ULONG - input
- The timer identifier.
Returns
Returns BOOL with the values of:
- [TRUE]]
- FALSE
Return from WinGetLastError if WinStopTimer fails:
Define (C/C++)
INCL_WINTIMER or INCL_WIN or INCL_PM
Calling conversion
Example Code
HAB anchorHndl; HWND windowHndl; ULONG timerID; BOOL rc; ... rc = WinStopTimer(anchorHndl, windowHndl, timerID);
Related Functions
Notes
No further messages are received from the timer after WinStopTimer is called. This includes the timer having timed out since the last call to WinGetMsg.