views:

98

answers:

1

I have a application need to run under Administrator right, If I run it with Guest user account, after click the UAC dialog, using Windows API to get the current user folder in AP will be changed to Administrator folder, not Guest folder. How to solve it? Thanks in advance.

A: 

Get the current user folder before triggering the UAC dialog, store it somewhere and pass it to the code that runs after the UAC.

If this does not work for you, please explain why and post some code.

Doc Brown
atk