Link to home
Start Free TrialLog in
Avatar of vmpn
vmpn

asked on

CTRL+ALT+DEL

How do I call up the window that you get if you press CTRL+ALT+DEL from inside C++ program.
Avatar of vmpn
vmpn

ASKER

Edited text of question
which OS do you use ?
which version of c++ ?
There is no built-in way, that is there is no API procedure or established means to do this.  However,  you can try to use keybd_event() to "fake" the control-alt-delete sequence.   I believe that will work.  Let me know if you have questions.
Avatar of vmpn

ASKER

Its MS VC++ 5.0 OR MS VC++ 6.0. I would like to know ways to do in for Win95 and Win98.
The OS and C+++ version don't matter.  (as long as the OS is a windows OS).  use keybd_event().  You will need to use it 6 times.  Once the indicate contorl is down, then to indicate alt is down, then to indicate that delete is down, then to indicate delete is up etc...
Avatar of vmpn

ASKER

I am lloking into your solution.
Avatar of vmpn

ASKER

NOPE. The documentation states that the function is for WinNT ONLY.

Avatar of vmpn

ASKER

Oops. Nevermind
Avatar of vmpn

ASKER

Hi Nietod,
Please post your comment as an answer.
Looks like it works just give me time to test it on couple of PCs.

Thank you, very much
VMPN
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So, how is it working?