9,506
社区成员
发帖
与我相关
我的任务
分享
/***********************************************************************
* WinLockDLL - Library containing functions to Lock Desktop, Taskbar, *
* and disable Ctrl+Alt+Del and task switching keys. *
* *
* (c) A. Miguel Feij鉶, 1/12/2004 *
***********************************************************************/
/*****************************************************************
* Enable/Disable Ctrl+Alt+Del and Ctrl+Shift+Esc key sequences. *
* TRUE=Enable, FALSE=Disable *
* (Win 2K). *
*****************************************************************/
int DLL_EXP_IMP WINAPI CtrlAltDel_Enable_Disable(BOOL bEnableDisable)
{
static BOOL bInjected = FALSE;
if (!bEnableDisable)
{
if (!bInjected)
{
bInjected = Inject();
return bInjected;
}
}
else
{
if (bInjected)
{
bInjected = !Eject();
return !bInjected;
}
}
return 0;
}