Skip to main content
IPsecKeyManagerGetSecurityInfoByKey0 function

The IPsecKeyManagerGetSecurityInfoByKey0 function retrieves a copy of the security descriptor that controls access to the key manager.

Syntax


DWORD WINAPI IPsecKeyManagerGetSecurityInfoByKey0(
  _In_       HANDLE engineHandle,
  const void *reserved,
  _In_       SECURITY_INFORMATION securityInfo,
  _Out_opt_  PSID *sidOwner,
  _Out_opt_  PSID *sidGroup,
  _Out_opt_  PACL *dacl,
  _Out_opt_  PACL *sacl,
  _Out_      PSECURITY_DESCRIPTOR *securityDescriptor
);

Parameters

engineHandle [in]

Type: HANDLE

A handle to an open session to the filter engine. Call FwpmEngineOpen0 to open a session to the filter engine.

reserved

Type: const void*

Reserved. Must be set to NULL.

securityInfo [in]

Type: SECURITY_INFORMATION

The type of security information to retrieve.

sidOwner [out, optional]

Type: PSID*

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

sidGroup [out, optional]

Type: PSID*

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

dacl [out, optional]

Type: PACL*

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

sacl [out, optional]

Type: PACL*

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

securityDescriptor [out]

Type: PSECURITY_DESCRIPTOR*

The returned security descriptor.

Return value

Type: DWORD

Return code/valueDescription
ERROR_SUCCESS
0

The security descriptor was successfully retrieved.

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.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Fwpmu.h

Library

Fwpuclnt.lib

DLL

Fwpuclnt.dll

See also

WFP Functions