术语 | locksetforegroundwindow |
释义 | LockSetForegroundWindow 语法: BOOL LockSetForegroundWindow( UINT uLockCode ); LockSetForegroundWindow功能 前台进程可以调用LockSetForegroundWindow函数的SetForegroundWindow功能的电话。 参数 uLockCode [in]指定是否启用或SetForegroundWindow的电话。此参数可以是下列值之一。 LSFW_LOCK 禁用呼吁SetForegroundWindow。 LSFW_UNLOCK 启用的SetForegroundWindow电话。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 该系统自动启用调用SetForegroundWindow如果用户按下Alt键或采取某些行动以使这一制度本身的变化(例如前台窗口,点击窗口的背景)。 此功能提供这样可以防止应用程序作出前景变化可以中断与用户的互动其他应用程序。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低经营systemsWindows ME,视窗2000 参见 视窗概述,AllowSetForegroundWindow,SetForegroundWindow ==英文原文==LockSetForegroundWindow Function The foreground process can call the LockSetForegroundWindow function to disable calls to the SetForegroundWindow function. Syntax BOOL LockSetForegroundWindow( UINT uLockCode ); Parameters uLockCode [in] Specifies whether to enable or disable calls to SetForegroundWindow. This parameter can be one of the following values. LSFW_LOCK Disables calls to SetForegroundWindow. LSFW_UNLOCK Enables calls to SetForegroundWindow. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks The system automatically enables calls to SetForegroundWindow if the user presses the ALT key or takes some action that causes the system itself to change the foreground window (for example, clicking a background window). This function is provided so applications can prevent other applications from making a foreground change that can interrupt its interaction with the user. Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows Me, Windows 2000 See Also Windows Overview , AllowSetForegroundWindow , SetForegroundWindow ==原始网址==http://msdn.microsoft.com/en-us/library/ms633532(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。