????? ????? ?????? ??????? ??? ??????? ???????? Win32

?????? ????????? ?????? ?????????
???? ???????: 226359 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ????? ????? ?????? ?????? ???? ?????? ?????? ????? ?? ???? ??????? ???????? ??? CTRL + ESC ?? ALT + TAB ??? ??????? ???????? Win32.

Windows 95 ? Windows 98

??????? ???? ????? ?????? ALT + TAB ? CTRL + ESC? ??? ???? ??????? ?????? ??????? SystemParametersInfo (SPI_SETSCREENSAVERRUNNING). ?????? ALT + TAB ? CTRL + ESC ????? ????? uiParam ??? TRUE; ?????? ??????? ???????? ?? ?????? ??????? ??? FALSE:
UINT nPreviousState;

// Disables task switching
SystemParametersInfo (SPI_SETSCREENSAVERRUNNING, TRUE, &nPreviousState, 0);

// Enables task switching
SystemParametersInfo (SPI_SETSCREENSAVERRUNNING, FALSE, &nPreviousState, 0);
				
??? ????? ??????? ?????? ?????? SystemParametersInfo (SPI_SETSCREENSAVERRUNNING) ?????? ????? ?????? ??????? ??? ????? ???? ?? ???? ??????? ???? ?????? ??? ????? ???????.

Windows NT 4.0 Service Pack 3 ? ??? ? Windows 2000

???? ????? ????????? ALT + TAB ?? CTRL + ESC ?? ???? ????? ???? ??? ???? ?????? ??? ??????? ???????. ??? ????? ??? ???? ?????? ??? ??????? ??????? (WH_KEYBOARD_LL) ?? ???? ??????? SetWindowsHookEx. ?????? ??? ???? ?? ????????? ??? ???? hooks ???? ???? ???? ??? "Hooks" ?? ????? Platform SDK.

?????? ?? ????? ???? ??????? ?? ??????? ???? ?????? ??? ??????? ??????? ???? "????? CTRL + ESC ALT + TAB ? ALT + ESC:
LRESULT CALLBACK LowLevelKeyboardProc (INT nCode, WPARAM wParam, LPARAM lParam)
{
    // By returning a non-zero value from the hook procedure, the
    // message does not get passed to the target window
    KBDLLHOOKSTRUCT *pkbhs = (KBDLLHOOKSTRUCT *) lParam;
    BOOL bControlKeyDown = 0;

    switch (nCode)
    {
        case HC_ACTION:
        {
            // Check to see if the CTRL key is pressed
            bControlKeyDown = GetAsyncKeyState (VK_CONTROL) >> ((sizeof(SHORT) * 8) - 1);
            
            // Disable CTRL+ESC
            if (pkbhs->vkCode == VK_ESCAPE && bControlKeyDown)
                return 1;

            // Disable ALT+TAB
            if (pkbhs->vkCode == VK_TAB && pkbhs->flags & LLKHF_ALTDOWN)
                return 1;

            // Disable ALT+ESC
            if (pkbhs->vkCode == VK_ESCAPE && pkbhs->flags & LLKHF_ALTDOWN)
                return 1;

            break;
        }

        default:
            break;
    }
    return CallNextHookEx (hHook, nCode, wParam, lParam);
}
				

Windows NT 4.0 Service Pack 2 ? ??? ? Windows NT 3.51 ?? ???

???? ????? ????????? CTRL + ESC ????? ?????? ?? ???? ??????? ????? ???? Windows NT ???? ?? ????? ????.

???? ????? ????????? ALT + TAB ? ALT + ESC ????? ???? ??????? ??? ??????? ??? ????? ?????? ??????? ?????? "ALT + TAB ???????? ALT + ESC ?? ???? ??????? RegisterHotKey.

??????? ????

????? ??????? ??????, ??? Microsoft Visual C++ ??????? 5.0 ?????????? ???????? ?? ?? ????? ??? ??????? ??? ???????? ?????? ????? ?????? hooks ???? ???????? ??? ??????? ???????. ?????? ??? ???? ??????? ??? ?? ?????? ???? Platform SDK ?? ???? Microsoft ?????? ??? ?????:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
??? hooks ???? ???????? ??? ??????? ??????? ???? ????? ?? ???? ?????? Service Pack 3 ?????? ?? Windows NT 4.0 ?????????? ??????, ????? _WIN32_WINNT > = 0x0400 ??? ??? ??? ?? ??? winuser.h (?? windows.h).

???????

???? ???????: 226359 - ????? ??? ??????: 30/????/1427 - ??????: 4.3
????? ???
  • Microsoft Win32 ????? ????? ???????, ????? ?????? ??:
    • the operating system: Microsoft Windows XP
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows NT 4.0
    • Microsoft Windows NT 3.51 Service Pack 5
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 95
????? ??????: 
kbmt kbhook kbhowto kbinput KB226359 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????226359

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com