Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2003, 12:58 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Dhodie
Default API to disable CTRL ALT DELETE key stroke

Hi!

I need to disable the CTRL ALT Delete key function in my app.
Anybody who knows the right API for this? It would be better if u can post sample codes.

Many thanks.

- Dhodie
 
Old July 9th, 2003, 03:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It can’t be done I'm afraid. The [CTRL] + [ALT] + [DEL] key combination is unique to windows, so it won't let your app interrupt the sequence.

There is an outside chance that you could hook into the windows messages and cancel the keystrokes from there, but that is not something I would want to play with.

Try looking for more information about the following API's which are to do with windows messages:

CallWindowProc,
DefWindowProc,
SetProp,
SetWindowLong,
GetProp and
RemoveProp

Regards
Owain Williams
 
Old July 9th, 2003, 04:53 AM
Authorized User
 
Join Date: Jun 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Dhodie
Default

Owain,

Thanks for the thought. I'll just look into some more windows messages API.

- Dhodie





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
How to disable ALT+ENTER keyboard shortcut q2q2 BOOK: Access 2003 VBA Programmer's Reference 0 November 8th, 2006 05:05 PM
DISABLING CTRL-ALT-DELETE harsh_hot Javascript How-To 19 March 23rd, 2006 06:41 AM
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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.