I have a program that should prevent the user from opening taskmanager and from openinig Start Menu. I have already added code to disable taskmanager and need now to prevent use
IntPtr trayHandle = FindWindow("Shell_TrayWnd", null); IntPtr buttonHandle = FindWindowEx(trayHandle, IntPtr.Zero, "Button", IntPtr.Zero); bool result = EnableWindow(buttonHandle, false);
Those three functions are WinAPI: FindWindow, FindWindowEx and EnableWindow.