BUG: Win32Cmi Sample Fails or Gives Wait Timeout ErrorID: Q216660
|
The Win32CMI DLL that ships with the Word Developer's Kit either fails to work properly, or returns an error value of -9 (WaitForSingleObject timeout).
The Win32CMI sample project contains a logic error in the way it handles messages in its hook procedure, LGetMsgProc().
Open the Win32Cmi.c file and change the following line in LGetMsgProc():
if (((LPMSG)lParam)->message == vshared.wmIPC && wParam != PM_NOREMOVE)
if (((LPMSG)lParam)->message == vshared.wmIPC && (wParam & PM_REMOVE))
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Additional query words: capi cmiCommandDispatch wdCommandDispatch wll
Keywords : kbSDKWord kbWord kbGrpDSO kbOffice2000
Version : WINDOWS:95
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 1, 1999