Blocking the timer system access.

C

cezarantoniosouza

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
 
A

ackesa

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top