Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 6th, 2006, 06:45 AM
Authorized User
 
Join Date: Aug 2005
Location: vellore, t.n, India.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to harsh_hot
Default DISABLING CTRL-ALT-DELETE

HI FOLKS..I WANT TO DISABLE CTRL-ALT-DELETE(IN WINDOWS XP) USING A SCRIPT ...HW CAN I DO IT?
IF U HAVE ANY IDEA TO MY QUESTION..PLS ANS ME

Reply With Quote
  #2 (permalink)  
Old February 6th, 2006, 06:51 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

No chance, you would need to implement your own version of MSGINA to do this and certainly not from a scripting level.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old February 6th, 2006, 07:18 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

if you can detect the eventKey Alt, can you not detect the eventKey Ctrl?

www.crmpicco.co.uk
Reply With Quote
  #4 (permalink)  
Old February 6th, 2006, 07:22 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Yes, but the combination of those three keys is handled at a very low level. I think you'd have to install a Windows hook to cancel it.

I've seen some code that works on Windows 9x but not on NT. It's so dangerous because if a password protected screen saver or the like came up you'd never be able to log back in...

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #5 (permalink)  
Old February 6th, 2006, 08:50 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

yeah, i totally agree with you Joe. its certainaly something thats not recommended!

www.crmpicco.co.uk
Reply With Quote
  #6 (permalink)  
Old February 6th, 2006, 08:51 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

just out of interest, what is a Windows Hook?

www.crmpicco.co.uk
Reply With Quote
  #7 (permalink)  
Old February 7th, 2006, 08:52 AM
Friend of Wrox
 
Join Date: May 2004
Location: , , .
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Picco,

Its a function for trapping or monitoring whats going on inside an OS (usually at interrupt level). They can be local (for one or more App), or global, for the whole OS. They're used alot these days by hackers writing keylogging apps.

Cheers
Joe

Reply With Quote
  #8 (permalink)  
Old February 7th, 2006, 11:31 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thanks Joe

www.crmpicco.co.uk
Reply With Quote
  #9 (permalink)  
Old February 7th, 2006, 12:23 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

thinking seriously about trying to completely disable Ctrl+Alt+Del - it not something that is not going to be either easy to do or something that can't be done with scripting

www.crmpicco.co.uk
Reply With Quote
  #10 (permalink)  
Old February 10th, 2006, 03:30 AM
Authorized User
 
Join Date: Aug 2005
Location: vellore, t.n, India.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to harsh_hot
Default

hey folks..i have done it using Jscript ....can u pls tell me hw to disable alt key functions using registry..

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling Alt+Ctrl+Del Keys through Asp.Net 2005 p330418 ASP.NET 2.0 Basics 5 February 13th, 2008 01:18 PM
Disabling the "delete message" acheo Excel VBA 1 October 19th, 2006 08:42 PM
DISABLING CTRL-ALT-DELETE harsh_hot Other Programming Languages 0 February 6th, 2006 06:42 AM
How to block Alt+Ctrl+Del sagarkoirala VB How-To 0 August 8th, 2003 12:00 PM
API to disable CTRL ALT DELETE key stroke Dhodie Pro VB 6 2 July 9th, 2003 04:53 AM



All times are GMT -4. The time now is 07:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.