Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VarMonthName function

Returns a string containing the localized month name.

Syntax


HRESULT VarMonthName(
  _In_  int   iMonth,
  _In_  int   fAbbrev,
  _In_  ULONG dwFlags,
  _Out_ BSTR  *pbstrOut
);

Parameters

iMonth [in]

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

fAbbrev [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]

Receives the formatted string that represents the variant.

Return value

This function can return one of these values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

One or more of the arguments is not valid.

 

Requirements

Header

OleAuto.h

Library

OleAut32.lib

DLL

OleAut32.dll

 

 

Show:
© 2018 Microsoft