FwpmCalloutGetSecurityInfoByKey0 - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// fwpmk.h

NTSTATUS FwpmCalloutGetSecurityInfoByKey0(
  [in]           HANDLE               engineHandle,
  [in, optional] const GUID           *key,
  [in]           SECURITY_INFORMATION securityInfo,
  [out]          PSID                 *sidOwner,
  [out]          PSID                 *sidGroup,
  [out]          PACL                 *dacl,
  [out]          PACL                 *sacl,
  [out]          PSECURITY_DESCRIPTOR *securityDescriptor
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-fwpmk-fwpmcalloutgetsecurityinfobykey0)

Description

The FwpmCalloutGetSecurityInfoByKey0 function retrieves a copy of the security descriptor for a callout object.

Parameters

engineHandle [in]

Handle for an open session to the filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.

key [in, optional]

Pointer to a GUID that uniquely identifies the callout. This GUID was specified in the calloutKey member of the callout parameter when the application called FwpmCalloutAdd0 for this object.

securityInfo [in]

The type of security information to retrieve.

sidOwner [out]

The owner security identifier (SID) in the returned security descriptor.

sidGroup [out]

The primary group security identifier (SID) in the returned security descriptor.

dacl [out]

The discretionary access control list (DACL) in the returned security descriptor.

sacl [out]

The system access control list (SACL) in the returned security descriptor.

securityDescriptor [out]

The returned security descriptor.

Return value

Return code/value Description
ERROR_SUCCESS
0
The security descriptor was retrieved successfully.
FWP_E_* error code
0x80320001—0x80320039
A Windows Filtering Platform (WFP) specific error. See WFP Error Codes for details.
RPC_* error code
0x80010001—0x80010122
Failure to communicate with the remote or local firewall engine.
Other NTSTATUS codes An error occurred.

Remarks

If the key parameter is NULL or if it is a NULL GUID, this function manages the security information of the callouts container.

The returned securityDescriptor parameter must be freed through a call to FwpmFreeMemory0. The other four (optional) returned parameters must not be freed, as they point to addresses within the securityDescriptor parameter.

This function behaves like the standard Win32 GetSecurityInfo function. The caller needs the same standard access rights as described in the GetSecurityInfo reference topic.

FwpmCalloutGetSecurityInfoByKey0 is a specific implementation of FwpmCalloutGetSecurityInfoByKey. See WFP Version-Independent Names and Targeting Specific Versions of Windows for more information.

See also