|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
IsolatedStorage & Windows ImpersonationHere's what I tried: Psuedo Code: In main() { Verify License(); if ( LimitedUserRights Enviroment) { ImpersonateAccountWithSufficientRightsToRun(); } Write out "SystemUnDo" Information to restore on exit. DoStuff(); UnDo/Restore() } When I Impersonate a user, I am no longer able to write anything out to IsolatedStorage, apparantly, the system, for IsolatedStorage purposes, doesn't get the Impersonated User's context, and IsolatedStorage throws an inaccessible exception. How can (is it possible) to use IsolatedStorage when Impersonating a user? |
|||||||||||||||||||||||