WinStopTimer: Difference between revisions
Appearance
m Martini moved page OS2 API:WinStopTimer to OS2 API:PMI:WinStopTimer |
mNo edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Stop the timer timerID. | ||
==Syntax== | |||
WinStopTimer(anchorHndl, windowHndl, timerID) | |||
=== 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 [[WinGetLastError]] if ''WinStopTimer'' fails: | |||
* [[PM Error Codes#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 Convention === | |||
=== Calling | |||
[[Cdecl32]] | [[Cdecl32]] | ||
=== 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]] |
Latest revision as of 18:58, 16 January 2019
Stop the timer timerID.
Syntax
WinStopTimer(anchorHndl, windowHndl, 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:
Return from WinGetLastError if WinStopTimer fails:
Define (C/C++)
INCL_WINTIMER or INCL_WIN or INCL_PM
Calling Convention
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.