How to disable Start menu or prevent it to open?

B

bz

Hi,

I need an app to run in kiosk mode, so user will not have access to
start menu and taskbar while the app is running


I was able to hide / show the taskbar with the following code when
app starts / exits


[DllImport("user32.dll", EntryPoint = "FindWindowA")]
static extern int FindWindow(string lpClassName, string
lpWindowName);


[DllImport("user32.dll")]
static extern int SetWindowPos(int hwnd, int hWndInsertAfter,
int x, int y, int cx, int cy, int wFlags);


const int SWP_HIDEWINDOW = 128;
const int SWP_SHOWWINDOW = 64;


static public void HideTaskbar()
{
int intReturn = FindWindow("Shell_traywnd", "");
SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
}


static public void ShowTaskbar()
{
int intReturn = FindWindow("Shell_traywnd", "");
SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_SHOWWINDOW);
}


But users still can access the start menu with Windows button (or
Ctrl
+Esc)
Is there any way to disable start menu too?


Thank you
 
B

bz

Thanks, I'll check it out
However, is there any programatic way to trap the event of opening the
Startmenu and prevent it from happening?
Somehow like trapping the press of Windows key or Ctrl+ESC at system
level

Thanks
 
B

bz

Thanks, I'll check it out
The only issue mught be that this DLL seeems to be a COM dll and want
to deply my app with ClickOnce or any other registration free
approach, and this might be a problem if I use this DLL

If you have any suggestion for NET and eventually API only...

Thanks
 

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