Location: Symbol Reference > Classes > TJwSecurityToken Class > TJwSecurityToken Methods > TJwSecurityToken.LoadUserProfile Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityToken.LoadUserProfile Method
Pascal
procedure LoadUserProfile(var ProfileInfo: TJwProfileInfo; const ProfileMembers: TJwProfileMembers);
Parameters 
Description 
var ProfileInfo: TJwProfileInfo 
defines parameter for supplying to winapi LoadUserProfile. You must set a flag in parameter ProfileMembers for each member of this record you want to set. See MSDN for more information. The method returns a registry key handle in member Profile of structure. Call UnLoadUserProfile to unload this key if finished.
 
const ProfileMembers: TJwProfileMembers 
defines which member of ProfileInfo is set by the user. All other parameters are set to default values.
  • pmFlags xclude this value if you want to let the method set PI_NOUI
  • pmUserName Exclude this value if you want to let the method set the correct user name

  • pmProfilePath Exclude this value if you want to let the method get the roaming profile.

 

LoadUserProfile loads the user profile of the current token instance. It also uses the roaming profile if possible. 

 

Exceptions 
Description 
will be raised if call to LoadUserProfile failed 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!