next up previous contents
Next: 5.3 WD_Version() Up: 5. General WD_xxx Functions Previous: 5.1 Calling Sequence WinDriver   Contents


5.2 WD_Open()


PURPOSE

$\bullet$Opens a handle to access the WinDriver kernel module. The handle is used by all WinDriver APIs, and therefore must be called before any other WinDriver API is called.


PROTOTYPE

HANDLE WD_Open(void);


RETURN VALUE

The handle to the WinDriver kernel module.
If device could not be opened, returns INVALID_HANDLE_VALUE.


REMARKS


EXAMPLE

HANDLE hWD;

hWD = WD_Open();
if (hWD == INVALID_HANDLE_VALUE)
{
    printf("Cannot open WinDriver device\n");
}