开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜