The FwpsOpenToken0 function opens an access token.
NTSTATUS FwpsOpenToken0( IN HANDLE engineHandle, IN LUID modifiedId, IN DWORD desiredAccess, OUT HANDLE *accessToken );
A handle for an open session to the filter engine. A callout driver calls the FwpmEngineOpen0 function to open a session to the filter engine.
Specifies an LUID that changes each time the token is modified. An application can use this value as a test of whether a security context has changed since it was last used.
ACCESS_MASK structure specifying the requested types of access to the access token. These requested access types are compared with the token's discretionary access-control list (DACL) to determine which accesses are granted or denied.
Pointer to a caller-allocated variable that receives a handle to the newly opened access token.
The FwpsOpenToken0 function returns one of the following NTSTATUS codes.
||The access token was successfully opened.|
||An error occurred.|
|Minimum supported client||Available starting with Windows 7.|
|Header||fwpsk.h (include Fwpsk.h)|