VhfAsyncOperationComplete function (vhf.h)

The HID source driver calls this method to set the results of an asynchronous operation.

Syntax

NTSTATUS VhfAsyncOperationComplete(
  [in] VHFOPERATIONHANDLE VhfOperationHandle,
  [in] NTSTATUS           CompletionStatus
);

Parameters

[in] VhfOperationHandle

The operation handle set by Virtual HID Framework (VHF). This handle is passed to the HID source driver in the VhfOperationHandle parameter of EvtVhfAsyncOperation.

[in] CompletionStatus

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

Return value

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

Remarks

The HID source driver can call from the event callback or at a later time after returning from the EvtVhfAsyncOperation callback.

Requirements

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

See also

Write a HID source driver by using Virtual HID Framework (VHF)