Changeset 4174 for trunk/src/kernel32/stubs.cpp
- Timestamp:
- Sep 3, 2000, 8:05:40 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/stubs.cpp
r3799 r4174 1 /* $Id: stubs.cpp,v 1.23 2000-07-04 08:41:13 sandervl Exp $ */2 1 3 2 /* … … 484 483 } 485 484 486 487 488 /*****************************************************************************489 * Name : LCID WIN32API ConvertDefaultLocale490 * Purpose : The ConvertDefaultLocale function converts a special default491 * locale value to an actual locale identifier.492 * Parameters: LCID Locale special default locale value to be converted493 * Value Description494 * LOCALE_SYSTEM_DEFAULT The system's default locale.495 * LOCALE_USER_DEFAULT The current user's default locale.496 * zero The language-neutral default locale.497 * This is equivalent to the locale identifier498 * created by calling the MAKELCID macro499 * with a language identifier consisting500 * of the LANG_NEUTRAL and SUBLANG_NEUTRAL501 * values.502 * Any sublanguage neutral default locale503 * A locale identifier constructed by504 * calling MAKELCID with a language505 * identifier consisting of a primary506 * language value, such as LANG_ENGLISH,507 * and the SUBLANG_NEUTRAL value.508 *509 * Variables :510 * Result : If the function succeeds, the return value is the appropriate511 * actual locale identifier.512 * If the function fails, the return value is the Locale parameter.513 * The function fails when Locale is not one of the special514 * default locale values listed above.515 * Remark : A call to ConvertDefaultLocale(LOCALE_SYSTEM_DEFAULT)516 * is equivalent to a call to GetSystemDefaultLCID.517 * A call to ConvertDefaultLocale(LOCALE_USER_DEFAULT)518 * is equivalent to a call to GetUserDefaultLCID.519 * Status : UNTESTED STUB520 *521 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]522 *****************************************************************************/523 524 LCID WIN32API ConvertDefaultLocale(LCID Locale)525 {526 527 dprintf(("KERNEL32: ConvertDefaultLocale(%08x) partly implmented - returns input\n",528 Locale529 ));530 531 return (Locale);532 }533 485 534 486 /***************************************************************************** … … 1014 966 } 1015 967 1016 /*****************************************************************************1017 * Name : BOOL WIN32API EnumCalendarInfoA1018 * Purpose : The EnumCalendarInfoA function enumerates calendar information1019 * for a specified locale. The CalType parameter specifies the type1020 * of calendar information to enumerate. The function returns the1021 * specified calendar information for all applicable calendars for1022 * the locale, or for a single requested calendar, depending on the1023 * value of the Calendar parameter.1024 * The EnumCalendarInfo function enumerates the calendar information1025 * by calling an application-defined callback function. It passes1026 * the callback function a pointer to a string buffer containing1027 * the requested calendar information. This continues until either1028 * the last applicable calendar is found or the callback function1029 * returns FALSE.1030 * Parameters: CALINFO_ENUMPROCA lpCalInfoEnumProc pointer to enumeration1031 * callback function1032 * LCID Locale locale whose calendar information is of interest1033 * CALID Calendar calendar whose information is of interest1034 * CALTYPE CalType type of calendar information of interest1035 * Variables :1036 * Result : If the function succeeds, the return value is nonzero.1037 * If the function fails, the return value is zero1038 * Remark :1039 * Status : UNTESTED STUB1040 *1041 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]1042 *****************************************************************************/1043 1044 BOOL WIN32API EnumCalendarInfoA(CALINFO_ENUMPROCA lpCalInfoEnumProc,1045 LCID Locale,1046 CALID Calendar,1047 CALTYPE CalType)1048 {1049 1050 dprintf(("KERNEL32: EnumCalendarInfoA(%08x,%08x,%08x,%08x)not implemented\n",1051 lpCalInfoEnumProc,1052 Locale,1053 Calendar,1054 CalType1055 ));1056 1057 return (FALSE);1058 }1059 1060 /*****************************************************************************1061 * Name : BOOL WIN32API EnumCalendarInfoW1062 * Purpose : The EnumCalendarInfoW function enumerates calendar information1063 * for a specified locale. The CalType parameter specifies the type1064 * of calendar information to enumerate. The function returns the1065 * specified calendar information for all applicable calendars for1066 * the locale, or for a single requested calendar, depending on the1067 * value of the Calendar parameter.1068 * The EnumCalendarInfo function enumerates the calendar information1069 * by calling an application-defined callback function. It passes1070 * the callback function a pointer to a string buffer containing1071 * the requested calendar information. This continues until either1072 * the last applicable calendar is found or the callback function1073 * returns FALSE.1074 * Parameters: CALINFO_ENUMPROCW lpCalInfoEnumProc pointer to enumeration1075 * callback function1076 * LCID Locale locale whose calendar information is of interest1077 * CALID Calendar calendar whose information is of interest1078 * CALTYPE CalType type of calendar information of interest1079 * Variables :1080 * Result : If the function succeeds, the return value is nonzero.1081 * If the function fails, the return value is zero1082 * Remark :1083 * Status : UNTESTED STUB1084 *1085 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]1086 *****************************************************************************/1087 1088 BOOL WIN32API EnumCalendarInfoW(CALINFO_ENUMPROCW lpCalInfoEnumProc,1089 LCID Locale,1090 CALID Calendar,1091 CALTYPE CalType)1092 {1093 1094 dprintf(("KERNEL32: EnumCalendarInfoW(%08x,%08x,%08x,%08x)not implemented\n",1095 lpCalInfoEnumProc,1096 Locale,1097 Calendar,1098 CalType1099 ));1100 1101 return (FALSE);1102 }1103 968 1104 969 /***************************************************************************** … … 1380 1245 )); 1381 1246 1382 }1383 1384 1385 /*****************************************************************************1386 * Name : int GetCurrencyFormatA1387 * Purpose : The GetCurrencyFormatA function formats a number string as a1388 * currency string for a specified locale.1389 * Parameters: LCID Locale locale for which currency string is to be formatted1390 * DWORD dwFlags bit flag that controls the function's operation1391 * LPCTSTR lpValue pointer to input number string1392 * CONST CURRENCYFMT *lpFormat pointer to a formatting information structure1393 * LPTSTR lpCurrencyStr pointer to output buffer1394 * int cchCurrency size of output buffer1395 * Variables :1396 * Result : number of bytes written to buffer1397 * Remark :1398 * Status : UNTESTED STUB1399 *1400 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1401 *****************************************************************************/1402 1403 int WIN32API GetCurrencyFormatA(LCID Locale,1404 DWORD dwFlags,1405 LPCTSTR lpValue,1406 CONST CURRENCYFMTA *lpFormat,1407 LPTSTR lpCurrencyStr,1408 int cchCurrency)1409 {1410 dprintf(("KERNEL32: GetCurrencyFormatA(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",1411 Locale,1412 dwFlags,1413 lpValue,1414 lpFormat,1415 lpCurrencyStr,1416 cchCurrency));1417 1418 if(lpValue && lpCurrencyStr) {1419 lstrcpyA(lpCurrencyStr, lpValue);1420 return lstrlenA(lpCurrencyStr);1421 }1422 return (0);1423 }1424 1425 1426 /*****************************************************************************1427 * Name : int GetCurrencyFormatW1428 * Purpose : The GetCurrencyFormatW function formats a number string as a1429 * currency string for a specified locale.1430 * Parameters: LCID Locale locale for which currency string is to be formatted1431 * DWORD dwFlags bit flag that controls the function's operation1432 * LPCWSTR lpValue pointer to input number string1433 * CONST CURRENCYFMT *lpFormat pointer to a formatting information structure1434 * LPWSTR lpCurrencyStr pointer to output buffer1435 * int cchCurrency size of output buffer1436 * Variables :1437 * Result : number of bytes written to buffer1438 * Remark :1439 * Status : UNTESTED STUB1440 *1441 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1442 *****************************************************************************/1443 1444 int WIN32API GetCurrencyFormatW(LCID Locale,1445 DWORD dwFlags,1446 LPCWSTR lpValue,1447 CONST CURRENCYFMTW *lpFormat,1448 LPWSTR lpCurrencyStr,1449 int cchCurrency)1450 {1451 dprintf(("KERNEL32: GetCurrencyFormatW(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",1452 Locale,1453 dwFlags,1454 lpValue,1455 lpFormat,1456 lpCurrencyStr,1457 cchCurrency));1458 1459 if(lpValue && lpCurrencyStr) {1460 lstrcpyW(lpCurrencyStr, lpValue);1461 return lstrlenW(lpCurrencyStr);1462 }1463 1464 return (0);1465 1247 } 1466 1248
Note:
See TracChangeset
for help on using the changeset viewer.