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

LsaManageSidNameMapping function

· 52CE 我爱测

Adds or removes SID/name mappings from the mapping set registered with the LSA Lookup Service.

Description

The LsaManageSidNameMapping function adds or removes SID/name mappings from the mapping set registered with the LSA Lookup Service.

void WINAPI LsaManageSidNameMapping(
  _In_  LSA_SID_NAME_MAPPING_OPERATION_TYPE    OpType,
  _In_  PLSA_SID_NAME_MAPPING_OPERATION_INPUT  OpInput,
  _Out_ PLSA_SID_NAME_MAPPING_OPERATION_OUTPUT *OpOutput
);

Parameters

OpType [in]

Indicates if a this function is being called to add or remove an SID/name mapping.

OpInput [in]

Indicates the domain, account, and SID values to use during this operation. Additional flags can also be set within this structure.

OpOutput [out]

Contains a value of LSA_SID_NAME_MAPPING_OPERATION_ERROR that indicates operation success or failure.

Value Meaning
Success Operation is complete without error.
NonMappingError An error unrelated to SID-name mapping has occurred.
NameCollision Operation failure due to name collision.
SidCollision Operation failure due to SID collision.
DomainNotFound Corresponding domain not found.
DomainSidPrefixMismatch Provided SID doesn't have the correct domain prefix.
MappingNotFound Mapping not found in the cache.

Returns

If the mapping is inserted successfully, the return value is STATUS_SUCCESS. Otherwise, if the function fails due to SID or name conflicts, STATUS_INVALID_PARAMETER error will be returned.

Remarks

See also

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 04/10/2019
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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