PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Blocking the timer system access.

Reply

Blocking the timer system access.

 
Thread Tools Rate Thread
Old 11-09-2006, 09:10 PM   #1
cezarantoniosouza@yahoo.com.br
Guest
 
Posts: n/a
Default Blocking the timer system access.


Hi, I'm a Brazilian. Sorry for my Language.

I need blocking the control panel access , in my application.
Or block the Key "Windows" for the keyboard.
My System go run in a Qtek ,and the user cannot modify the timer
system.

Anybody help-me?
In Vb.net or C#.


Thank's

Cézar

  Reply With Quote
Old 12-09-2006, 10:41 AM   #2
Fabien
Guest
 
Posts: n/a
Default Re: Blocking the timer system access.

Hi,

If you want to block the Key "Windows". Try to use the WndProc to trap
the key press.
Check this :
http://samples.gotdotnet.com/quicks...sagewindow.aspx


BR


Fabien Decret
Windows Embedded Consultant


ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

cezarantoniosouza@yahoo.com.br a écrit :

> Hi, I'm a Brazilian. Sorry for my Language.
>
> I need blocking the control panel access , in my application.
> Or block the Key "Windows" for the keyboard.
> My System go run in a Qtek ,and the user cannot modify the timer
> system.
>
> Anybody help-me?
> In Vb.net or C#.
>
>
> Thank's
>
> Cézar


  Reply With Quote
Old 13-09-2006, 08:24 AM   #3
ackesa
Guest
 
Posts: n/a
Default Re: Blocking the timer system access.

Hello,

With the following code you could hide/show the taskbar (and with that
also the taskmanager):
private const int SW_HIDE = 0x00;

private const int SW_SHOW = 0x0001;

[DllImport("coredll.dll", CharSet = CharSet.Auto)]

private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);

[DllImport("coredll.dll", CharSet = CharSet.Auto)]

private static extern bool ShowWindow(IntPtr hwnd, int
nCmdShow);

[DllImport("coredll.dll", CharSet = CharSet.Auto)]

private static extern bool EnableWindow(IntPtr hwnd, bool
enabled);

private static void ShowTaskbar()
{

IntPtr h = FindWindow("HHTaskBar", "");

ShowWindow(h, SW_SHOW);

EnableWindow(h, true);

}

private static void HideTaskbar()
{

IntPtr h = FindWindow("HHTaskBar", "");

ShowWindow(h, SW_HIDE);

EnableWindow(h, false);

}

Regards,
Sabine

  Reply With Quote
Reply



Thread Tools
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