[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int CtrlAltDel_Enable_Disable(bool bEnableDisable);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int AltTab1_Enable_Disable(bool bEnableDisable);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int StartButton_Show_Hide(bool bShowHide);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int Taskbar_Show_Hide(bool bShowHide);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int Clock_Show_Hide(bool bShowHide);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int TaskSwitching_Enable_Disable(bool bEnableDisable);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int TaskManager_Enable_Disable(bool bEnableDisable);
[DllImport("WinLockDll.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int Keys_Enable_Disable(bool bEnableDisable);
[DllImport("user32.dll")]
public static extern void BlockInput(bool Block);
private void Lock()
{
CtrlAltDel_Enable_Disable(false);
AltTab1_Enable_Disable(false);
StartButton_Show_Hide(false);
Taskbar_Show_Hide(false);
Clock_Show_Hide(false);
TaskSwitching_Enable_Disable(false);
TaskManager_Enable_Disable(false);
Keys_Enable_Disable(false);
BlockInput(true);
}