42
Function Reference
system). You can’t release the event object
you created, because it was attached to the
VxD. The VxD would release the event
object when you installed another event.
One way to disable the event handling is
that you install another event which handle
is NULL (ex: CanInstallEvent(handle, index,
NULL)). And you can create a thread to
handle the error event.
See Also
CanRemoveCallBack(),CanInstallCall-
Back()
Usage
C/C++ (Windows 95/98/NT)
#include “pci7841.h
int handle = CanOpenDriver(0, 0);
//
open the port 0 of card 0
…
//
Installs the ErrorWarning handling event and
stores the previous one.
HANDLE hEvent = CreateEvent(NULL, FALSE, TRUE,
“ErrorWarning”);
CanInstallEvent(0, 2, hEvent);
//..create a thread ….
Thread function
WaitForSingleObject(hEvent, INFINITE);
ResetEvent(hEvent);
//
Event handling
Summary of Contents for NuCOM cPCI-7841
Page 4: ......
Page 14: ...6 Introduction ...