BOOL CALLBACK EnumResTypeProc(hModule, lpszType, lParam) | |||||
HANDLE hModule; | /* module containing resources | */ | |||
LPTSTR lpszType; | /* resource type | */ | |||
LONG lParam; | /* application-defined parameter | */ |
The EnumResTypeProc function is an application-defined callback function that receives resource types as a result of a call to the EnumResourceTypes function.
hModule
Identifies the module whose executable file contains the resource types being enumerated. If this parameter is NULL, the function is enumerating the resources in the image file that was used to create the current process.
lpszType
Points to a null-terminated string that represents the type name of the resource being enumerated. For predefined resource types, this parameter will be one of the following values:
Value | Meaning |
RT_ACCELERATOR | Accelerator table |
RT_BITMAP | Bitmap resource |
RT_DIALOG | Dialog box |
RT_FONT | Font resource |
RT_FONTDIR | Font directory resource |
RT_MENU | Menu resource |
RT_RCDATA | User-defined resource (raw data) |
RT_STRING | String-table entry |
RT_MESSAGETABLE | Message-table entry |
RT_CURSOR | Hardware-dependent cursor resource |
RT_GROUP_CURSOR | Hardware-independent cursor resource |
RT_ICON | Hardware-dependent icon resource |
RT_GROUP_ICON | Hardware-independent icon resource |
RT_VERSION | Version resource |
lParam
Specifies the application-defined parameter passed to the EnumResourceTypes function.
The callback function returns TRUE to continue enumeration; to stop enumeration, it returns FALSE.
EnumResTypeProc is a placeholder for the application-defined function name.
The EnumResTypeProc function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).
EnumResourceTypes