win32profile.LoadUserProfile

PyHKEY = LoadUserProfile(hToken, ProfileInfo )

Loads user settings into registry

Parameters

hToken : PyHANDLE

Logon token as returned by win32security::LogonUser, win32security::OpenThreadToken, etc

ProfileInfo : PyPROFILEINFO

Dictionary representing a PROFILEINFO structure

Comments

SE_BACKUP_NAME and SE_RESTORE_NAME privs are required, but do not have to be enabled

Return Value

Returns a handle to user's registry key.