VarMonthName function (oleauto.h)

Returns a string containing the localized month name.

Syntax

HRESULT VarMonthName(
  [in]  int   iMonth,
  [in]  int   fAbbrev,
  [in]  ULONG dwFlags,
  [out] BSTR  *pbstrOut
);

Parameters

[in] iMonth

Represents the month, as a number from 1 to 12.

[in] fAbbrev

If zero then the full (non-abbreviated) month name is used. If non-zero, then the abbreviation for the month name is used.

[in] dwFlags

VAR_CALENDAR_HIJRI is the only flag that can be set.

[out] pbstrOut

Receives the formatted string that represents the variant.

Return value

This function can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.

Requirements

Requirement Value
Target Platform Windows
Header oleauto.h
Library OleAut32.lib
DLL OleAut32.dll