|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Disable windows shortcuts
Is it possible to disable windows shorcuts
Alt+Tab Alt+f4 Alt+Ctrl+Del under windows 2000 with out using the registry settings |
|
#2
|
|||
|
|||
|
Yes. It is possible using some WinAPI (ShellAPI?) functions. If you are a programmer, I´ll look it up for you...
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Disable Windows Shortcuts
Hello Mr. Hirsch.
I'am from Germany. I want to disable the Shortcuts Strg+Esc, Alt+F4, Strg+Alt+Entf. Leider ist mir das noch nicht gelungen. I'am an programmer. If you could give me an advice, and help me in this special point. This would be very, very nice, maybe we smoke a littel joint! *Joke* TNX! |
|
#4
|
|||
|
|||
|
What´s your programming language then?
for C: - in your WndProc, use: Code:
// disable alt-f4 if (msg.message==WM_CLOSE) return 0; - anywhere use: Code:
// claim your program is a password protected screen saver, this disables ctrl-alt-del, alt-tab and ctrl+esc int old; SystemParametersInfo(SPI_SCREENSAVERRUNNING,true,(void*)&old,0); Be careful, this will lock your whole system, if your program breaks there is no way around pressing the reset button! [edit]did some beautyfication[/edit] Last edited by M.Hirsch : April 3rd, 2003 at 10:48 AM. |
|
#5
|
|||
|
|||
|
Helle and Thanks to Mr. Hirsch... Bur one more question...
What about Visual Basic?! Is ist possible do diable the Windows-Short-Cuts too?!
Thanks for your professional advice! bm / prod |
|
#6
|
|||
|
|||
|
I guess yes. But honestly, I have no idea about VB...
Maybe have a look at msdn.microsoft.com . there is also the "official" docs for this function. |
|
#7
|
|||
|
|||
|
Quote:
First of all, i am a student from the netherlands and i'm a beginner programmer! i've got the same problem like above. I see you've got the solution but in my programm it will not work, c++ builder gives an error at: Code:
if (msg.message==WM_CLOSE) return 0; you also said that you have to use this part in the wndproc, but I think i haven't a wndproc?? is there an other manner? The other part you gave, gives no errors, but i still can use Alt Tab, Alt F4 etc... i don't understand that, can you please help me? Thanks in advantage! R. |
|
#8
|
|||
|
|||
|
Quote:
You do have a wndproc. You just can´t see it (yet) ![]() It gives you an error because I assumed the reader has some basic knowledge about WinApi programming and can adapt the code to his variable naming and other needs. Sorry, you can hardly understand or use the code without this. Find out what a wndproc is and how windows uses messages, you´ll see then. Ask that in the C/C++ forums, this is the wrong forum to discuss this anyway. A hint: the WM_CLOSE part (disallow closing the window) can be done completely different in Borland C++. Have a look at the TForm::OnCloseQuery event. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Windows Help > Disable windows shortcuts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|