请问 timeSetEvent 指定的那个回调函数,这个回调函数的各个参数是什么含义?
timeSetEvent(2000, 0, CallBackProc, 0, TIME_PERIODIC);
void CALLBACK CallBackProc(UINT uIdEvent, UINT uReserved, DWORD dwData, DWORD dw1, DWORD dw2);
不知道这个 函数的各个参数 如何利用 回调函数参??定时器
[解决办法]
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757634(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ff728861(v=vs.85).aspx
[解决办法]
uTimerID
The identifier of the timer. The identifier is returned by the timeSetEvent function.
uMsg
Reserved.
dwUser
The value that was specified for the dwUser parameter of the timeSetEvent function.
dw1
Reserved.
dw2
Reserved.
[解决办法]
typedef void ( CALLBACK *LPTIMECALLBACK)(
UINT uTimerID,
UINT uMsg,
DWORD_PTR dwUser,
DWORD_PTR dw1,
DWORD_PTR dw2
);