网站首页  词典首页

请输入您要查询的函数:

 

术语 enumrestypeproc
释义 EnumResTypeProc
语法:
BOOL CALLBACK EnumResTypeProc( HMODULE hModule,
LPTSTR lpszType,
LONG_PTR lParam
);
EnumResTypeProc功能
一个应用程序定义的回调函数与EnumResourceTypes和EnumResourceTypesEx函数中使用。它接受资源类型。在ENUMRESTYPEPROC类型定义一个指向这个回调函数。 EnumResTypeProc是一个应用程序的占位符定义函数的名称。
参数
hModule
[in]的模块句柄的可执行文件中包含的资源的类型是被枚举。如果该参数为NULL,则函数枚举用于创建当前进程模块的资源类型。
lpszType
[in]指向一个空结束的字符串指定的资源的类型正在枚举类型的名称。对于标准资源类型,请参阅资源类型。
lparam的
[in]指定的应用程序定义的传递给EnumResourceTypes或EnumResourceTypesEx函数参数。此参数可用于错误检查。
返回值
继续返回TRUE或FALSE枚举停止枚举。
备注
如果IS_INTRESOURCE(lpszType)为真,那么lpszType指定给定的资源类型的整数标识符。否则,它是对一个空结束的字符串指针。如果字符串的第一个字符是英镑符号(#),余下的字符表示一个十进制数,指定资源类型的整数标识符。例如,字符串“#258”代表标识符258。
应用程序必须通过其登记地址的EnumResourceTypes或EnumResourceTypesEx功能这个功能。
功能信息
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryNone
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
资源概况,EnumResourceTypes,EnumResourceTypesEx,IS_INTRESOURCE
==英文原文==EnumResTypeProc Function
An application-defined callback function used with the EnumResourceTypes and EnumResourceTypesEx functions. It receives resource types. The ENUMRESTYPEPROC type defines a pointer to this callback function. EnumResTypeProc is a placeholder for the application-defined function name.
Syntax
BOOL CALLBACK EnumResTypeProc( HMODULE hModule,
LPTSTR lpszType,
LONG_PTR lParam
);
Parameters
hModule
[in] The handle to the module whose executable file contains the resources for which the types are to be enumerated. If this parameter is NULL, the function enumerates the resource types in the module used to create the current process.
lpszType
[in] Pointer to a null-terminated string specifying the type name of the resource for which the type is being enumerated. For standard resource types, see Resource Types .
lParam
[in] Specifies the application-defined parameter passed to the EnumResourceTypes or EnumResourceTypesEx function. This parameter can be used in error checking.
Return Value
Returns TRUE to continue enumeration or FALSE to stop enumeration.
Remarks
If IS_INTRESOURCE (lpszType) is TRUE, then lpszType specifies the integer identifier of the given resource type. Otherwise, it is a pointer to a null-terminated string. If the first character of the string is a pound sign (#), then the remaining characters represent a decimal number that specifies the integer identifier of the resource type. For example, the string "#258" represents the identifier 258.
An application must register this function by passing its address to the EnumResourceTypes or EnumResourceTypesEx function.
Function Information
HeaderDeclared in Winbase.h, include Windows.h
Import libraryNone
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Resources Overview , EnumResourceTypes , EnumResourceTypesEx , IS_INTRESOURCE
==原始网址==http://msdn.microsoft.com/en-us/library/ms648041(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 13:19:14