CAccessToken::LoadUserProfile

 

Call this method to load the user profile associated with the CAccessToken object.

Syntax

bool LoadUserProfile( ) throw(...);

Return Value

Returns true on success, false on failure.

Remarks

In debug builds, an assertion error will occur if the CAccessToken does not contain a valid token, or if a user profile already exists.

Requirements

Header: atlsecurity.h

See Also

CAccessToken Class
CAccessToken::ImpersonateLoggedOnUser
CAccessToken::HKeyCurrentUser