VhfAsyncOperationComplete function

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

Syntax

NTSTATUS VhfAsyncOperationComplete(
  VHFOPERATIONHANDLE VhfOperationHandle,
  NTSTATUS           CompletionStatus
);

Parameters

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.

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

   
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)