IUserIdentityManager::EnumIdentities method

[IUserIdentityManager::EnumIdentities is not supported and may be altered or unavailable in the future. Instead, use User Accounts with Fast User Switching and Remote Desktop.]

Gets an IEnumUserIdentity object, which can be used to enumerate through the user identities present on the system.

Syntax

HRESULT EnumIdentities(
  [out] IEnumUserIdentity **ppEnumUser
);

Parameters

ppEnumUser [out]

Type: IEnumUserIdentity**

The address of the pointer to the new identity enumeration object.

Return value

Type: HRESULT

The result of the retrieval operation. If successful, it returns S_OK. If the enumeration object could not be created, it returns E_OUTOFMEMORY.

Remarks

This method is useful for iteration over the list of identities on the system. To retrieve a single identity by its cookie without accessing the list, call IUserIdentityManager::GetIdentityByCookie.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
End of client support
Windows 2000 Professional
End of server support
Windows 2000 Server
Header
Msident.h
IDL
Msident.idl
DLL
Msident.dll

See also

IUserIdentityManager

IEnumUserIdentity

IUserIdentityManager::GetIdentityByCookie