How can I Disabled CTRL-ALT-DEL, ALT-TAB and Start Menu using this code. The code below is disabled ALT + F4.
public class AltF4Filter : IMessageFilter
{
public bool PreFilterMessage(ref Message m)
{
const int WM_SYSKEYDOWN = 0x0104;
if (m.Msg == WM_SYSKEYDOWN)
{
bool alt = ((int)m.LParam & 0x20000000) != 0;
if (alt && (m.WParam == new IntPtr((int)Keys.F4)))
return true; //pang disabled ng alt f4
}
return false;
}
}