# Function Reference

# _WinAPI_RegLoadMUIString

Loads the specified string from the specified key and subkey

#include <WinAPIReg.au3>
_WinAPI_RegLoadMUIString ( $hKey, $sValueName [, $sDirectory = ''] )

## Parameters

$hKey | Handle to an open registry key. The key must have been opened with the $KEY_QUERY_VALUE access right. This handle is returned by the _WinAPI_RegCreateKey() or _WinAPI_RegOpenKey() function. It can also be one of the following predefined keys: $HKEY_CLASSES_ROOT $HKEY_CURRENT_CONFIG $HKEY_CURRENT_USER $HKEY_LOCAL_MACHINE $HKEY_USERS
$sValueName | The name of the registry value.
$sDirectory | [optional] The directory path.

## Return Value

Success: | The loaded string.
Failure: | Sets the @error flag to non-zero, @extended flag may contain the system error code.

## Remarks

The strings of the following form receive special handling:
@[path]\dllname,-strID
The string with identifier strID is loaded from dllname; the path is optional.
If the $sDirectory parameter is empty string, the directory is prepended to the path specified in the registry data.
Note that dllname can contain environment variables to be expanded.
This function requires Windows Vista or later.

## Related

_WinAPI_RegCreateKey, _WinAPI_RegOpenKey

## See Also

Search RegLoadMUIString in MSDN Library.