EnumResourceTypes

  BOOL EnumResourceTypes(hModule, lpEnumFunc, lParam)    
  HANDLE hModule; /* module containing resources */
  ENUMRESTYPEPROC lpEnumFunc; /* address of callback function */
  LONG lParam; /* application-defined parameter */

The EnumResourceTypes function searches a module for resources and passes each resource type it finds to a user-defined callback function.

Parameters

hModule

Identifies the module whose executable file contains resources to be enumerated. If this parameter is NULL, the function enumerates the resources in the image file that was used to create the current process.

lpEnumFunc

Points to the callback function that will be called for each enumerated resource name. For more information, see the description of the EnumResTypeProc function.

lParam

Specifies an application-defined value that is passed to the callback function.

Return Value

The return value is TRUE if all resource names were enumerated. Otherwise, the return value is FALSE. Use the GetLastError function to obtain extended error information.

Comments

The EnumResourceTypes function continues to enumerate resource types until the callback function returns FALSE or until all resource types have been enumerated.

The EnumResourceTypes 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).

See Also

EnumResTypeProc EnumResourceLanguages, EnumResourceNames