[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

CTRL+ALT+DEL

How do I call up the window that you get if you press CTRL+ALT+DEL from inside C++ program.
0
vmpn
Asked:
vmpn
  • 6
  • 4
1 Solution
 
vmpnAuthor Commented:
Edited text of question
0
 
arnondCommented:
which OS do you use ?
which version of c++ ?
0
 
nietodCommented:
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
vmpnAuthor Commented:
Its MS VC++ 5.0 OR MS VC++ 6.0. I would like to know ways to do in for Win95 and Win98.
0
 
nietodCommented:
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...
0
 
vmpnAuthor Commented:
I am lloking into your solution.
0
 
vmpnAuthor Commented:
NOPE. The documentation states that the function is for WinNT ONLY.

0
 
vmpnAuthor Commented:
Oops. Nevermind
0
 
vmpnAuthor Commented:
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
0
 
nietodCommented:
Test it well before accepting, since it was definitely a guess on my part.  (I never tried it that is for sure.)  If possible, I would test on NT, 95, and 98.  One each test that it still works when programs other than the desktop have the focus.
0
 
nietodCommented:
So, how is it working?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now