Microsoft KB Archive/248684

From BetaArchive Wiki
Knowledge Base

INFO: Auto Events in an Interrupt Service Thread

Article ID: 248684

Article Last Modified on 12/19/2003


  • Microsoft Windows CE 2.12 for the Handheld PC
  • Microsoft Windows CE 2.11 for the Handheld PC

This article was previously published under Q248684


When you create an event for an Interrupt Service Thread (IST) with the flag bManualReset = TRUE, and call the InterruptInitialize function with this event handle, as shown in the sample code, then you always get the "wrong parameter" error message.

Sample Code

HANDLE hMoses;
        hMoses = CreateEvent(NULL,TRUE,FALSE,0);

        if (hMoses == INVALID_HANDLE_VALUE)
                AfxMessageBox(_T("Handle invalid"));


                AfxMessageBox(_T("INT Init failed"));

You get the "wrong parameter" error message because IST only permits the use of auto-reset events.

Keywords: kbinfo KB248684