4.TimeProc

原文:

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.
See Also

翻译:

 一旦一个信号事件到期或一个周期事件到期,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.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值