VarMonthName Function

Returns a string containing the localized month name.

VarMonthName(
  int iMonth,
  int   fAbbrey,
  ULONG  dwFlags,
  BSTR *pbstrOut
);

iMonth

[in] Represents the month, a number from 1 to 12.

fAbbrey

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

dwFlags

[in] VAR_CALENDAR_HIJRI is the only flag that can be set.

pbstrOut

[out] Points to the formatted string that represents the variant.

The function returns one of the following:

Return value

Meaning

S_OK

Success.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

One or more of the arguments is invalid.

Show:
© 2014 Microsoft