网站首页  词典首页

请输入您要查询的函数:

 

术语 enumresnameproc
释义 EnumResNameProc
语法:
BOOL CALLBACK EnumResNameProc( HMODULE hModule,
LPCTSTR lpszType,
LPTSTR lpszName,
LONG_PTR lParam
);
EnumResNameProc功能
一个应用程序定义的回调函数与EnumResourceNames和EnumResourceNamesEx函数中使用。它接受的类型和资源的名称。在ENUMRESNAMEPROC类型定义一个指向这个回调函数。 EnumResNameProc是一个应用程序的占位符定义函数的名称。
参数
hModule
[in]的模块句柄的可执行文件中包含的资源正在枚举。如果该参数为NULL,则函数枚举用于创建当前进程模块的资源名称。
lpszType
[in]指向一个空结束的字符串指定的资源类型正在枚举。对于标准资源类型,请参阅资源类型。有关详细信息,请参见备注部分。
lpszName
[in]指定一个类型的资源的名称列举。有关详细信息,请参见备注部分。
lparam的
[in]指定的应用程序定义的传递给EnumResourceNames或EnumResourceNamesEx函数参数。此参数可用于错误检查。
返回值
继续返回TRUE或FALSE枚举停止枚举。
备注
如果IS_INTRESOURCE(lpszType)为真,那么lpszType指定给定的资源类型的整数标识符。否则,它是对一个空结束的字符串指针。如果字符串的第一个字符是英镑符号(#),余下的字符表示一个十进制数,指定资源类型的整数标识符。例如,字符串“#258”代表标识符258。
同样,如果IS_INTRESOURCE(lpszName)为真,那么lpszName指定给定的资源整数标识符。否则,它是对一个空结束的字符串指针。如果字符串的第一个字符是英镑符号(#),余下的字符表示一个十进制数,指定资源的整数标识符。
应用程序必须通过其登记地址的EnumResourceNames或EnumResourceNamesEx功能这个功能。
功能信息
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryNone
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
资源概况,EnumResourceNames,EnumResourceNamesEx,IS_INTRESOURCE
==英文原文==EnumResNameProc Function
An application-defined callback function used with the EnumResourceNames and EnumResourceNamesEx functions. It receives the type and name of a resource. The ENUMRESNAMEPROC type defines a pointer to this callback function. EnumResNameProc is a placeholder for the application-defined function name.
Syntax
BOOL CALLBACK EnumResNameProc( HMODULE hModule,
LPCTSTR lpszType,
LPTSTR lpszName,
LONG_PTR lParam
);
Parameters
hModule
[in] The handle to the module whose executable file contains the resources that are being enumerated. If this parameter is NULL, the function enumerates the resource names in the module used to create the current process.
lpszType
[in] Pointer to a null-terminated string specifying the type of resource that is being enumerated. For standard resource types, see Resource Types . For more information, see the Remarks section below.
lpszName
[in] Specifies the name of a resource of the type being enumerated. For more information, see the Remarks section below.
lParam
[in] Specifies the application-defined parameter passed to the EnumResourceNames or EnumResourceNamesEx 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.
Similarly, if IS_INTRESOURCE(lpszName) is TRUE, then lpszName specifies the integer identifier of the given resource. 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.
An application must register this function by passing its address to the EnumResourceNames or EnumResourceNamesEx 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 , EnumResourceNames , EnumResourceNamesEx , IS_INTRESOURCE
==原始网址==http://msdn.microsoft.com/en-us/library/ms648034(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:26:17