IUserIdentityManager::GetIdentityByCookie method
[GetIdentityByCookie is not supported and may be altered or unavailable in the future. Instead, use User Accounts with Fast User Switching and Remote Desktop.]
Gets a specific user identity by the cookie used to uniquely identify it.
Syntax
HRESULT GetIdentityByCookie(
[in] GUID *uidCookie,
[out] IUserIdentity **ppIdentity
);
Parameters
-
uidCookie [in]
-
Type: GUID*
The address of a GUID value that represents the cookie for the identity you want to retrieve.
-
ppIdentity [out]
-
Type: IUserIdentity**
The address of the pointer that will receive the user identity object.
Return value
Type: HRESULT
The result of the retrieval request. If successful, it returns S_OK. Otherwise it will return one of the following error codes.
Return code | Description |
---|---|
|
The identity requested could not be found. |
|
Identity management is disabled on the system. |
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 |
|
IDL |
|
DLL |
|
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for