How to programmatically invoke Ctrl+Alt+Del window in Windows 7
Asked Answered
P

1

7

I am developing custom credential provider dll for Windows 7. This has a condition check; if it fails I want to show Ctrl+Alt+Del window.

Which function can I call to invoke the Ctrl+Alt+Del(SAS) window?

Phebephedra answered 29/5, 2013 at 9:3 Comment(3)
This may interest you: support.citrixonline.com/en_us/gotomypc/all_files/gtc140010. It seems, that under some circumstances user may prevent you from sending the SAS.Geomorphic
@CodeRider Wha-? int main() { /* insert code here */ }Geomorphic
possible duplicate of sending the message Ctrl+Alt+Del from my applicationSixpence
E
3

The answer is No such APIs exists.If you are so particular, try sending the key press sequence of Ctrl+Alt+Del combination using SendInput function in your code. This will surely invoke SAS window.

Actually we cannot hook Ctrl+Alt+Del key combination. In Windows XP it was possible by customizing GINA.dll. In between the window you are talking about is called the Winlogon desktop. It is also called secure desktop.

It wiil be invoked internally by windows only on certain situations like on start up, when the system is locked etc.

If you are trying to run customized application on winlogon desktop it is possible by using your customized credential provider. The credential provider dll can invoke any applications during start up of windows. It cannot entirely replace the default winlogon desktop.

It is meant for adding customized log in mechanisms in Windows 7. Have a look at this link

Evaporation answered 29/5, 2013 at 9:10 Comment(7)
Thanks CodeRIder.i already read that link.But i just want to know,there is any windows function for invoke Ctrl+alt+del(SAS) like sendSAS.Phebephedra
There were APIs for interaction with Winlogon in earlier versions of Windows like WlxSASNotify, WlxLoggedONSas etc. as given in this link . But these APIs are not supported in Windows 7Evaporation
i can show message box after i enter the submit button in log on time.but,after that message box shown i want to stop that process and show the switch user tiles or ctrl+alt+del or current user tile.Phebephedra
In the submit button you may also call PostQuitMessage(). By default after your dialog closes, you can view the SAS window i guess.Evaporation
No,its not working.it destroy or hide the previous message box only.Phebephedra
Try using exit() or ExitProcess() insteadEvaporation
let us continue this discussion in chatEvaporation

© 2022 - 2024 — McMap. All rights reserved.