Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FwpmvSwitchEventsGetSecurityInfo0 function

The FwpmvSwitchEventsGetSecurityInfo0 function retrieves a copy of the security descriptor for a vSwitch event.

Syntax


DWORD WINAPI FwpmvSwitchEventsGetSecurityInfo0(
  _In_   HANDLE engineHandle,
  _In_   SECURITY_INFORMATION securityInfo,
  _Out_  PSID *sidOwner,
  _Out_  PSID *sidGroup,
  _Out_  PACL *dacl,
  _Out_  PACL *sacl,
  _Out_  PSECURITY_DESCRIPTOR *securityDescriptor
);

Parameters

engineHandle [in]

Type: HANDLE

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

securityInfo [in]

Type: SECURITY_INFORMATION

The type of security information to retrieve.

sidOwner [out]

Type: PSID*

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

sidGroup [out]

Type: PSID*

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

dacl [out]

Type: PACL*

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

sacl [out]

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.

 

Remarks

The returned securityDescriptor parameter must be freed through a call to FwpmFreeMemory0. The other four 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.

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

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
FwpmvSwitchEventsSetSecurityInfo0

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.