Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old March 22nd, 2003, 03:25 AM
helloali helloali is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 2 helloali User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 22nd, 2003, 03:23 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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.

Reply With Quote
  #3  
Old April 3rd, 2003, 07:15 AM
Burki Burki is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 Burki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!

Reply With Quote
  #4  
Old April 3rd, 2003, 10:43 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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.

Reply With Quote
  #5  
Old April 10th, 2003, 03:55 AM
Burki Burki is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 Burki User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #6  
Old April 11th, 2003, 12:23 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
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.

Reply With Quote
  #7  
Old April 15th, 2003, 08:29 AM
Stifmeister Stifmeister is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 2 Stifmeister User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by M.Hirsch
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]


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.

Reply With Quote
  #8  
Old April 15th, 2003, 11:47 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
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...

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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Disable windows shortcuts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway