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.