4.TimeProc
来源:互联网 发布:js二维数组列数不同 编辑:程序博客网 时间:2024/04/29 02:48
原文:
The TimeProc function callback function that is called once upon the expiration of a single event or periodically upon the expiration of periodic events.
void CALLBACK TimeProc(
UINT
uID
,
UINT
uMsg
,
DWORD
dwUser
,
DWORD
dw1
,
DWORD
dw2
);
TimeProc is a placeholder for the application-defined function name.
Parameters
uID
Identifier of the timer event. This identifier was returned by the timeSetEvent function when the timer event was set up.
uMsg
Reserved; do not use.
dwUser
User instance data supplied to the dwUser parameter of timeSetEvent.
dw1 and dw2
Reserved; do not use.
Return Values
This function does not return a value.
Remarks
Applications should not call any system-defined functions from inside a callback function, except for PostMessage, timeGetSystemTime, timeGetTime, timeSetEvent, timeKillEvent, midiOutShortMsg, midiOutLongMsg, and OutputDebugString.
QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: User-defined.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: User-defined.
See Also
Multimedia Timers Overview, Multimedia Timer Functions, timeSetEvent, PostMessage, timeGetSystemTime, timeGetTime, timeKillEvent, midiOutShortMsg, midiOutLongMsg, OutputDebugString
翻译:
一旦一个信号事件到期或一个周期事件到期,TimerProc回调函数被调用。
void CALLBACK TimeProc(
UINT
uID
,
UINT
uMsg
,
DWORD
dwUser
,
DWORD
dw1
,
DWORD
dw2
);
对于应用程序定义的函数名TimeProc为一个占位符。
参数:
uID:时间事件标识符,当定时器被建立时,timerSetEcent函数返回该标识符。
uMsg:保留,未使用。
dwUser:由timeSetEvent函数的dwUser参数提供的用户实例数据。
dw1 and dw2 :保留字,未使用。
备注:应用程序不能从回调函数内部调用系统定义的函数,除了PostMessage,timeGetSystemTime,timeGetTime,timeSetEvent.TimeKillEvent,midiOutShortMsg,midiOutLongMsg和OutpuitDebugString.
- 4.TimeProc
- 4. Definitions
- 4. 焦点
- 4.Java
- 4.表单
- 4.汉诺塔
- 4.会操
- 4.shared_ptr
- 4.语句
- 4. 类
- 4. Exit()
- 4.栈
- 4. 关键字
- 4.会计凭证
- 4.字符串
- 4.cpp
- 4.cpp
- 4.动画
- 决定成功的十种心态
- Hello,blogger!
- 怎样才能将数据库中表PBCATCOL的PBC_LABL字段的值反向到PDM对应的NAME?
- HelloJavaWorld..
- 3.SetTimer
- 4.TimeProc
- 5.TimerProc
- 通用表单验证函数
- 修练8年C++面向对象程序设计之体会2
- 6.timeSetEvent
- 7.GetTickCount
- 8.timeGetTime
- stunnel使用详解
- Microsoft操作系统远程管理实施方案(绿盟)