1 /* $Id: stubs.c,v 1.21 2000/09/01 17:09:19 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
);
767 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
778 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
785 FindCloseChangeNotification (
789 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
796 FindFirstChangeNotificationW (
798 WINBOOL bWatchSubtree
,
802 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
803 return INVALID_HANDLE_VALUE
;
809 FindFirstChangeNotificationA (
811 WINBOOL bWatchSubtree
,
815 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
816 return INVALID_HANDLE_VALUE
;
822 FindNextChangeNotification (
826 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
842 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
857 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
874 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
891 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
899 HANDLE hVirtualBuffer
902 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
911 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
925 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
938 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
946 LPCWSTR lpApplicationName
,
950 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
958 LPCSTR lpApplicationName
,
962 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
974 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
987 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
999 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1007 GetCommModemStatus (
1012 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1021 LPCOMMPROP lpCommProp
1024 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1036 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1045 LPCOMMTIMEOUTS lpCommTimeouts
1048 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1060 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1064 * FIXME: get the computer's name from
1067 lstrcpyW( Name
, L
"ROSHost" ); /* <-- FIXME -- */
1068 Size
= lstrlenW(Name
) + 1;
1072 SetLastError(ERROR_BUFFER_OVERFLOW
);
1075 lstrcpyW( lpBuffer
, Name
);
1087 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1090 if (FALSE
== GetComputerNameW(
1098 /* Use UNICODE to ANSI */
1099 for ( i
=0; Name
[i
]; ++i
)
1101 lpBuffer
[i
] = (CHAR
) Name
[i
];
1118 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1132 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1140 GetConsoleAliasExesW (
1145 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1153 GetConsoleAliasExesA (
1158 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1166 GetConsoleAliasExesLengthA (VOID
)
1168 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1176 GetConsoleAliasExesLengthW (VOID
)
1178 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1186 GetConsoleAliasesW (
1192 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1200 GetConsoleAliasesA (
1206 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1214 GetConsoleAliasesLengthW (
1218 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1226 GetConsoleAliasesLengthA (
1230 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1237 GetConsoleCommandHistoryW (
1243 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1250 GetConsoleCommandHistoryA (
1256 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1263 GetConsoleCommandHistoryLengthW (
1267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1274 GetConsoleCommandHistoryLengthA (
1278 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1285 GetConsoleDisplayMode (
1289 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1296 GetConsoleFontInfo (
1303 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1310 GetConsoleFontSize (
1315 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1322 GetConsoleHardwareState (
1328 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1335 GetConsoleInputWaitHandle (VOID
)
1337 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1344 GetCurrencyFormatW (
1348 CONST CURRENCYFMT
* lpFormat
,
1349 LPWSTR lpCurrencyStr
,
1353 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1360 GetCurrencyFormatA (
1364 CONST CURRENCYFMT
* lpFormat
,
1365 LPSTR lpCurrencyStr
,
1369 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1376 GetCurrentConsoleFont (
1382 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1392 CONST SYSTEMTIME
* lpDate
,
1398 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1408 CONST SYSTEMTIME
* lpDate
,
1414 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1421 GetDefaultCommConfigW (
1427 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1434 GetDefaultCommConfigA (
1440 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1454 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1468 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1477 LPDWORD lpMaxMessageSize
,
1479 LPDWORD lpMessageCount
,
1480 LPDWORD lpReadTimeout
1483 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1490 GetNamedPipeHandleStateW (
1493 LPDWORD lpCurInstances
,
1494 LPDWORD lpMaxCollectionCount
,
1495 LPDWORD lpCollectDataTimeout
,
1497 DWORD nMaxUserNameSize
1500 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1507 GetNamedPipeHandleStateA (
1510 LPDWORD lpCurInstances
,
1511 LPDWORD lpMaxCollectionCount
,
1512 LPDWORD lpCollectDataTimeout
,
1514 DWORD nMaxUserNameSize
1517 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1527 LPDWORD lpOutBufferSize
,
1528 LPDWORD lpInBufferSize
,
1529 LPDWORD lpMaxInstances
1532 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1543 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1554 CONST NUMBERFMT
* lpFormat
,
1559 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1570 CONST NUMBERFMT
* lpFormat
,
1575 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1582 GetNumberOfConsoleFonts (VOID
)
1584 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1585 return 1; /* FIXME: call csrss.exe */
1593 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1594 return 437; /* FIXME: call csrss.exe */
1600 GetPrivateProfileIntW (
1607 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1614 GetPrivateProfileIntA (
1621 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1628 GetPrivateProfileSectionW (
1630 LPWSTR lpReturnedString
,
1635 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1642 GetPrivateProfileSectionA (
1644 LPSTR lpReturnedString
,
1649 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1656 GetPrivateProfileSectionNamesW (
1662 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1669 GetPrivateProfileSectionNamesA (
1675 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1682 GetPrivateProfileStringW (
1686 LPWSTR lpReturnedString
,
1691 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1698 GetPrivateProfileStringA (
1702 LPSTR lpReturnedString
,
1707 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1714 GetPrivateProfileStructW (
1722 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1729 GetPrivateProfileStructA (
1737 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1744 GetProcessAffinityMask (
1746 LPDWORD lpProcessAffinityMask
,
1747 LPDWORD lpSystemAffinityMask
1750 if ( (NULL
== lpProcessAffinityMask
)
1751 || (NULL
== lpSystemAffinityMask
)
1754 SetLastError(ERROR_BAD_ARGUMENTS
);
1757 /* FIXME: check hProcess is actually a process */
1758 /* FIXME: query the kernel process object */
1759 *lpProcessAffinityMask
= 0x00000001;
1760 *lpSystemAffinityMask
= 0x00000001;
1767 GetProcessShutdownParameters (
1772 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1783 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1790 GetProcessWorkingSetSize (
1792 LPDWORD lpMinimumWorkingSetSize
,
1793 LPDWORD lpMaximumWorkingSetSize
1796 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1809 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1822 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1829 GetProfileSectionW (
1831 LPWSTR lpReturnedString
,
1835 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1842 GetProfileSectionA (
1844 LPSTR lpReturnedString
,
1848 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1859 LPWSTR lpReturnedString
,
1863 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1874 LPSTR lpReturnedString
,
1878 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1893 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1908 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1922 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1937 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1944 GetSystemDefaultLCID (VOID
)
1947 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1957 GetSystemDefaultLangID (VOID
)
1960 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1970 GetSystemPowerStatus (
1974 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1985 LPVOID lpTapeInformation
1988 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1999 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2006 GetThreadLocale (VOID
)
2009 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2019 GetThreadSelectorEntry (
2022 LPLDT_ENTRY lpSelectorEntry
2025 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2035 CONST SYSTEMTIME
* lpTime
,
2041 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2051 CONST SYSTEMTIME
* lpTime
,
2057 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2064 GetUserDefaultLCID (VOID
)
2067 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2077 GetUserDefaultLangID (VOID
)
2080 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2090 GetVDMCurrentDirectories (
2095 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2106 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2129 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2140 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2162 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2173 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2184 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2194 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2205 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2212 GlobalGetAtomNameA (
2218 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2225 GlobalGetAtomNameW (
2231 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2242 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2253 /* In Win32 GlobalAlloc returns LPVOID? */
2260 GlobalMemoryStatus (
2261 LPMEMORYSTATUS lpBuffer
2264 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2276 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2287 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2298 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2309 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2319 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2330 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2331 return NULL
; /* ? */
2344 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2358 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2373 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2386 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2401 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2410 LPPROCESS_HEAP_ENTRY lpEntry
2413 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2424 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2431 InvalidateConsoleDIBits (
2436 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2447 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2459 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2470 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2482 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2498 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2514 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2522 LPCSTR lpModuleName
,
2523 LPVOID lpParameterBlock
2526 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2541 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2552 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2563 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2574 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2585 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2596 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2609 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2621 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2632 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2643 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2659 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2664 /**********************************************************************
2669 * TRUE if CodePage is installed in the system.
2683 /**********************************************************************
2685 * MultiByteToWideChar@24
2689 * CP_ACP ANSI code page
2690 * CP_MACCP Macintosh code page
2691 * CP_OEMCP OEM code page
2692 * (UINT) Any installed code page
2697 * MB_ERR_INVALID_CHARS
2704 * Size of MultiByteStr, or -1 if MultiByteStr is
2711 * Size (in WCHAR unit) of WideCharStr, or 0
2712 * if the caller just wants to know how large
2713 * WideCharStr should be for a successful
2717 * 0 on error; otherwise the number of WCHAR written
2718 * in the WideCharStr buffer.
2721 * A raw converter for now. It assumes lpMultiByteStr is
2722 * NEVER multi-byte (that is each input character is
2723 * 8-bit ASCII) and is ALWAYS NULL terminated.
2724 * FIXME-FIXME-FIXME-FIXME
2728 MultiByteToWideChar (
2731 LPCSTR lpMultiByteStr
,
2733 LPWSTR lpWideCharStr
,
2737 int InStringLength
= 0;
2738 BOOL InIsNullTerminated
= TRUE
;
2744 * Check the parameters.
2746 if ( /* --- CODE PAGE --- */
2747 ( (CP_ACP
!= CodePage
)
2748 && (CP_MACCP
!= CodePage
)
2749 && (CP_OEMCP
!= CodePage
)
2750 && (FALSE
== IsInstalledCP (CodePage
))
2753 || (dwFlags
^ ( MB_PRECOMPOSED
2755 | MB_ERR_INVALID_CHARS
2759 /* --- INPUT BUFFER --- */
2760 || (NULL
== lpMultiByteStr
)
2763 SetLastError (ERROR_INVALID_PARAMETER
);
2767 * Compute the input buffer length.
2769 if (-1 == cchMultiByte
)
2771 InStringLength
= lstrlen (lpMultiByteStr
);
2775 InIsNullTerminated
= FALSE
;
2776 InStringLength
= cchMultiByte
;
2779 * Does caller query for output
2782 if (0 == cchWideChar
)
2784 SetLastError (ERROR_SUCCESS
);
2785 return InStringLength
;
2788 * Is space provided for the translated
2791 if (cchWideChar
< InStringLength
)
2793 SetLastError (ERROR_INSUFFICIENT_BUFFER
);
2797 * Raw 8- to 16-bit conversion.
2799 for ( cchConverted
= 0,
2800 r
= (PCHAR
) lpMultiByteStr
,
2801 w
= (PWCHAR
) lpWideCharStr
;
2803 ((*r
) && (cchConverted
< cchWideChar
));
2812 * Is the input string NULL terminated?
2814 if (TRUE
== InIsNullTerminated
)
2820 * Return how many characters we
2821 * wrote in the output buffer.
2823 SetLastError (ERROR_SUCCESS
);
2824 return cchConverted
;
2837 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2845 DWORD dwDesiredAccess
,
2846 WINBOOL bInheritHandle
,
2850 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2851 return INVALID_HANDLE_VALUE
;
2858 DWORD dwDesiredAccess
,
2859 WINBOOL bInheritHandle
,
2863 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2864 return INVALID_HANDLE_VALUE
;
2870 OpenProfileUserMapping (VOID
)
2872 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2880 DWORD dwDesiredAccess
,
2881 WINBOOL bInheritHandle
,
2885 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2886 return INVALID_HANDLE_VALUE
;
2893 DWORD dwDesiredAccess
,
2894 WINBOOL bInheritHandle
,
2898 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2899 return INVALID_HANDLE_VALUE
;
2909 LPDWORD lpBytesRead
,
2910 LPDWORD lpTotalBytesAvail
,
2911 LPDWORD lpBytesLeftThisMessage
2914 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2927 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2939 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2946 QueryPerformanceCounter (
2947 LARGE_INTEGER
* lpPerformanceCount
2950 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2957 QueryPerformanceFrequency (
2958 LARGE_INTEGER
* lpFrequency
2961 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2968 QueryWin31IniFilesMappedToRegistry (
2975 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2983 DWORD dwExceptionCode
,
2984 DWORD dwExceptionFlags
,
2985 DWORD nNumberOfArguments
,
2986 CONST DWORD
* lpArguments
2989 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2998 RegisterConsoleVDM (
3012 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3019 RegisterWowBaseHandlers (
3023 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3034 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3045 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3055 LPLONG lpPreviousCount
3058 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3071 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3084 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3096 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3108 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3117 LPCOMMTIMEOUTS lpCommTimeouts
3120 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3128 LPCSTR lpComputerName
3131 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3139 LPCWSTR lpComputerName
3142 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3149 SetConsoleCommandHistoryMode (
3153 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3165 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3172 SetConsoleDisplayMode (
3178 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3190 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3197 SetConsoleHardwareState (
3203 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3210 SetConsoleKeyShortcuts (
3217 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3224 SetConsoleMaximumWindowSize (
3229 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3236 SetConsoleMenuClose (
3240 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3247 SetConsoleNumberOfCommandsA (
3252 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3259 SetConsoleNumberOfCommandsW (
3264 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3277 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3284 SetDefaultCommConfigA (
3290 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3297 SetDefaultCommConfigW (
3303 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3310 SetLastConsoleEventActive (VOID
)
3312 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3325 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3338 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3350 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3359 SetProcessShutdownParameters (
3364 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3371 SetProcessWorkingSetSize (
3373 DWORD dwMinimumWorkingSetSize
,
3374 DWORD dwMaximumWorkingSetSize
3377 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3384 SetSystemPowerState (
3389 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3399 LPVOID lpTapeInformation
3402 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3411 DWORD dwPositionMethod
,
3418 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3429 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3436 SetVDMCurrentDirectories (
3441 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3454 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3466 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3483 DWORD nInBufferSize
,
3485 DWORD nOutBufferSize
,
3486 LPDWORD lpBytesRead
,
3487 LPOVERLAPPED lpOverlapped
3490 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3502 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3513 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3529 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3545 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3552 VDMConsoleOperation (
3557 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3564 VDMOperationStarted (
3568 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3581 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3594 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3601 VerifyConsoleIoHandle (
3605 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3612 VirtualBufferExceptionHandler (
3618 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3628 LPOVERLAPPED lpOverlapped
3631 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3638 WideCharToMultiByte (
3641 LPCWSTR lpWideCharStr
,
3643 LPSTR lpMultiByteStr
,
3645 LPCSTR lpDefaultChar
,
3646 LPBOOL lpUsedDefaultChar
3649 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3656 WriteConsoleInputVDMA (
3663 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3670 WriteConsoleInputVDMW (
3677 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3684 WritePrivateProfileSectionA (
3690 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3697 WritePrivateProfileSectionW (
3703 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3710 WritePrivateProfileStringA (
3717 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3724 WritePrivateProfileStringW (
3731 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3738 WritePrivateProfileStructA (
3746 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3753 WritePrivateProfileStructW (
3761 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3770 WriteProfileSectionA (
3775 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3782 WriteProfileSectionW (
3787 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3794 WriteProfileStringA (
3800 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3807 WriteProfileStringW (
3813 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3822 DWORD dwTapemarkType
,
3823 DWORD dwTapemarkCount
,
3827 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3835 DWORD dwPositionType
,
3836 LPDWORD lpdwPartition
,
3837 LPDWORD lpdwOffsetLow
,
3838 LPDWORD lpdwOffsetHigh
3841 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);