开发者

The current user folder will be changed on Windows Vista and 7

开发者 https://www.devze.com 2022-12-15 05:50 出处:网络
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 fol开发者_开发百科der in AP will

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 fol开发者_开发百科der in AP will be changed to Administrator folder, not Guest folder. How to solve it?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消