Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Using wid As System.Security.Principal.WindowsIdentity = System.Security.Principal.WindowsIdentity.GetCurrent()
  2. Using ImpersonationCtx As System.Security.Principal.WindowsImpersonationContext = wid.Impersonate()
  3. Dim oRet As AppPaths = GetMyPathsCommonCore(udt, bCreateCommonAppDataPath)
  4. ImpersonationCtx.Undo()
  5. Return oRet
  6. End Using
  7. End Using
  8.  
  9. C:Users{User}AppDataLocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement