Share via


IVMVirtualServer::QueryLocale method

The QueryLocale method returns the preferred Virtual Server service locale selected from the set of languages specified by an RFC-2616 compliant language string.

Syntax

HRESULT QueryLocale(
  [in]  BSTR  inLanguage,
  [out] ULONG *outLocale
);

Parameters

inLanguage [in]

RFC-2616 compliant language string.

outLocale [out]

Retrieves the value of the desired Windows Locale ID selected from the inLanguage parameter.

Return value

This method can return one of these values.

Return code Description
S_OK
The operation was successful.
E_POINTER
The outLocale parameter is NULL.
DISP_E_EXCEPTION
An unexpected error occurred.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualServer

DefaultLocale

Locale