VhfStart function

The HID source driver calls this method to start the virtual HID device.

Syntax

NTSTATUS VhfStart(
  VHFHANDLE VhfHandle
);

Parameters

VhfHandle

A handle to a virtual HID device that your HID source driver received in the previous call to VhfCreate.

Return Value

If the VhfStart call succeeds, the method returns STATUS_SUCCESS. Otherwise an appropriate NTSTATUS value.

Remarks

Virtual HID Framework (VHF) does not invoke any callback functions implemented by the HID source driver until the source driver calls VhfStart. A callback can get invoked before VhfStart returns. After this call succeeds, the driver can submit reports. The HID source driver must not invoke any VHF method until after VhfStart returns successfully

Requirements

   
Target Platform Windows
Header vhf.h
Library VhfKm.lib
IRQL <=DISPATCH_LEVEL