Jungo WinDriver  
Official Documentation

◆ WDC_CallKerPlug()

DWORD DLLCALLCONV WDC_CallKerPlug ( _In_ WDC_DEVICE_HANDLE  hDev,
_In_ DWORD  dwMsg,
_Inout_ PVOID  pData,
_Outptr_ PDWORD  pdwResult 
)

Sends a message from a user-mode application to a Kernel PlugIn driver.


Send Kernel PlugIn messages

The function passes a message ID from the application to the Kernel PlugIn's KP_Call function, which should be implemented to handle the specified message ID, and returns the result from the Kernel PlugIn to the user-mode application.

Parameters
[in]hDevHandle to a WDC device, returned by WDC_xxxDeviceOpen()
[in]dwMsgA message ID to pass to the Kernel PlugIn driver (specifically to KP_Call)
[in,out]pDataPointer to data to pass between the Kernel PlugIn driver and the user-mode application
[out]pdwResultResult returned by the Kernel PlugIn driver (KP_Call) for the operation performed in the kernel as a result of the message that was sent
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise