简体   繁体   中英

Managed application on secure desktop under Windows 7

I'm searching for the possibility to show an application on a secure desktop under Windows 7. For explanation: The secure desktop is provided by Windows to avoid external applications to interact with this your application. It should be available to every application, as far as I know. Commonly known examples are the UAC, the service user interaction desktop or the CardSpace-Application (integrated into Windows). Actually it does not mean that every application on the secure desktop is automatically elevated ( as mentioned here ).

It do not want to show the UAC dialog together with my application, but only my application. It is a managed one, and I don't want to code any native code.

Is this possible?

Thanks in advance! Greetings, relexx

You can emulate the "Secure Desktop" by calling CreateDesktop Win32 API, and you also can do this from C#, but I must warn you this is not for faint-hearted. A lot of perils awaits you on your way and it is not certain that you reach the desired destination successfully.

This link explains a bit how CreateDesktop works CreateDesktop() with vista and UAC on (C, windows) , and this one shows how to call it from C# PInvoke CreateDesktop .

You can also get some more information by googling CreateDesktop.

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM