IPsecDospGetSecurityInfo0 函式 (fwpmu.h)

IPsecDospGetSecurityInfo0 函式會擷取 IPsec DoS Protection 資料庫的安全性描述元複本。

語法

DWORD IPsecDospGetSecurityInfo0(
  [in]            HANDLE               engineHandle,
  [in]            SECURITY_INFORMATION securityInfo,
  [out, optional] PSID                 *sidOwner,
  [out, optional] PSID                 *sidGroup,
  [out, optional] PACL                 *dacl,
  [out, optional] PACL                 *sacl,
  [out]           PSECURITY_DESCRIPTOR *securityDescriptor
);

參數

[in] engineHandle

類型: HANDLE

篩選引擎開啟會話的句柄。 呼叫 FwpmEngineOpen0 以開啟篩選引擎的會話。

[in] securityInfo

類型: SECURITY_INFORMATION

要擷取的安全性資訊類型。

[out, optional] sidOwner

類型: PSID*

傳回的安全性描述元中 (SID) 擁有者安全性識別碼。

[out, optional] sidGroup

類型: PSID*

傳回的安全性描述元中 (SID) 的主要群組安全組標識符。

[out, optional] dacl

類型: PACL*

傳回的安全性描述元中的任意訪問控制清單 (DACL) 。

[out, optional] sacl

類型: PACL*

系統訪問控制清單 (傳回的安全性描述元中的 SACL) 。

[out] securityDescriptor

類型: PSECURITY_DESCRIPTOR*

傳回的安全性描述元。

傳回值

類型: DWORD

傳回碼/值 Description
ERROR_SUCCESS
0
已成功擷取安全性描述元。
FWP_E_* 錯誤碼
0x80320001— 0x80320039
Windows 篩選平臺 () 特定錯誤。 如需詳細資訊,請參閱 其錯誤碼
RPC_* 錯誤碼
0x80010001— 0x80010122
無法與遠端或本機防火牆引擎通訊。

備註

傳回 的 securityDescriptor 參數必須透過 FwpmFreeMemory0 的呼叫釋放。 其他四個 (選擇性) 傳回的參數不得釋出,因為它們指向 securityDescriptor 參數內的位址。

此函式的行為就像標準 Win32 GetSecurityInfo 函式一樣。 呼叫端需要與 GetSecurityInfo 參考主題中所述相同的標準訪問許可權。

IPsecDospGetSecurityInfo0 是 IPsecDospGetSecurityInfo 的特定實作。 如需詳細資訊 ,請參閱 Version-Independent 名稱和以特定版本的 Windows 為目標

規格需求

需求
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限傳統型應用程式]
目標平台 Windows
標頭 fwpmu.h
程式庫 Fwpuclnt.lib
Dll Fwpuclnt.dll

另請參閱

IPsecDospSetSecurityInfo0