Now that's something I have been fighting with for a looong time...

You have to create a global hook (refer to http://delphi.about.com concerning 
hooks), on WinXP it has to be a LowLevel hook, and there just drop the keys 
you don't want Windows to process. It' quite easy when you get the idea. :)

BUT

if you want to do this also for CTRL-ALT-DEL on WinXP, you'll have to either 
write your own replacement for msGINA.dll (refer to Windows SDK on this and 
winlogon.exe), or find a ready-to-use solution on the net - a commercial one 
most probably, I haven't heard of a free one...

Cheers
Mike

Dnia wtorek, 19 kwietnia 2005 16:21, Philbert napisał:
>  Thanks guys,
>
>  Çetin's solution seemed to work but I would like to be able to block
>  these function keys from being processed by Windows as long as my
>  application is running.
>
>  Phil
>
>  --- In [email protected], "Philbert" <[EMAIL PROTECTED]> wrote:
>  > I would like to capture the WIndows keys such as ALT+TAB, Windows
>
>  key,
>
>  > and other special Window key and key combinations from my
>
>  application.
>
>  > Any assistance on how to go about it will be appreciated. I'm
>
>  using
>
>  > Delphi 6 Enterprise.
>  >
>  > PHilbert.
>
>  -----------------------------------------------------
>  Home page: http://groups.yahoo.com/group/delphi-en/
>  To unsubscribe: [EMAIL PROTECTED]
>
>
>
>  Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/delphi-en/
>  
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>  
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to