diff --git a/include/winnls.h b/include/winnls.h index 63b4a537a36..98af8ecc3bc 100644 --- a/include/winnls.h +++ b/include/winnls.h @@ -456,6 +456,17 @@ WCHAR towlower(WCHAR); #define C3_ALPHA 0x8000 #define C3_NOTAPPLICABLE 0x0000 +typedef DWORD CALTYPE; +typedef DWORD CALID; + +typedef BOOL (CALLBACK* CALINFO_ENUMPROCA)(LPSTR); +typedef BOOL (CALLBACK* CALINFO_ENUMPROCW)(LPWSTR); +DECL_WINELIB_TYPE_AW(CALINFO_ENUMPROC); + +BOOL WINAPI EnumCalendarInfoA(CALINFO_ENUMPROCA lpCalInfoEnumProc,LCID Locale,CALID Calendar,CALTYPE CalType); +BOOL WINAPI EnumCalendarInfoW(CALINFO_ENUMPROCW lpCalInfoEnumProc,LCID Locale,CALID Calendar,CALTYPE CalType); +#define EnumCalendarInfo WINELIB_NAME_AW(EnumCalendarInfo) + /* FIXME: This does not belong to an interface file */ UINT16 WINAPI CompareString16(DWORD,DWORD,LPCSTR,DWORD,LPCSTR,DWORD); INT16 WINAPI GetLocaleInfo16(LCID,LCTYPE,LPSTR,INT16); diff --git a/ole/ole2nls.c b/ole/ole2nls.c index 611551d2d2a..19c805041ce 100644 --- a/ole/ole2nls.c +++ b/ole/ole2nls.c @@ -3198,3 +3198,13 @@ GetTimeFormatW(LCID locale, /* in */ timestr, timelen); return ret; } + +/****************************************************************************** + * EnumCalendarInfoA [KERNEL32.196] + */ +BOOL WINAPI EnumCalendarInfoA( + CALINFO_ENUMPROCA calinfoproc,LCID locale,CALID calendar,CALTYPE caltype +) { + FIXME(ole,"(%p,0x%04lx,0x%08lx,0x%08lx),stub!\n",calinfoproc,locale,calendar,caltype); + return FALSE; +} diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index 4ed44fbd674..0dd85ab1090 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -211,7 +211,7 @@ init MAIN_KernelInit 193 stub EndUpdateResourceA 194 stub EndUpdateResourceW 195 stdcall EnterCriticalSection(ptr) EnterCriticalSection -196 stub EnumCalendarInfoA +196 stdcall EnumCalendarInfoA(ptr long long long) EnumCalendarInfoA 197 stub EnumCalendarInfoW 198 stdcall EnumDateFormatsA(ptr long long) EnumDateFormatsA 199 stdcall EnumDateFormatsW(ptr long long) EnumDateFormatsW