I try use a GetLocaleInfoEx windows API and it worked well :)
int GetSystemStartDayOfWeek()
{
int ret;
DWORD StartDayOfWeek;
ret = GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT,
LOCALE_IFIRSTDAYOFWEEK | LOCALE_RETURN_NUMBER,
(LPTSTR)&StartDayOfWeek,
sizeof(StartDayOfWeek) / sizeof(TCHAR));
return StartDayOfWeek;
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments