1 /* $Id: stubs.c,v 1.23 2001/01/20 12:19:57 ekohl Exp $
3 * KERNEL32.DLL stubs (unimplemented functions)
4 * Remove from this file, if you implement them.
14 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
25 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
37 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
49 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
58 DWORD nNumberOfBytesToRead
,
59 LPDWORD lpNumberOfBytesRead
,
61 WINBOOL bProcessSecurity
,
65 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
74 DWORD dwLowBytesToSeek
,
75 DWORD dwHighBytesToSeek
,
76 LPDWORD lpdwLowByteSeeked
,
77 LPDWORD lpdwHighByteSeeked
,
81 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
91 DWORD nNumberOfBytesToWrite
,
92 LPDWORD lpNumberOfBytesWritten
,
94 WINBOOL bProcessSecurity
,
98 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
105 BaseAttachCompleteThunk (VOID
)
107 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
114 BeginUpdateResourceW (
116 WINBOOL bDeleteExistingResources
119 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
126 BeginUpdateResourceA (
128 WINBOOL bDeleteExistingResources
131 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
143 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
155 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
162 BuildCommDCBAndTimeoutsA (
165 LPCOMMTIMEOUTS lpCommTimeouts
168 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
175 BuildCommDCBAndTimeoutsW (
178 LPCOMMTIMEOUTS lpCommTimeouts
181 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
189 LPCSTR lpNamedPipeName
,
193 DWORD nOutBufferSize
,
198 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
206 LPCWSTR lpNamedPipeName
,
210 DWORD nOutBufferSize
,
215 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
226 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
239 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
246 CloseProfileUserMapping ( VOID
)
248 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
259 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
272 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
285 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
301 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
317 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
331 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
338 ConvertDefaultLocale (
342 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
351 DWORD nMaxMessageSize
,
353 LPSECURITY_ATTRIBUTES lpSecurityAttributes
356 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
357 return INVALID_HANDLE_VALUE
;
365 DWORD nMaxMessageSize
,
367 LPSECURITY_ATTRIBUTES lpSecurityAttributes
370 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
371 return INVALID_HANDLE_VALUE
;
379 CreateTapePartition (
381 DWORD dwPartitionMethod
,
386 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
393 CreateVirtualBuffer (
399 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
410 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
417 DisconnectNamedPipe (
421 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
428 DuplicateConsoleHandle (
435 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
447 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
459 return EndUpdateResourceW(
469 CALINFO_ENUMPROC lpCalInfoEnumProc
,
475 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
484 CALINFO_ENUMPROC lpCalInfoEnumProc
,
490 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
498 DATEFMT_ENUMPROC lpDateFmtEnumProc
,
503 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
511 DATEFMT_ENUMPROC lpDateFmtEnumProc
,
516 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
523 EnumResourceLanguagesW (
527 ENUMRESLANGPROC lpEnumFunc
,
531 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
538 EnumResourceLanguagesA (
542 ENUMRESLANGPROC lpEnumFunc
,
546 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
556 ENUMRESNAMEPROC lpEnumFunc
,
560 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
570 ENUMRESNAMEPROC lpEnumFunc
,
574 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
583 ENUMRESTYPEPROC lpEnumFunc
,
587 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
597 ENUMRESTYPEPROC lpEnumFunc
,
601 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
608 EnumSystemCodePagesW (
609 CODEPAGE_ENUMPROC lpCodePageEnumProc
,
613 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
620 EnumSystemCodePagesA (
621 CODEPAGE_ENUMPROC lpCodePageEnumProc
,
625 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
633 LOCALE_ENUMPROC lpLocaleEnumProc
,
637 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
645 LOCALE_ENUMPROC lpLocaleEnumProc
,
649 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
657 TIMEFMT_ENUMPROC lpTimeFmtEnumProc
,
662 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
670 TIMEFMT_ENUMPROC lpTimeFmtEnumProc
,
675 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
688 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
700 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
712 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
719 ExpungeConsoleCommandHistoryW (
723 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
730 ExpungeConsoleCommandHistoryA (
734 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
741 ExtendVirtualBuffer (
746 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
757 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
768 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
775 FindCloseChangeNotification (
779 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
786 FindFirstChangeNotificationW (
788 WINBOOL bWatchSubtree
,
792 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
793 return INVALID_HANDLE_VALUE
;
799 FindFirstChangeNotificationA (
801 WINBOOL bWatchSubtree
,
805 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
806 return INVALID_HANDLE_VALUE
;
812 FindNextChangeNotification (
816 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
832 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
847 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
864 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
881 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
889 HANDLE hVirtualBuffer
892 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
901 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
915 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
928 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
936 LPCWSTR lpApplicationName
,
940 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
948 LPCSTR lpApplicationName
,
952 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
964 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
977 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
989 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1002 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1011 LPCOMMPROP lpCommProp
1014 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1026 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1035 LPCOMMTIMEOUTS lpCommTimeouts
1038 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1050 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1054 * FIXME: get the computer's name from
1057 lstrcpyW( Name
, L
"ROSHost" ); /* <-- FIXME -- */
1058 Size
= lstrlenW(Name
) + 1;
1062 SetLastError(ERROR_BUFFER_OVERFLOW
);
1065 lstrcpyW( lpBuffer
, Name
);
1077 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1080 if (FALSE
== GetComputerNameW(
1088 /* Use UNICODE to ANSI */
1089 for ( i
=0; Name
[i
]; ++i
)
1091 lpBuffer
[i
] = (CHAR
) Name
[i
];
1108 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1122 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1130 GetConsoleAliasExesW (
1135 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1143 GetConsoleAliasExesA (
1148 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1156 GetConsoleAliasExesLengthA (VOID
)
1158 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1166 GetConsoleAliasExesLengthW (VOID
)
1168 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1176 GetConsoleAliasesW (
1182 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1190 GetConsoleAliasesA (
1196 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1204 GetConsoleAliasesLengthW (
1208 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1216 GetConsoleAliasesLengthA (
1220 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1227 GetConsoleCommandHistoryW (
1233 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1240 GetConsoleCommandHistoryA (
1246 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1253 GetConsoleCommandHistoryLengthW (
1257 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1264 GetConsoleCommandHistoryLengthA (
1268 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1275 GetConsoleDisplayMode (
1279 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1286 GetConsoleFontInfo (
1293 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1300 GetConsoleFontSize (
1305 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1312 GetConsoleHardwareState (
1318 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1325 GetConsoleInputWaitHandle (VOID
)
1327 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1334 GetCurrencyFormatW (
1338 CONST CURRENCYFMT
* lpFormat
,
1339 LPWSTR lpCurrencyStr
,
1343 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1350 GetCurrencyFormatA (
1354 CONST CURRENCYFMT
* lpFormat
,
1355 LPSTR lpCurrencyStr
,
1359 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1366 GetCurrentConsoleFont (
1372 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1382 CONST SYSTEMTIME
* lpDate
,
1388 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1398 CONST SYSTEMTIME
* lpDate
,
1404 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1411 GetDefaultCommConfigW (
1417 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1424 GetDefaultCommConfigA (
1430 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1444 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1458 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1467 LPDWORD lpMaxMessageSize
,
1469 LPDWORD lpMessageCount
,
1470 LPDWORD lpReadTimeout
1473 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1480 GetNamedPipeHandleStateW (
1483 LPDWORD lpCurInstances
,
1484 LPDWORD lpMaxCollectionCount
,
1485 LPDWORD lpCollectDataTimeout
,
1487 DWORD nMaxUserNameSize
1490 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1497 GetNamedPipeHandleStateA (
1500 LPDWORD lpCurInstances
,
1501 LPDWORD lpMaxCollectionCount
,
1502 LPDWORD lpCollectDataTimeout
,
1504 DWORD nMaxUserNameSize
1507 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1517 LPDWORD lpOutBufferSize
,
1518 LPDWORD lpInBufferSize
,
1519 LPDWORD lpMaxInstances
1522 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1533 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1544 CONST NUMBERFMT
* lpFormat
,
1549 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1560 CONST NUMBERFMT
* lpFormat
,
1565 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1572 GetNumberOfConsoleFonts (VOID
)
1574 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1575 return 1; /* FIXME: call csrss.exe */
1583 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1584 return 437; /* FIXME: call csrss.exe */
1590 GetPrivateProfileIntW (
1597 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1604 GetPrivateProfileIntA (
1611 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1618 GetPrivateProfileSectionW (
1620 LPWSTR lpReturnedString
,
1625 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1632 GetPrivateProfileSectionA (
1634 LPSTR lpReturnedString
,
1639 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1646 GetPrivateProfileSectionNamesW (
1652 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1659 GetPrivateProfileSectionNamesA (
1665 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1672 GetPrivateProfileStringW (
1676 LPWSTR lpReturnedString
,
1681 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1688 GetPrivateProfileStringA (
1692 LPSTR lpReturnedString
,
1697 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1704 GetPrivateProfileStructW (
1712 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1719 GetPrivateProfileStructA (
1727 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1734 GetProcessAffinityMask (
1736 LPDWORD lpProcessAffinityMask
,
1737 LPDWORD lpSystemAffinityMask
1740 if ( (NULL
== lpProcessAffinityMask
)
1741 || (NULL
== lpSystemAffinityMask
)
1744 SetLastError(ERROR_BAD_ARGUMENTS
);
1747 /* FIXME: check hProcess is actually a process */
1748 /* FIXME: query the kernel process object */
1749 *lpProcessAffinityMask
= 0x00000001;
1750 *lpSystemAffinityMask
= 0x00000001;
1757 GetProcessShutdownParameters (
1762 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1773 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1780 GetProcessWorkingSetSize (
1782 LPDWORD lpMinimumWorkingSetSize
,
1783 LPDWORD lpMaximumWorkingSetSize
1786 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1799 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1812 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1819 GetProfileSectionW (
1821 LPWSTR lpReturnedString
,
1825 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1832 GetProfileSectionA (
1834 LPSTR lpReturnedString
,
1838 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1849 LPWSTR lpReturnedString
,
1853 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1864 LPSTR lpReturnedString
,
1868 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1883 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1898 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1912 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1927 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1934 GetSystemDefaultLCID (VOID
)
1937 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1947 GetSystemDefaultLangID (VOID
)
1950 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1960 GetSystemPowerStatus (
1964 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1975 LPVOID lpTapeInformation
1978 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1989 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1996 GetThreadLocale (VOID
)
1999 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2009 GetThreadSelectorEntry (
2012 LPLDT_ENTRY lpSelectorEntry
2015 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2025 CONST SYSTEMTIME
* lpTime
,
2031 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2041 CONST SYSTEMTIME
* lpTime
,
2047 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2054 GetUserDefaultLCID (VOID
)
2057 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2067 GetUserDefaultLangID (VOID
)
2070 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2080 GetVDMCurrentDirectories (
2085 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2096 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2107 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2119 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
2130 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2141 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2152 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2163 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2174 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2184 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2196 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
2203 GlobalGetAtomNameA (
2209 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2216 GlobalGetAtomNameW (
2222 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2233 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2244 /* In Win32 GlobalAlloc returns LPVOID? */
2251 GlobalMemoryStatus (
2252 LPMEMORYSTATUS lpBuffer
2255 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2278 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
2289 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2300 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2310 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2321 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2322 return NULL
; /* ? */
2335 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2349 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2364 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2377 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2392 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2401 LPPROCESS_HEAP_ENTRY lpEntry
2404 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2415 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2422 InvalidateConsoleDIBits (
2427 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2438 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2450 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2461 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2473 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2489 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2505 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2513 LPCSTR lpModuleName
,
2514 LPVOID lpParameterBlock
2517 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2532 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2543 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2554 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2565 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2576 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2587 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2600 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2612 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2623 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2634 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2647 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2652 /**********************************************************************
2657 * TRUE if CodePage is installed in the system.
2671 /**********************************************************************
2673 * MultiByteToWideChar@24
2677 * CP_ACP ANSI code page
2678 * CP_MACCP Macintosh code page
2679 * CP_OEMCP OEM code page
2680 * (UINT) Any installed code page
2685 * MB_ERR_INVALID_CHARS
2692 * Size of MultiByteStr, or -1 if MultiByteStr is
2699 * Size (in WCHAR unit) of WideCharStr, or 0
2700 * if the caller just wants to know how large
2701 * WideCharStr should be for a successful
2705 * 0 on error; otherwise the number of WCHAR written
2706 * in the WideCharStr buffer.
2709 * A raw converter for now. It assumes lpMultiByteStr is
2710 * NEVER multi-byte (that is each input character is
2711 * 8-bit ASCII) and is ALWAYS NULL terminated.
2712 * FIXME-FIXME-FIXME-FIXME
2716 MultiByteToWideChar (
2719 LPCSTR lpMultiByteStr
,
2721 LPWSTR lpWideCharStr
,
2725 int InStringLength
= 0;
2726 BOOL InIsNullTerminated
= TRUE
;
2732 * Check the parameters.
2734 if ( /* --- CODE PAGE --- */
2735 ( (CP_ACP
!= CodePage
)
2736 && (CP_MACCP
!= CodePage
)
2737 && (CP_OEMCP
!= CodePage
)
2738 && (FALSE
== IsInstalledCP (CodePage
))
2741 || (dwFlags
^ ( MB_PRECOMPOSED
2743 | MB_ERR_INVALID_CHARS
2747 /* --- INPUT BUFFER --- */
2748 || (NULL
== lpMultiByteStr
)
2751 SetLastError (ERROR_INVALID_PARAMETER
);
2755 * Compute the input buffer length.
2757 if (-1 == cchMultiByte
)
2759 InStringLength
= lstrlen (lpMultiByteStr
);
2763 InIsNullTerminated
= FALSE
;
2764 InStringLength
= cchMultiByte
;
2767 * Does caller query for output
2770 if (0 == cchWideChar
)
2772 SetLastError (ERROR_SUCCESS
);
2773 return InStringLength
;
2776 * Is space provided for the translated
2779 if (cchWideChar
< InStringLength
)
2781 SetLastError (ERROR_INSUFFICIENT_BUFFER
);
2785 * Raw 8- to 16-bit conversion.
2787 for ( cchConverted
= 0,
2788 r
= (PCHAR
) lpMultiByteStr
,
2789 w
= (PWCHAR
) lpWideCharStr
;
2791 ((*r
) && (cchConverted
< cchWideChar
));
2800 * Is the input string NULL terminated?
2802 if (TRUE
== InIsNullTerminated
)
2808 * Return how many characters we
2809 * wrote in the output buffer.
2811 SetLastError (ERROR_SUCCESS
);
2812 return cchConverted
;
2825 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2832 OpenProfileUserMapping (VOID
)
2834 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2845 LPDWORD lpBytesRead
,
2846 LPDWORD lpTotalBytesAvail
,
2847 LPDWORD lpBytesLeftThisMessage
2850 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2863 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2875 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2882 QueryPerformanceCounter (
2883 LARGE_INTEGER
* lpPerformanceCount
2886 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2893 QueryPerformanceFrequency (
2894 LARGE_INTEGER
* lpFrequency
2897 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2904 QueryWin31IniFilesMappedToRegistry (
2911 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2919 DWORD dwExceptionCode
,
2920 DWORD dwExceptionFlags
,
2921 DWORD nNumberOfArguments
,
2922 CONST DWORD
* lpArguments
2925 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2931 RegisterConsoleVDM (
2945 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2952 RegisterWowBaseHandlers (
2956 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2967 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2978 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2991 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3003 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3015 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3024 LPCOMMTIMEOUTS lpCommTimeouts
3027 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3035 LPCSTR lpComputerName
3038 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3046 LPCWSTR lpComputerName
3049 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3056 SetConsoleCommandHistoryMode (
3060 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3072 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3079 SetConsoleDisplayMode (
3085 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3097 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3104 SetConsoleHardwareState (
3110 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3117 SetConsoleKeyShortcuts (
3124 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3131 SetConsoleMaximumWindowSize (
3136 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3143 SetConsoleMenuClose (
3147 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3154 SetConsoleNumberOfCommandsA (
3159 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3166 SetConsoleNumberOfCommandsW (
3171 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3184 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3191 SetDefaultCommConfigA (
3197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3204 SetDefaultCommConfigW (
3210 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3217 SetLastConsoleEventActive (VOID
)
3219 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3232 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3245 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3257 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3266 SetProcessShutdownParameters (
3271 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3278 SetProcessWorkingSetSize (
3280 DWORD dwMinimumWorkingSetSize
,
3281 DWORD dwMaximumWorkingSetSize
3284 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3291 SetSystemPowerState (
3296 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3306 LPVOID lpTapeInformation
3309 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3318 DWORD dwPositionMethod
,
3325 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3336 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3343 SetVDMCurrentDirectories (
3348 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3361 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3373 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3390 DWORD nInBufferSize
,
3392 DWORD nOutBufferSize
,
3393 LPDWORD lpBytesRead
,
3394 LPOVERLAPPED lpOverlapped
3397 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3409 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3420 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3436 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3452 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3459 VDMConsoleOperation (
3464 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3471 VDMOperationStarted (
3475 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3488 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3501 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3508 VerifyConsoleIoHandle (
3512 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3519 VirtualBufferExceptionHandler (
3525 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3535 LPOVERLAPPED lpOverlapped
3538 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3545 WideCharToMultiByte (
3548 LPCWSTR lpWideCharStr
,
3550 LPSTR lpMultiByteStr
,
3552 LPCSTR lpDefaultChar
,
3553 LPBOOL lpUsedDefaultChar
3556 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3563 WriteConsoleInputVDMA (
3570 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3577 WriteConsoleInputVDMW (
3584 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3591 WritePrivateProfileSectionA (
3597 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3604 WritePrivateProfileSectionW (
3610 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3617 WritePrivateProfileStringA (
3624 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3631 WritePrivateProfileStringW (
3638 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3645 WritePrivateProfileStructA (
3653 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3660 WritePrivateProfileStructW (
3668 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3677 WriteProfileSectionA (
3682 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3689 WriteProfileSectionW (
3694 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3701 WriteProfileStringA (
3707 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3714 WriteProfileStringW (
3720 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3729 DWORD dwTapemarkType
,
3730 DWORD dwTapemarkCount
,
3734 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3742 DWORD dwPositionType
,
3743 LPDWORD lpdwPartition
,
3744 LPDWORD lpdwOffsetLow
,
3745 LPDWORD lpdwOffsetHigh
3748 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);