Re: LoadUserProfile
From: Bob (anonymous_at_discussions.microsoft.com)
Date: 12/06/03
- Next message: Chan Kae Siang: "Program Certificate Information using CrytoAPI"
- Previous message: Chan Kae Siang: "Problem in creating Subject Alt Name using Crypto API"
- In reply to: Dan Griffin: "Re: LoadUserProfile"
- Next in thread: Bob: "Re: LoadUserProfile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 6 Dec 2003 08:16:22 -0800
I have got ahead on this a little. I think I found an
undocument requirement for loading the profile
(SE_RESTORE_NAME has to be enabled) and now during the
call to LoadUserProfile, the popup box says
"Windows cannot log you on because the profile cannot be
loaded. Contact your network administrator.
DETAIL - The system cannot find the file specified."
So now, the error code is "0" (zero!). but the profile key
handle remains NULL. Great huh?
I've turned on the user logs. Relevant portion is as
follows:
USERENV(5a8.280) 10:48:40:400
GetExistingLocalProfileImage: Found local profile image
file ok <C:\Documents and Settings\Admin.BOB\ntuser.dat>
USERENV(5a8.280) 10:48:40:410
GetExistingLocalProfileImage: Failed to query low profile
unload time with error 2
USERENV(5a8.280) 10:48:40:420 Local Existing Profile Image
is reachable
USERENV(5a8.280) 10:48:40:420 Local profile name is
<C:\Documents and Settings\Admin.BOB>
USERENV(5a8.280) 10:48:40:430 RestoreUserProfile: No
central profile. Attempting to load local profile.
USERENV(5a8.280) 10:48:40:440 MyRegLoadKey: Failed to
enable restore privilege to load registry key
USERENV(5a8.280) 10:48:40:440 MyRegLoadKey: Mutex
released. Returning 0.
USERENV(5a8.280) 10:48:40:450 RestoreUserProfile: Failed
to open current user key. Error = 2
USERENV(5a8.280) 10:48:40:460 RestoreUserProfile: Could
not load the user profile. Error = 2
USERENV(5a8.280) 10:48:50:805 MyRegUnloadKey: Failed to
enable restore privilege to unload registry key
USERENV(5a8.280) 10:48:50:815 MyRegUnloadKey: Mutex
released. Returning 0.
USERENV(5a8.280) 10:48:50:815 RestoreUserProfile: About
to Leave. Final Information follows:
USERENV(5a8.280) 10:48:50:825 Profile was NOT successfully
loaded.
USERENV(5a8.280) 10:48:50:835 lpProfile->lpRoamingProfile
= <>
USERENV(5a8.280) 10:48:50:835 lpProfile->lpLocalProfile =
<C:\Documents and Settings\Admin.BOB>
USERENV(5a8.280) 10:48:50:845 lpProfile->dwInternalFlags =
0x0
USERENV(5a8.280) 10:48:50:855 RestoreUserProfile: Leaving.
USERENV(5a8.280) 10:48:50:855 LoadUserProfile:
RestoreUserProfile returned FALSE
USERENV(5a8.280) 10:48:50:865 LoadUserProfile: Releasing
mutex.
USERENV(5a8.280) 10:48:50:875 LoadUserProfile: Leaving
with a value of 0.
USERENV(5a8.280) 10:48:50:875 GetLastError() = 0x2
USERENV(5a8.280) 10:48:50:885
=========================================================
Thanks in advance for any insights you can offer.
Bob.
- Next message: Chan Kae Siang: "Program Certificate Information using CrytoAPI"
- Previous message: Chan Kae Siang: "Problem in creating Subject Alt Name using Crypto API"
- In reply to: Dan Griffin: "Re: LoadUserProfile"
- Next in thread: Bob: "Re: LoadUserProfile"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|