I have windows, so like the subject says, how do I disable the control alt delete command in my program so that the close program dialog doesn't show up. I've seen programs that can do it.
thanx
I have windows, so like the subject says, how do I disable the control alt delete command in my program so that the close program dialog doesn't show up. I've seen programs that can do it.
thanx
Why?
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
If your program did this, I would not install it. You are using Windows. Capturing it all for your application is contrary to the concept of Windows.
( btw: If I knew how to do it, I would post it, but I simply don't know, because I would never implement it that way. If you give more information on what you want to achieve, maybe we could suggest an alternative. )
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
I think there is a way....but it involves trinking the system that a screensaver is running....I dont know how well it works.....
Also I guess key hooking will probably do it.....
Still I agree with nvoigt that this is not a very user friendly thing to do......and I cant see how a program would benefit from it
>Why?
I'm really just curious and I only program for fun. User friendly makes no difference to me now.
I was programming a sort of a password program and you could just use control alt delete to exit the program and get in. I don't need a password program but I was just curious if I could do it this way.
Code:disable it: SystemParametersInfo(SPI_SCREENSAVERRUNNING, TRUE, 0, 0); enable it: SystemParametersInfo(SPI_SCREENSAVERRUNNING, FALSE, 0, 0); or you can hide your program: typedef DWORD (__stdcall *RegServ)(DWORD, DWORD); HINSTANCE hKernelLib; DWORD Dum; RegServ RegisterServiceProcess; GetWindowThreadProcessId(hwnd, &Dum); hKernelLib = LoadLibrary("kernel32.dll"); if (hKernelLib) { RegisterServiceProcess = (RegServ)GetProcAddress(hKernelLib, "RegisterServiceProcess"); if (RegisterServiceProcess) { RegisterServiceProcess(Dum, 1); } }
Sometimes, the farthest point from the center is the center itself.
Your life is your canvas, it's only as beautiful as you paint it.
I hate apps that do that, like serious sam, if they lock up I have to reboot my puter.
Acos is good
Or 'remote admin tools' you can't kill even if you can find them.
If you want a password app, make the dialog system modal so has to get response before continuing.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
If I use a dialog the user could still just use the evil (j/k) ctrl+alt+del.
I agree with you there.I hate apps that do that, like serious sam, if they lock up I have to reboot my puter.
Regaurding the mention of a game that does that, it is quite different than a normal application doing that. When you initilize Direct draw for your game, you can specify that ctrl+alt+del be ignored.....
I tried it (the screen saver thing) way before, and I don't think it works w/ Win3.0/3.1 apps. Can anyone clear this up for me? (I used Borland C++ 4 and run it on Win95)
> I don't think it works w/ Win3.0/3.1 apps
Who cares?
well, I can see how it would be useful im some applications, like on I am currently involved in. The Public Library has computers, but they dont have the manpower to constantly moniter use, so we have a crippler program called Fortres that disables My Computer, Start Menu, Network Neighborhood, et al. In short, if a program isn't on the desktop, then users don't have access to it.
But it would be pretty useless if someone could just ctrl-alt-del out of it.