getLocale

Returns a string that describes the locale, as specified in Internet RFC 1766, of the data set. For example, the locale could be "en-us", which is equivalent to "English (United States)".

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Instead, write a fully functional OLE DB provider using the native OLE DB interfaces.

Syntax

HRESULT getLocale (
   BSTR    *pbstrLocale);

Parameters

  • pbstrLocale
    [out] A string specifying the locale (LCID) of the data set.

Return Codes

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

Comments

If you have Microsoft Internet Explorer 4.0 installed, your registry key "HKEY_CLASSES_ROOT\MIME\Database\Rfc1766" contains the legal values for locale.