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. ctrl+alt+del(windows 2000)

ctrl+alt+del(windows 2000)

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 3 Posters 2 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.
  • S Offline
    S Offline
    slah
    wrote on last edited by
    #1

    i want to disable ctrl+alt+del under windows 2000 and SystemParameterInfo() is not working. here is the code UINT _Junk; // turn off ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,&_Junk,0); // ... do stuff? like what? // turn on ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,0,&_Junk,0); what could be the problem, if anybody tells me.

    D D 2 Replies Last reply
    0
    • S slah

      i want to disable ctrl+alt+del under windows 2000 and SystemParameterInfo() is not working. here is the code UINT _Junk; // turn off ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,&_Junk,0); // ... do stuff? like what? // turn on ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,0,&_Junk,0); what could be the problem, if anybody tells me.

      D Offline
      D Offline
      DanielP
      wrote on last edited by
      #2

      it works only for Windows 95/98/Me

      1 Reply Last reply
      0
      • S slah

        i want to disable ctrl+alt+del under windows 2000 and SystemParameterInfo() is not working. here is the code UINT _Junk; // turn off ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,&_Junk,0); // ... do stuff? like what? // turn on ctl-alt-del SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,0,&_Junk,0); what could be the problem, if anybody tells me.

        D Offline
        D Offline
        Dy
        wrote on last edited by
        #3

        According to MSDN you shouldn't use SPI_SETSCREENSAVERRUNNING (look up SystemParametersInfo for details). Would SPI_SETSCREENSAVEACTIVE help here? - I don't think it would but it might be worth a try :~ If you have MSDN there, look up the article called 'HOWTO: Disable Task Switching on Win32 Platforms' - it talks about low level hooks to achive the goal. If you find an easier / better way please post a reply here for the rest of us!


        Dylan Kenneally London, UK

        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