大网数据广告活动
账户与安全

SeciAllocateAndSetIPAddress function

· 52CE 我爱测

Sets the caller IP address to appear in security audit events.

Sets the caller's IP address to appear in security audit events.

Syntax

SECURITY_STATUS SEC_ENTRY SeciAllocateAndSetIPAddress(
  _in_  PUCHAR IPAddress,
  _in_  ULONG  IPAddressLength,
  _out_ PBOOL  FreeCallContext
);

Parameters

IPAddress [in]

A pointer to the IP address to be set. The IP address is represented as a SOCKADDR structure.

IPAddressLength [in]

The length of the IPAddress structure.

FreeCallContext [out]

If set to TRUE, the caller is responsible for calling SeciFreeCallContext.

Return value

If the function succeeds, it returns SEC_E_OK.

If the function fails, it returns a non-zero error code.

Remarks

This function is not present in the SDK headers. To use it, call the LoadLibrary function to obtain a handle to SSPICLI.DLL and then use GetProcAddress to obtain the function address.

The IPAddress parameter should be a valid pointer to an IP address structure obtained from the network layer. This corresponds to the addr output parameter to the Accept function.

If FreeCallContext is set to TRUE on output, the caller must call SeciFreeCallContext function before relinquishing the thread.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target platform Windows
Header None
Library None
DLL SSPICLI.DLL

See also

SeciFreeCallContext

Accept

SspiUnmarshalAuthIdentity

HttpListenerRequest.RemoteEndPoint

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/31/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。