6.2. WD_KernelPlugInClose()

Purpose

Closes the WinDriver Kernel PlugIn handle obtained from WD_KernelPlugInOpen() [6.1].

Prototype
DWORD WD_KernelPlugInClose(
    HANDLE hWD,
    WD_KERNEL_PLUGIN *pKernelPlugIn);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pKernelPlugInWD_KERNEL_PLUGIN*Input
Description
NameDescription
hWD Handle to WinDriver
pKernelPlugIn Pointer to Kernel PlugIn information structure, which was previously passed to WD_KernelPlugInOpen() [6.1]
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].

Example
WD_KernelPlugInClose(hWD, &kernelPlugIn);