This function frees an MUI satellite library.


BOOL MLFreeLibrary (HMODULE hModule);


The hModule argument is a handle to a module loaded previously with MLLoadLibrary.

Return Value

The function returns a non-zero value for success. It returns FALSE for failure, in which case an error code should be retrievable through GetLastError.


The function is simply the obvious call to FreeLibrary, preceded by a call to MLClearMLHInstance to remove SHLWAPI’s record of the given library and its language.


The MLFreeLibrary function is exported from SHLWAPI.DLL as ordinal 418 in version 5.00 and higher. It is also exported by name in the version 6.00 from Windows Vista, and higher.

Though this function dates from 1999, it wasn’t documented by Microsoft until some time duing 2004.