FreeMUILibrary function (muiload.h)

Releases the handle to a resource module loaded by LoadMUILibrary.

Syntax

BOOL FreeMUILibrary(
  [in] HMODULE hResModule
);

Parameters

[in] hResModule

Handle to a resource module loaded by LoadMUILibrary. The handle indicates either a language-specific resource file or an LN file.

Return value

Returns TRUE if successful or FALSE otherwise. To get extended error information, the application can call GetLastError. The error code is the same as that returned by FreeLibrary.

Remarks

Once the application has called FreeMUILibrary, it should treat the passed module handle as invalid.

Applications using this function can be built on pre-Windows Vista operating systems, but they must link statically with the MUILoad library provided in the Microsoft Windows SDK for Windows Vista.

FreeMUILibrary is related to LoadMUILibrary in the same way that FreeLibrary is related to LoadLibraryEx, and similar considerations need to be applied to its usage. In particular, to support correct reference counting, FreeMUILibrary should be called for any handle returned by LoadMUILibrary. For more information see the Remarks sections of LoadLibraryEx and FreeLibrary.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header muiload.h
Library Muiload.lib
Redistributable Muiload.lib, included in theWindows SDKforWindows VistaonWindows 2000 Professional,Windows Me/98/95. Not supported onWindows NT 4.0

See also

LoadMUILibrary

Multilingual User Interface

Multilingual User Interface Functions