Platform SDK: International Features |
The GetCalendarInfo function retrieves information about a calendar.
int GetCalendarInfo( LCID Locale, // locale CALID Calendar, // calendar identifier CALTYPE CalType, // calendar type LPTSTR lpCalData, // information buffer int cchData, // information buffer size LPDWORD lpValue // data );
Value | Meaning |
---|---|
LOCALE_SYSTEM_DEFAULT | Default-system locale. |
LOCALE_USER_DEFAULT | Default-user locale. |
If the function succeeds and cchData is nonzero, the return value is the number of TCHARs written to the lpCalData buffer. If the function succeeds and cchData is zero and CAL_RETURN_NUMBER is not specified, the return value is the number of bytes or characters required to hold the locale information. If the function fails, the return value is zero. To get extended error information, call GetLastError. GetLastError may return one of the following error codes:
Windows 98: The only CAL_* types supported are:
Windows 2000: The ANSI version of this function will fail if it is used with a Unicode-only LCID. See Language Identifiers.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Winnls.h; include Windows.h.
Library: Use Kernel32.lib.
National Language Support Overview, National Language Support Functions, SetCalendarInfo