×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

C++ enable and disable ALT+TAB and CTRL+ESC ?

Hi All,

Windows 95 and Windows 98 Applications can enable and
disable ALT+TAB and CTRL+ESC; for example, by calling
SystemParametersInfo (SPI_SETSCREENSAVERRUNNING). To
disable ALT_TAB and CTRL+ESC set the uiParam parameter to
TRUE or FALSE to enable the keys.

The issue is the function also disable other hotkeys
defined in my application, for example ctrl+d etc.

My question is how could I make user defined key enalbled
and same time disable ALT+TAB and CTRL+ESC .

Thanks


Disables task switching SystemParametersInfo
(SPI_SETSCREENSAVERRUNNING, TRUE, &nPreviousState, 0);
Enables task switching SystemParametersInfo
(SPI_SETSCREENSAVERRUNNING, FALSE, &nPreviousState, 0);
.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / C++ enable and disable ALT+TAB and CTRL+ESC ?
    Hi All,

    Windows 95 and Windows 98 Applications can enable and
    disable ALT+TAB and CTRL+ESC; for example, by calling
    SystemParametersInfo (SPI_SETSCREENSAVERRUNNING). To
    disable ALT_TAB and CTRL+ESC set the uiParam parameter to
    TRUE or FALSE to enable the keys.

    The issue is the function also disable other hotkeys
    defined in my application, for example ctrl+d etc.

    My question is how could I make user defined key enalbled
    and same time disable ALT+TAB and CTRL+ESC .

    Thanks


    Disables task switching SystemParametersInfo
    (SPI_SETSCREENSAVERRUNNING, TRUE, &nPreviousState, 0);
    Enables task switching SystemParametersInfo
    (SPI_SETSCREENSAVERRUNNING, FALSE, &nPreviousState, 0);
    .
    • This article describes how to disable task switching and other system functions accessed through key combinations such as CTRL+ESC and CTRL+ATL+DEL on Win32 Platforms.
      • Thansk for the quick reply. I know how to enable and disable on 98, but it will disable all the combination keys, I would like my user defined key should be activated, such as ctrl+d etc. how to hanlde this.
        • Write your own "dll" and sell it to M$ ... $$$ .... :))
          • Is there another way that I can use to work around
            • The answer is available for WinNT and Win2000. But For Win95/98, I doubt. Otherwise who would use that stupid ScreenSaverRunning parameter? But keep looking, you never know... :))
              • It is really pain to get this kind of issue