VarWeekdayName Function

Returns a string containing the localized name of the weekday.

VarWeekdayName(
  int iWeekday,
  int   fAbbrey,
  int iFirstDay,
  ULONG  dwFlags,
  BSTR *pbstrOut
);
iWeekday

[in] Represents the day of the week, 0 = system default, 1 = Monday, 2= Tuesday etc.

fAbbrey

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

iFirstDay

[in] First day of the week, 0 = system default, 1 = Monday, 2 = Tuesday etc.

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. All rights reserved.