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

DeleteConnectedIdentity function (Indentitystore.h)

· 52CE 我爱测

Deletes the user credential used for the connected identity.

Deletes the user credential used for the connected identity.

Syntax

SEC_ENTRY DeleteConnectedIdentity(
  _In_     PVOID  ProviderHandle,
  _In_opt_ HANDLE UserToken,
  _In_     PSID   UserSid,
  _In_     PWSTR  IdentityUserName
);

Parameters

ProviderHandle [in]

Identity provider handle.

UserToken [in, optional]

Token of the connected user whose account is going to be converted to a local account. If UserToken is not NULL, the identity provider uses this token to load the user profile and clean up connected states. If UserToken is NULL, LSA is forcing the disconnection. The identity provider should clean up any global connected states on this user, but the provider does not have to clean up connected states in the user profile.

UserSid [in]

The primary SID of the connected user. If UserToken is not NULL, this parameter is the user SID of the token. If UserToken is NULL, this parameter is used to identify the connected user and clean up global connected states of that user.

IdentityUserName [in]

The user name of the identity.

Return value

If the function succeeds, the function returns SEC_E_OK.

If the function fails, the function may return one of the following error codes.

Return value Description
STATUS_INVALID_PARAMETER A parameter is not valid.
STATUS_NO_SUCH_USER The user identified by UserSid does not exist, is not currently connected, or there is no identity whose user name matches IdentityUserName.
STATUS_INSUFFICIENT_RESOURCES There is not enough memory to process the request.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header Indentitystore.h

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

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

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