网站首页  词典首页

请输入您要查询的函数:

 

术语 foregroundidleproc
释义 ForegroundIdleProc
语法:
DWORD CALLBACK ForegroundIdleProc( int code,
DWORD wParam,
LONG lParam
);
ForegroundIdleProc功能
该ForegroundIdleProc挂钩过程是一个应用程序定义或库定义的回调函数中调用SetWindowsHookEx函数使用。该系统调用该函数只要前台线程即将成为闲置。
在HOOKPROC类型定义一个指向这个回调函数。 ForegroundIdleProc是一个应用程序的占位符定义或库定义的函数的名称。
参数
代码
[in]指定是否挂钩过程必须处理的消息。如果代码是HC_ACTION,挂钩过程必须处理的消息。如果代码小于零,钩子程序必须通过信息,CallNextHookEx函数没有进一步的处理,并应归还CallNextHookEx返回的值。
wParam
此参数没有使用。
lparam的
此参数没有使用。
返回值
如果代码小于零,钩子程序必须归还CallNextHookEx返回的值。
如果代码是大于或等于零,强烈建议您调用CallNextHookEx并返回返回值,否则,已经安装WH_FOREGROUNDIDLE其他应用程序挂钩钩将不会收到通知,并可能表现为一个结果不正确。如果挂钩过程不会调用CallNextHookEx,返回值应为零。
备注
安装的应用程序通过指定WH_FOREGROUNDIDLE挂钩类型和在调用指针挂钩过程的SetWindowsHookEx函数此挂钩过程。
功能信息
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryNone
最低经营systemsWindows新台币3.1
参见
钩概述,CallNextHookEx,调用SetWindowsHookEx
==英文原文==ForegroundIdleProc Function
The ForegroundIdleProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function whenever the foreground thread is about to become idle.
The HOOKPROC type defines a pointer to this callback function. ForegroundIdleProc is a placeholder for the application-defined or library-defined function name.
Syntax
DWORD CALLBACK ForegroundIdleProc( int code,
DWORD wParam,
LONG lParam
);
Parameters
code
[in] Specifies whether the hook procedure must process the message. If code is HC_ACTION, the hook procedure must process the message. If code is less than zero, the hook procedure must pass the message to the CallNextHookEx function without further processing and should return the value returned by CallNextHookEx.
wParam
This parameter is not used.
lParam
This parameter is not used.
Return Value
If code is less than zero, the hook procedure must return the value returned by CallNextHookEx.
If code is greater than or equal to zero, it is highly recommended that you call CallNextHookEx and return the value it returns; otherwise, other applications that have installed WH_FOREGROUNDIDLE hooks will not receive hook notifications and may behave incorrectly as a result. If the hook procedure does not call CallNextHookEx, the return value should be zero.
Remarks
An application installs this hook procedure by specifying the WH_FOREGROUNDIDLE hook type and the pointer to the hook procedure in a call to the SetWindowsHookEx function.
Function Information
HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systemsWindows NT 3.1
See Also
Hooks Overview , CallNextHookEx , SetWindowsHookEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms644980(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:31:41