IWiaMiniDrv::drvNotifyPnpEvent method

The IWiaMiniDrv::drvNotifyPnpEvent method responds to the event received from the WIA service.

Syntax

HRESULT drvNotifyPnpEvent(
  const GUID *pEventGUID,
  BSTR       bstrDeviceID,
  ULONG      ulReserved
);

Parameters

pEventGUID

bstrDeviceID

Specifies a string containing the device's unique identifier.

ulReserved

Is reserved for system use.

Return Value

On success, the method should return S_OK. If the method fails, it should return a standard COM error code.

Remarks

The WIA service notifies a WIA minidriver of a supported device event by calling the IWiaMiniDrv::drvNotifyPnpEvent method. In this method the minidriver implements the device-specific functionality needed to respond to the event.

If this method is called with *pEventGuid set to WIA_EVENT_CANCEL_IO device event (described in the Microsoft Windows SDK documentation), it should cancel all current I/O operations as soon as possible.

Requirements

   
Minimum supported client Available in Windows Me and in Windows XP and later.
Target Platform Desktop
Header wiamindr_lh.h (include Wiamindr.h)

See Also

IWiaMiniDrv

IWiaMiniDrv::drvGetCapabilities