IMSCSMessageManager_3_0::GetLocale
Use this method to return a number that identifies the locale for the specified message set.
Definition
HRESULT IMSCSMessageManager_3_0::GetLocale(VARIANTvtLanguage,long*pLocale);
Parameters
vtLanguage
[in] A VARIANT that contains the name of the message set for which you want to retrieve the locale. This message set must have been added to the MessageManager object through a previous call to the AddLanguage method.
pLocale
[out, retval] A pointer to a long used to identify the locale for the specified message set.
Return Values
This method returns an HRESULT indicating whether or not it completed successfully. See the Error Values section for more details.
Error Values
This property returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.
Remarks
The pLocale parameter points to valid data only if the method returns successfully.
Like the GetMessage method, the GetLocale method is usually not called from within a site. Instead, it is used by the pipeline component to retrieve the locale for a message that describes an error that the component has encountered.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
See Also
IMSCSMessageManager_3_0::GetMessage