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

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

?? ????? ??

??????

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

Windows 95 ?? Windows 98

????????? ?? ????? ?? ALT + TAB ?? ????? ???? CTRL + ESC, ?????? ?? ???, SystemParametersInfo (SPI_SETSCREENSAVERRUNNING) ?? ??? ?? ???? ???? ALT + TAB ?? CTRL + ESC ????? ????, ?? ??? uiParam ???????? ???True; ????? ?????? ?? ????? ???? ?? ??? ???????? ??????:
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 ?????? ??? 3 ?? ??? ??? ?? Windows 2000

????????? ????? ?? ???? ALT + TAB ?? CTRL + ESC ?? ?????? ?? ????? ???? ???????? ??? ??????? ?? ??? ??? ????? ???? ???????? ??? (WH_KEYBOARD_LL) SetWindowsHookEx ??? ?????? ??????? ???? ??? ??? ????? hooks ?? ???? ??????? ?? ??? ??????????? 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 ?????? ??? 2 ?? ?????, Windows NT 3.51 ?? ?????

????????? Windows NT ?? ????? ??????? ?? ????? ?? ?????? ??????-????????? CTRL + ESC ?? ????? ?? ???? ???, ????? ?? ???????? ???? ???

????????? ????? ?? ???? ALT + TAB ?? ALT + ESC ?? ????????? ?? RegisterHotKey ??? ?????? hotkeys ALT + TAB ?? ALT + ESC ?????? ???? ?? ??? ??????? ?? ??? ???

???? ???????

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

???

???? ID: 226359 - ????? ???????: 03 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Win32 Application Programming Interface, ?? ???? ??? ?????? ???? ???:
    • Microsoft Windows Millennium Edition
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 95
??????: 
kbhook kbhowto kbinput kbmt KB226359 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??: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