Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Generate Ctrl-Alt-Del programmatically

Generate Ctrl-Alt-Del programmatically

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chintan
    wrote on last edited by
    #1

    Hello guys, I want to generate Ctrl-Alt-Del key sequence programmatically. I have searched a lot on net but don't get any solution. I have tried to fill keyboard buffer with 'keybd_event()' function. But it is also not working. It seems that it fills application's key buffer. Anyway......can anybody help me to solve this problem ? Thanking You, C.R.Naik

    D 1 Reply Last reply
    0
    • C Chintan

      Hello guys, I want to generate Ctrl-Alt-Del key sequence programmatically. I have searched a lot on net but don't get any solution. I have tried to fill keyboard buffer with 'keybd_event()' function. But it is also not working. It seems that it fills application's key buffer. Anyway......can anybody help me to solve this problem ? Thanking You, C.R.Naik

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      It's not an easy one to solve. That key combination is special. When you press the Ctrl+Alt+Del keys on the keyboard, the keyboard driver is detecting that and passing the instructions on to the OS, rather than any application(s). Trying to stuff the keyboard buffer does not get "low enough" in the hierarchy. These two articles don't directly answer your question, but they might help you get started: http://www.codeproject.com/useritems/preventclose.asp http://www.codeproject.com/useritems/GINA\_SPY.asp

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups