FwpsInjectionHandleDestroy0 function

The FwpsInjectionHandleDestroy0 function destroys an injection handle that was previously created by calling the FwpsInjectionHandleCreate0 function.

Note  FwpsInjectionHandleDestroy0 is a specific version of FwpsInjectionHandleDestroy. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.
 

Syntax

NTSTATUS FwpsInjectionHandleDestroy0(
  HANDLE injectionHandle
);

Parameters

injectionHandle

The injection handle being destroyed.

Return Value

The FwpsInjectionHandleDestroy0 function returns one of the following NTSTATUS codes.

Return code Description
STATUS_SUCCESS
The injection handle was successfully destroyed.
Other status codes
An error occurred.

Remarks

A callout driver calls the FwpsInjectionHandleDestroy0 function to destroy an injection handle that was previously created by calling the FwpsInjectionHandleCreate0 function. The FwpsInjectionHandleDestroy0 function will not return to the caller until all pending injections are completed.

Requirements

   
Minimum supported client Available starting with Windows Vista.
Target Platform Universal
Header fwpsk.h (include Fwpsk.h)
Library Fwpkclnt.lib
IRQL PASSIVE_LEVEL

See Also

FwpsInjectionHandleCreate0