6

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?

Fabrizio
  • 6,598
  • 5
  • 31
  • 75
Sanju Monu
  • 557
  • 1
  • 11
  • 38
  • This may interest you: http://support.citrixonline.com/en_us/gotomypc/all_files/gtc140010. It seems, that under some circumstances user may prevent you from sending the SAS. – Spook May 29 '13 at 09:13
  • 1
    @CodeRider Wha-? `int main() { /* insert code here */ }` – Spook May 29 '13 at 09:30
  • possible duplicate of [sending the message Ctrl+Alt+Del from my application](http://stackoverflow.com/questions/597959/sending-the-message-ctrlaltdel-from-my-application) – Bernhard Barker May 30 '13 at 08:52

1 Answers1

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

Fabrizio
  • 6,598
  • 5
  • 31
  • 75
CodeRider
  • 1,520
  • 4
  • 16
  • 33
  • 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. – Sanju Monu May 29 '13 at 10:00
  • There were APIs for interaction with Winlogon in earlier versions of Windows like WlxSASNotify, WlxLoggedONSas etc. as given in this [link](http://msdn.microsoft.com/en-us/library/windows/desktop/aa376105(v=vs.85).aspx) . But these APIs are not supported in Windows 7 – CodeRider May 29 '13 at 10:17
  • 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. – Sanju Monu May 29 '13 at 10:34
  • In the submit button you may also call PostQuitMessage(). By default after your dialog closes, you can view the SAS window i guess. – CodeRider May 29 '13 at 10:53
  • No,its not working.it destroy or hide the previous message box only. – Sanju Monu May 29 '13 at 11:10
  • Try using exit() or ExitProcess() instead – CodeRider May 29 '13 at 11:18
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/30824/discussion-between-coderider-and-sanju-monu) – CodeRider May 29 '13 at 11:23