Bewerken

Delen via


VhfStart function (vhf.h)

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

Syntax

NTSTATUS VhfStart(
  [in] VHFHANDLE VhfHandle
);

Parameters

[in] 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 call VhfDelete.

VhfAsyncOperationComplete and VhfReadReportSubmit may be called before VhfStart returns (e.g. from within an invoked callback).

Requirements

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