1 /* $Id: stubs.c,v 1.22 2000/09/05 13:52:04 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
);
2195 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2202 GlobalGetAtomNameA (
2208 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2215 GlobalGetAtomNameW (
2221 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2232 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2243 /* In Win32 GlobalAlloc returns LPVOID? */
2250 GlobalMemoryStatus (
2251 LPMEMORYSTATUS lpBuffer
2254 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2266 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2277 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2288 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2299 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2309 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2320 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2321 return NULL
; /* ? */
2334 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2348 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2363 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2376 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2391 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2400 LPPROCESS_HEAP_ENTRY lpEntry
2403 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2414 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2421 InvalidateConsoleDIBits (
2426 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2437 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2449 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2460 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2472 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2488 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2504 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2512 LPCSTR lpModuleName
,
2513 LPVOID lpParameterBlock
2516 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2531 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2542 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2553 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2564 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2575 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2586 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2599 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2611 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2622 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2633 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2649 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2654 /**********************************************************************
2659 * TRUE if CodePage is installed in the system.
2673 /**********************************************************************
2675 * MultiByteToWideChar@24
2679 * CP_ACP ANSI code page
2680 * CP_MACCP Macintosh code page
2681 * CP_OEMCP OEM code page
2682 * (UINT) Any installed code page
2687 * MB_ERR_INVALID_CHARS
2694 * Size of MultiByteStr, or -1 if MultiByteStr is
2701 * Size (in WCHAR unit) of WideCharStr, or 0
2702 * if the caller just wants to know how large
2703 * WideCharStr should be for a successful
2707 * 0 on error; otherwise the number of WCHAR written
2708 * in the WideCharStr buffer.
2711 * A raw converter for now. It assumes lpMultiByteStr is
2712 * NEVER multi-byte (that is each input character is
2713 * 8-bit ASCII) and is ALWAYS NULL terminated.
2714 * FIXME-FIXME-FIXME-FIXME
2718 MultiByteToWideChar (
2721 LPCSTR lpMultiByteStr
,
2723 LPWSTR lpWideCharStr
,
2727 int InStringLength
= 0;
2728 BOOL InIsNullTerminated
= TRUE
;
2734 * Check the parameters.
2736 if ( /* --- CODE PAGE --- */
2737 ( (CP_ACP
!= CodePage
)
2738 && (CP_MACCP
!= CodePage
)
2739 && (CP_OEMCP
!= CodePage
)
2740 && (FALSE
== IsInstalledCP (CodePage
))
2743 || (dwFlags
^ ( MB_PRECOMPOSED
2745 | MB_ERR_INVALID_CHARS
2749 /* --- INPUT BUFFER --- */
2750 || (NULL
== lpMultiByteStr
)
2753 SetLastError (ERROR_INVALID_PARAMETER
);
2757 * Compute the input buffer length.
2759 if (-1 == cchMultiByte
)
2761 InStringLength
= lstrlen (lpMultiByteStr
);
2765 InIsNullTerminated
= FALSE
;
2766 InStringLength
= cchMultiByte
;
2769 * Does caller query for output
2772 if (0 == cchWideChar
)
2774 SetLastError (ERROR_SUCCESS
);
2775 return InStringLength
;
2778 * Is space provided for the translated
2781 if (cchWideChar
< InStringLength
)
2783 SetLastError (ERROR_INSUFFICIENT_BUFFER
);
2787 * Raw 8- to 16-bit conversion.
2789 for ( cchConverted
= 0,
2790 r
= (PCHAR
) lpMultiByteStr
,
2791 w
= (PWCHAR
) lpWideCharStr
;
2793 ((*r
) && (cchConverted
< cchWideChar
));
2802 * Is the input string NULL terminated?
2804 if (TRUE
== InIsNullTerminated
)
2810 * Return how many characters we
2811 * wrote in the output buffer.
2813 SetLastError (ERROR_SUCCESS
);
2814 return cchConverted
;
2827 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2835 DWORD dwDesiredAccess
,
2836 WINBOOL bInheritHandle
,
2840 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2841 return INVALID_HANDLE_VALUE
;
2848 DWORD dwDesiredAccess
,
2849 WINBOOL bInheritHandle
,
2853 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2854 return INVALID_HANDLE_VALUE
;
2860 OpenProfileUserMapping (VOID
)
2862 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2870 DWORD dwDesiredAccess
,
2871 WINBOOL bInheritHandle
,
2875 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2876 return INVALID_HANDLE_VALUE
;
2883 DWORD dwDesiredAccess
,
2884 WINBOOL bInheritHandle
,
2888 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2889 return INVALID_HANDLE_VALUE
;
2899 LPDWORD lpBytesRead
,
2900 LPDWORD lpTotalBytesAvail
,
2901 LPDWORD lpBytesLeftThisMessage
2904 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2917 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2929 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2936 QueryPerformanceCounter (
2937 LARGE_INTEGER
* lpPerformanceCount
2940 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2947 QueryPerformanceFrequency (
2948 LARGE_INTEGER
* lpFrequency
2951 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2958 QueryWin31IniFilesMappedToRegistry (
2965 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2973 DWORD dwExceptionCode
,
2974 DWORD dwExceptionFlags
,
2975 DWORD nNumberOfArguments
,
2976 CONST DWORD
* lpArguments
2979 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2988 RegisterConsoleVDM (
3002 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3009 RegisterWowBaseHandlers (
3013 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3024 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3035 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3045 LPLONG lpPreviousCount
3048 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3061 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3074 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3086 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3098 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3107 LPCOMMTIMEOUTS lpCommTimeouts
3110 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3118 LPCSTR lpComputerName
3121 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3129 LPCWSTR lpComputerName
3132 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3139 SetConsoleCommandHistoryMode (
3143 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3155 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3162 SetConsoleDisplayMode (
3168 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3180 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3187 SetConsoleHardwareState (
3193 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3200 SetConsoleKeyShortcuts (
3207 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3214 SetConsoleMaximumWindowSize (
3219 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3226 SetConsoleMenuClose (
3230 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3237 SetConsoleNumberOfCommandsA (
3242 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3249 SetConsoleNumberOfCommandsW (
3254 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3267 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3274 SetDefaultCommConfigA (
3280 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3287 SetDefaultCommConfigW (
3293 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3300 SetLastConsoleEventActive (VOID
)
3302 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3315 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3328 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3340 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3349 SetProcessShutdownParameters (
3354 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3361 SetProcessWorkingSetSize (
3363 DWORD dwMinimumWorkingSetSize
,
3364 DWORD dwMaximumWorkingSetSize
3367 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3374 SetSystemPowerState (
3379 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3389 LPVOID lpTapeInformation
3392 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3401 DWORD dwPositionMethod
,
3408 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3419 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3426 SetVDMCurrentDirectories (
3431 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3444 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3456 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3473 DWORD nInBufferSize
,
3475 DWORD nOutBufferSize
,
3476 LPDWORD lpBytesRead
,
3477 LPOVERLAPPED lpOverlapped
3480 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3492 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3503 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3519 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3535 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3542 VDMConsoleOperation (
3547 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3554 VDMOperationStarted (
3558 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3571 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3584 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3591 VerifyConsoleIoHandle (
3595 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3602 VirtualBufferExceptionHandler (
3608 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3618 LPOVERLAPPED lpOverlapped
3621 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3628 WideCharToMultiByte (
3631 LPCWSTR lpWideCharStr
,
3633 LPSTR lpMultiByteStr
,
3635 LPCSTR lpDefaultChar
,
3636 LPBOOL lpUsedDefaultChar
3639 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3646 WriteConsoleInputVDMA (
3653 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3660 WriteConsoleInputVDMW (
3667 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3674 WritePrivateProfileSectionA (
3680 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3687 WritePrivateProfileSectionW (
3693 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3700 WritePrivateProfileStringA (
3707 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3714 WritePrivateProfileStringW (
3721 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3728 WritePrivateProfileStructA (
3736 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3743 WritePrivateProfileStructW (
3751 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3760 WriteProfileSectionA (
3765 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3772 WriteProfileSectionW (
3777 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3784 WriteProfileStringA (
3790 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3797 WriteProfileStringW (
3803 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3812 DWORD dwTapemarkType
,
3813 DWORD dwTapemarkCount
,
3817 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3825 DWORD dwPositionType
,
3826 LPDWORD lpdwPartition
,
3827 LPDWORD lpdwOffsetLow
,
3828 LPDWORD lpdwOffsetHigh
3831 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);