Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / May 2004

Tip: Looking for answers? Try searching our database.

disable print screen key

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vicente Nicolau - 30 Apr 2004 08:09 GMT
Hello, can I use the UIPermissions to disable the print screen key?
Robert Gruen [MSFT] - 04 May 2004 19:11 GMT
No you cannot.  What you'll have to do is you'll have to create a Low Level
Keyboard hood and handle that key being pressed.  Unfortunately LL hooks
are not supported in .NET so you wont' be able to handle the keypress event
for the entire keyboard however you can use a normal key hook for your
thread and then handle the key press in your application.

Thanks!  Robert Gruen
Microsoft, VB.NET

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
#From: "Vicente Nicolau" <vnicolau@cadicsa.com>
#Subject: disable print screen key
#Date: Fri, 30 Apr 2004 09:09:57 +0200
#Lines: 3
#X-Priority: 3
#X-MSMail-Priority: Normal
#X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
#X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
#Message-ID: <OB$p8WoLEHA.3696@TK2MSFTNGP09.phx.gbl>
#Newsgroups: microsoft.public.dotnet.framework.clr
#NNTP-Posting-Host: 75.red-217-127-168.pooles.rima-tde.net 217.127.168.75
#Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP09.phx.gbl
#Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10442
#X-Tomcat-NG: microsoft.public.dotnet.framework.clr
#
#Hello, can I use the UIPermissions to disable the print screen key?
#
#
#
Dennis Homann - 05 May 2004 17:01 GMT
It's hard to prevent people from disassembling your code, but maybe that's
not the real problem.

If you don't want people to understand what you're doing, obfuscation is the
way to go. If your main concern is that someone might mess with your code
and modify it, take a look at creating assemblies with a strong name (using
snk.exe).

- Dennis

> Hello, can I use the UIPermissions to disable the print screen key?
Dennis Homann - 08 May 2004 00:55 GMT
Ooops, sorry, wrong thread.

- Dennis

> It's hard to prevent people from disassembling your code, but maybe that's
> not the real problem.
[quoted text clipped - 5 lines]
>
> - Dennis

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.