How to get the mapped driver in an elevated process, Vista & window 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keikoho
    New Member
    • Jul 2010
    • 1

    How to get the mapped driver in an elevated process, Vista & window 7

    Hello everyone,

    My application needs to access a network file (provided in driver file name, e.g. J:\...)
    It works well in WindowXP by using DirectoryInfo class
    and it does not work under Windows Vista if the process is executed "Execute as administrator".
    I tried to apply the following concepts o
    1) mapped network driver: It does not work because
    mapped drives are associated with LUID and the elevated application
    are using different LUID.

    2) Impersonation: It does not work because I do not know
    how to get the user password of the logon session,
    therefore, i cannot impersonate the elevated process to a logon user.

    How can i get the mapped driver of this elevated LUID? Or can i de-elevate
    without using the passord of the loggon user?

    Thanks,
    Keikohon
Working...