The EnumResourceTypes function searches a module for resources and passes each resource type it finds to an application-defined callback function.
BOOL EnumResourceTypes(
HMODULE hModule, // resource-module handle
ENUMRESTYPEPROC lpEnumFunc, // pointer to callback function
LONG lParam // application-defined parameter
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The EnumResourceTypes function continues to enumerate resource types until the callback function returns FALSE or all resource types have been enumerated.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows and Windows NT.
Resources Overview, Resource Functions, EnumResourceLanguages, EnumResourceNames, EnumResTypeProc