Jungo WinDriver  
Official Documentation

◆ WD_KernelPlugInOpen

#define WD_KernelPlugInOpen (   h,
  pKernelPlugIn 
)
Value:
#define FALSE
Definition: kpstdlib.h:260
#define IOCTL_WD_KERNEL_PLUGIN_OPEN
Definition: windrvr.h:1623
#define WD_FUNCTION
Definition: windrvr.h:1843

Obtain a valid handle to the Kernel PlugIn.

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open().
[in,out]pKernelPlugInPointer to Kernel PlugIn information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
WD_KERNEL_PLUGIN kernelPlugIn;
HANDLE hWD;
hWD = WD_Open();
{
goto Error; /* Handle error */
}
BZERO(kernelPlugIn);
/* Tells WinDriver which driver to open */
kernelPlugIn.pcDriverName = "KPDriver";
dwStatus = WD_KernelPlugInOpen(hWD, &kernelPlugIn);
if (dwStatus)
{
printf ("Failed opening a handle to the Kernel PlugIn. Error: 0x%x (%s)\n",
dwStatus, Stat2Str(dwStatus));
}
else
{
printf("Opened a handle to the Kernel PlugIn (0x%x)\n",
kernelPlugIn.hKernelPlugIn);
}
const char *DLLCALLCONV Stat2Str(_In_ DWORD dwStatus)
Retrieves the status string that corresponds to a status code.
DWORD hKernelPlugIn
Definition: windrvr.h:1031
#define WD_Open
Definition: wd_log.h:65
#define WD_KernelPlugInOpen(h, pKernelPlugIn)
Obtain a valid handle to the Kernel PlugIn.
Definition: windrvr.h:2554
#define INVALID_HANDLE_VALUE
Definition: windrvr.h:1557
#define BZERO(buf)
Definition: windrvr.h:1553

Definition at line 2554 of file windrvr.h.