On Wed, 1 May 2013 11:03:36 -0500, "David Youngblood" <
d...@flash.net>
wrote:
>I'm trying to load a user's profile (LoadUserProfile) using a token returned
>from LogonUser. The call succeeds on XP, but fails on Win7 with error 1314
>(ERROR_PRIVILEGE_NOT_HELD). Research tells me I need to enable
>SE_BACKUP_NAME and SE_RESTORE_NAME priviledges on the token using
>AdjustTokenPrivileges. The call to AdjustTokenPrivileges succeeds but also
>returns error 1300 (ERROR_NOT_ALL_ASSIGNED). I'm open to suggestions as to
>where to go next. My end goal is to impersonate a user (similar to RunAs)
>and have access to the user's printers and mapped drives.
>
"My end goal is to impersonate a user (similar to RunAs) and have
access to the user's printers and mapped drives."
Hopefully you can not, unless the program is run by that User or as an
Admininstrator.
>' Code succeeds on XP, not on Win7
>
Microsoft tightened security beginning with Vista.
-ralph