UpdateCalendarDayOfWeek

Gets the day of week that corresponds with a specified day and populates the DayOfWeek field in the given CALDATETIME structure with that value.

BOOL UpdateCalendarDayOfWeek(LPCALDATETIME  lpCalDateTime);

Parameters

  • lpCalDateTime
    [in,out] The CALDATETIME date for which to set the day of week.

Return Values

Returns TRUE if successful. FALSE, otherwise.

Remarks

To get extended error information, call GetLastError, which can return the following error code:

  • ERROR_INVALID_PARAMETER
  • ERROR_DATE_OUT_OF_RANGE

This function does not have an associated header or library file. Call LoadLibrary with the DLL name (Kernel32.dll) to obtain a module handle. Then call GetProcAddress with that module handle and this function name to get the address of this function.

This function is deprecated and will be unavailable in subsequent versions.

Requirements

**  Windows NT/2000/XP/Vista:** Windows Vista only.
**  Windows 95/98/Me:** Unsupported.
**  Implementation:** Implemented by Kernel32.dll.

See Also

National Language Support Functions