On 5/21/07, Nigel Liang (梁乃強) <[EMAIL PROTECTED]> wrote:
Hi,
I am not quite sure I understand what you mean? CreateTimerQueueTimer
should return a Boolean indicating whether the operation has
succeeded. Checking the return value in a ternary operation should
return the correct handle if CreateTi
Hi,
I am not quite sure I understand what you mean? CreateTimerQueueTimer
should return a Boolean indicating whether the operation has
succeeded. Checking the return value in a ternary operation should
return the correct handle if CreateTimerQueueTimer succeeds and NULL
otherwise. Unless I have m
"Nigel Liang" <[EMAIL PROTECTED]> wrote:
+HANDLE WINAPI SHSetTimerQueueTimer(HANDLE hQueue,
+WAITORTIMERCALLBACK pfnCallback, LPVOID pContext, DWORD dwDueTime,
+DWORD dwPeriod, LPCSTR lpszLibrary, DWORD dwFlags)
+{
...
+return CreateTimerQueueTimer(&hNewTimer, hQueue, pfnCa
"Nigel Liang" <[EMAIL PROTECTED]> wrote:
+CreateTimerQueueTimer(phNewTimer, hQueue, pfnCallback, pContext,
+dwDueTime, dwPeriod, dwFlags);
+
+return *phNewTimer;
You have to check the return value of CreateTimerQueueTimer before
returning a possible garbage.
--
Dmitry.