Function Reference


_WinAPI_SetLocaleInfo

Sets an item of information in the user override portion of the current locale

#include <WinAPILocale.au3>
_WinAPI_SetLocaleInfo ( $iLCID, $iType, $sData )

Parameters

$iLCID The locale identifier (LCID) that specifies the locale or one of the following predefined values.
$LOCALE_INVARIANT
$LOCALE_SYSTEM_DEFAULT
$LOCALE_USER_DEFAULT

Windows Vista or later
$LOCALE_CUSTOM_DEFAULT
$LOCALE_CUSTOM_UI_DEFAULT
$LOCALE_CUSTOM_UNSPECIFIED
$iType Type of locale information to set. This parameter can be one of the locale information constants ($LOCALE_*).
$sData The string containing the locale information to set. The information must be in the format specific to
the specified constant.

Return Value

Success: True
Failure: False

Remarks

$LOCALE_* constants require #include <APILocaleConstants.au3>.

See Also

Search SetLocaleInfo in MSDN Library.

Example

#include <APILocaleConstants.au3>
#include <WinAPILocale.au3>

_WinAPI_SetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SLONGDATE, 'dddd, MMMM dd, yyyy')
_WinAPI_SetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SSHORTDATE, 'dd-MMM-yy')