1 /* $Id: stubs.c,v 1.15 2000/04/25 23:22:54 ea 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
);
326 LPOVERLAPPED lpOverlapped
329 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
342 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
349 ConvertDefaultLocale (
353 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
362 DWORD nMaxMessageSize
,
364 LPSECURITY_ATTRIBUTES lpSecurityAttributes
367 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
368 return INVALID_HANDLE_VALUE
;
376 DWORD nMaxMessageSize
,
378 LPSECURITY_ATTRIBUTES lpSecurityAttributes
381 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
382 return INVALID_HANDLE_VALUE
;
393 DWORD nOutBufferSize
,
395 DWORD nDefaultTimeOut
,
396 LPSECURITY_ATTRIBUTES lpSecurityAttributes
399 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
400 return INVALID_HANDLE_VALUE
;
411 DWORD nOutBufferSize
,
413 DWORD nDefaultTimeOut
,
414 LPSECURITY_ATTRIBUTES lpSecurityAttributes
417 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
418 return INVALID_HANDLE_VALUE
;
424 CreateTapePartition (
426 DWORD dwPartitionMethod
,
431 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
438 CreateVirtualBuffer (
444 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
455 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
462 DisableThreadLibraryCalls (
466 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
473 DisconnectNamedPipe (
477 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
484 DuplicateConsoleHandle (
491 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
503 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
515 return EndUpdateResourceW(
525 CALINFO_ENUMPROC lpCalInfoEnumProc
,
531 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
540 CALINFO_ENUMPROC lpCalInfoEnumProc
,
546 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
554 DATEFMT_ENUMPROC lpDateFmtEnumProc
,
559 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
567 DATEFMT_ENUMPROC lpDateFmtEnumProc
,
572 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
579 EnumResourceLanguagesW (
583 ENUMRESLANGPROC lpEnumFunc
,
587 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
594 EnumResourceLanguagesA (
598 ENUMRESLANGPROC lpEnumFunc
,
602 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
612 ENUMRESNAMEPROC lpEnumFunc
,
616 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
626 ENUMRESNAMEPROC lpEnumFunc
,
630 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
639 ENUMRESTYPEPROC lpEnumFunc
,
643 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
653 ENUMRESTYPEPROC lpEnumFunc
,
657 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
664 EnumSystemCodePagesW (
665 CODEPAGE_ENUMPROC lpCodePageEnumProc
,
669 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
676 EnumSystemCodePagesA (
677 CODEPAGE_ENUMPROC lpCodePageEnumProc
,
681 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
689 LOCALE_ENUMPROC lpLocaleEnumProc
,
693 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
701 LOCALE_ENUMPROC lpLocaleEnumProc
,
705 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
713 TIMEFMT_ENUMPROC lpTimeFmtEnumProc
,
718 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
726 TIMEFMT_ENUMPROC lpTimeFmtEnumProc
,
731 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
744 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
756 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
768 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
775 ExpungeConsoleCommandHistoryW (
779 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
786 ExpungeConsoleCommandHistoryA (
790 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
797 ExtendVirtualBuffer (
802 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
813 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
823 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
834 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
841 FindCloseChangeNotification (
845 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
852 FindFirstChangeNotificationW (
854 WINBOOL bWatchSubtree
,
858 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
859 return INVALID_HANDLE_VALUE
;
865 FindFirstChangeNotificationA (
867 WINBOOL bWatchSubtree
,
871 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
872 return INVALID_HANDLE_VALUE
;
878 FindNextChangeNotification (
882 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
898 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
913 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
930 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
947 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
955 HANDLE hVirtualBuffer
958 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
967 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
981 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
994 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1002 LPCWSTR lpApplicationName
,
1003 LPDWORD lpBinaryType
1006 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1014 LPCSTR lpApplicationName
,
1015 LPDWORD lpBinaryType
1018 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1030 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1043 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1055 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1063 GetCommModemStatus (
1068 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1077 LPCOMMPROP lpCommProp
1080 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1092 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1101 LPCOMMTIMEOUTS lpCommTimeouts
1104 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1116 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1120 * FIXME: get the computer's name from
1123 lstrcpyW( Name
, L
"ROSHost" ); /* <-- FIXME -- */
1124 Size
= lstrlenW(Name
) + 1;
1128 SetLastError(ERROR_BUFFER_OVERFLOW
);
1131 lstrcpyW( lpBuffer
, Name
);
1143 WCHAR Name
[MAX_COMPUTERNAME_LENGTH
+ 1];
1146 if (FALSE
== GetComputerNameW(
1154 /* Use UNICODE to ANSI */
1155 for ( i
=0; Name
[i
]; ++i
)
1157 lpBuffer
[i
] = (CHAR
) Name
[i
];
1174 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1188 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1196 GetConsoleAliasExesW (
1201 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1209 GetConsoleAliasExesA (
1214 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1222 GetConsoleAliasExesLengthA (VOID
)
1224 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1232 GetConsoleAliasExesLengthW (VOID
)
1234 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1242 GetConsoleAliasesW (
1248 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1256 GetConsoleAliasesA (
1262 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1270 GetConsoleAliasesLengthW (
1274 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1282 GetConsoleAliasesLengthA (
1286 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1293 GetConsoleCommandHistoryW (
1299 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1306 GetConsoleCommandHistoryA (
1312 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1319 GetConsoleCommandHistoryLengthW (
1323 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1330 GetConsoleCommandHistoryLengthA (
1334 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1341 GetConsoleDisplayMode (
1345 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1352 GetConsoleFontInfo (
1359 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1366 GetConsoleFontSize (
1371 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1378 GetConsoleHardwareState (
1384 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1391 GetConsoleInputWaitHandle (VOID
)
1393 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1400 GetCurrencyFormatW (
1404 CONST CURRENCYFMT
* lpFormat
,
1405 LPWSTR lpCurrencyStr
,
1409 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1416 GetCurrencyFormatA (
1420 CONST CURRENCYFMT
* lpFormat
,
1421 LPSTR lpCurrencyStr
,
1425 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1432 GetCurrentConsoleFont (
1438 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1448 CONST SYSTEMTIME
* lpDate
,
1454 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1464 CONST SYSTEMTIME
* lpDate
,
1470 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1477 GetDefaultCommConfigW (
1483 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1490 GetDefaultCommConfigA (
1496 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1510 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1524 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1533 LPDWORD lpMaxMessageSize
,
1535 LPDWORD lpMessageCount
,
1536 LPDWORD lpReadTimeout
1539 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1546 GetModuleFileNameW (
1552 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1559 GetModuleFileNameA (
1565 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1573 LPCWSTR lpModuleName
1576 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1577 return INVALID_HANDLE_VALUE
;
1586 GetNamedPipeHandleStateW (
1589 LPDWORD lpCurInstances
,
1590 LPDWORD lpMaxCollectionCount
,
1591 LPDWORD lpCollectDataTimeout
,
1593 DWORD nMaxUserNameSize
1596 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1603 GetNamedPipeHandleStateA (
1606 LPDWORD lpCurInstances
,
1607 LPDWORD lpMaxCollectionCount
,
1608 LPDWORD lpCollectDataTimeout
,
1610 DWORD nMaxUserNameSize
1613 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1623 LPDWORD lpOutBufferSize
,
1624 LPDWORD lpInBufferSize
,
1625 LPDWORD lpMaxInstances
1628 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1639 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1650 CONST NUMBERFMT
* lpFormat
,
1655 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1666 CONST NUMBERFMT
* lpFormat
,
1671 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1678 GetNumberOfConsoleFonts (VOID
)
1680 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1681 return 1; /* FIXME: call csrss.exe */
1689 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1690 return 437; /* FIXME: call csrss.exe */
1696 GetPrivateProfileIntW (
1703 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1710 GetPrivateProfileIntA (
1717 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1724 GetPrivateProfileSectionW (
1726 LPWSTR lpReturnedString
,
1731 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1738 GetPrivateProfileSectionA (
1740 LPSTR lpReturnedString
,
1745 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1752 GetPrivateProfileSectionNamesW (
1758 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1765 GetPrivateProfileSectionNamesA (
1771 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1778 GetPrivateProfileStringW (
1782 LPWSTR lpReturnedString
,
1787 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1794 GetPrivateProfileStringA (
1798 LPSTR lpReturnedString
,
1803 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1810 GetPrivateProfileStructW (
1818 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1825 GetPrivateProfileStructA (
1833 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1840 GetProcessAffinityMask (
1842 LPDWORD lpProcessAffinityMask
,
1843 LPDWORD lpSystemAffinityMask
1846 if ( (NULL
== lpProcessAffinityMask
)
1847 || (NULL
== lpSystemAffinityMask
)
1850 SetLastError(ERROR_BAD_ARGUMENTS
);
1853 /* FIXME: check hProcess is actually a process */
1854 /* FIXME: query the kernel process object */
1855 *lpProcessAffinityMask
= 0x00000001;
1856 *lpSystemAffinityMask
= 0x00000001;
1863 GetProcessShutdownParameters (
1868 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1879 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1886 GetProcessWorkingSetSize (
1888 LPDWORD lpMinimumWorkingSetSize
,
1889 LPDWORD lpMaximumWorkingSetSize
1892 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1905 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1918 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1925 GetProfileSectionW (
1927 LPWSTR lpReturnedString
,
1931 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1938 GetProfileSectionA (
1940 LPSTR lpReturnedString
,
1944 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1955 LPWSTR lpReturnedString
,
1959 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1970 LPSTR lpReturnedString
,
1974 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
1989 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2004 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2018 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2033 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2040 GetSystemDefaultLCID (VOID
)
2043 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2053 GetSystemDefaultLangID (VOID
)
2056 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2066 GetSystemPowerStatus (
2070 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2081 LPVOID lpTapeInformation
2084 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2095 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2102 GetThreadLocale (VOID
)
2105 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2115 GetThreadSelectorEntry (
2118 LPLDT_ENTRY lpSelectorEntry
2121 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2131 CONST SYSTEMTIME
* lpTime
,
2137 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2147 CONST SYSTEMTIME
* lpTime
,
2153 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2160 GetUserDefaultLCID (VOID
)
2163 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2173 GetUserDefaultLangID (VOID
)
2176 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2186 GetVDMCurrentDirectories (
2191 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2202 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2213 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2225 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2236 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2247 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2258 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2269 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2280 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2290 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2301 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2308 GlobalGetAtomNameA (
2314 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2321 GlobalGetAtomNameW (
2327 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2338 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2349 /* In Win32 GlobalAlloc returns LPVOID? */
2356 GlobalMemoryStatus (
2357 LPMEMORYSTATUS lpBuffer
2360 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2372 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2383 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2394 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2405 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2415 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2426 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2427 return NULL
; /* ? */
2440 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2454 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2469 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2482 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2497 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2506 LPPROCESS_HEAP_ENTRY lpEntry
2509 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2520 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2527 InvalidateConsoleDIBits (
2532 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2543 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2555 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2566 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2578 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2594 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2610 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2618 LPCSTR lpModuleName
,
2619 LPVOID lpParameterBlock
2622 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2637 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2648 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2659 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2670 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2681 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2692 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2705 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2717 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2728 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2739 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2755 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2760 /**********************************************************************
2765 * TRUE if CodePage is installed in the system.
2779 /**********************************************************************
2781 * MultiByteToWideChar@24
2785 * CP_ACP ANSI code page
2786 * CP_MACCP Macintosh code page
2787 * CP_OEMCP OEM code page
2788 * (UINT) Any installed code page
2793 * MB_ERR_INVALID_CHARS
2800 * Size of MultiByteStr, or -1 if MultiByteStr is
2807 * Size (in WCHAR unit) of WideCharStr, or 0
2808 * if the caller just wants to know how large
2809 * WideCharStr should be for a successful
2813 * 0 on error; otherwise the number of WCHAR written
2814 * in the WideCharStr buffer.
2817 * A raw converter for now. It assumes lpMultiByteStr is
2818 * NEVER multi-byte (that is each input character is
2819 * 8-bit ASCII) and is ALWAYS NULL terminated.
2820 * FIXME-FIXME-FIXME-FIXME
2824 MultiByteToWideChar (
2827 LPCSTR lpMultiByteStr
,
2829 LPWSTR lpWideCharStr
,
2833 int InStringLength
= 0;
2834 BOOL InIsNullTerminated
= TRUE
;
2840 * Check the parameters.
2842 if ( /* --- CODE PAGE --- */
2843 ( (CP_ACP
!= CodePage
)
2844 && (CP_MACCP
!= CodePage
)
2845 && (CP_OEMCP
!= CodePage
)
2846 && (FALSE
== IsInstalledCP (CodePage
))
2849 || (dwFlags
^ ( MB_PRECOMPOSED
2851 | MB_ERR_INVALID_CHARS
2855 /* --- INPUT BUFFER --- */
2856 || (NULL
== lpMultiByteStr
)
2859 SetLastError (ERROR_INVALID_PARAMETER
);
2863 * Compute the input buffer length.
2865 if (-1 == cchMultiByte
)
2867 InStringLength
= lstrlen (lpMultiByteStr
);
2871 InIsNullTerminated
= FALSE
;
2872 InStringLength
= cchMultiByte
;
2875 * Does caller query for output
2878 if (0 == cchWideChar
)
2880 SetLastError (ERROR_SUCCESS
);
2881 return InStringLength
;
2884 * Is space provided for the translated
2887 if (cchWideChar
< InStringLength
)
2889 SetLastError (ERROR_INSUFFICIENT_BUFFER
);
2893 * Raw 8- to 16-bit conversion.
2895 for ( cchConverted
= 0,
2896 r
= (PCHAR
) lpMultiByteStr
,
2897 w
= (PWCHAR
) lpWideCharStr
;
2899 ((*r
) && (cchConverted
< cchWideChar
));
2908 * Is the input string NULL terminated?
2910 if (TRUE
== InIsNullTerminated
)
2916 * Return how many characters we
2917 * wrote in the output buffer.
2919 SetLastError (ERROR_SUCCESS
);
2920 return cchConverted
;
2933 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2941 DWORD dwDesiredAccess
,
2942 WINBOOL bInheritHandle
,
2946 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2947 return INVALID_HANDLE_VALUE
;
2954 DWORD dwDesiredAccess
,
2955 WINBOOL bInheritHandle
,
2959 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2960 return INVALID_HANDLE_VALUE
;
2966 OpenProfileUserMapping (VOID
)
2968 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2976 DWORD dwDesiredAccess
,
2977 WINBOOL bInheritHandle
,
2981 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2982 return INVALID_HANDLE_VALUE
;
2989 DWORD dwDesiredAccess
,
2990 WINBOOL bInheritHandle
,
2994 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
2995 return INVALID_HANDLE_VALUE
;
3005 LPDWORD lpBytesRead
,
3006 LPDWORD lpTotalBytesAvail
,
3007 LPDWORD lpBytesLeftThisMessage
3010 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3023 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3035 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3042 QueryPerformanceCounter (
3043 LARGE_INTEGER
* lpPerformanceCount
3046 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3053 QueryPerformanceFrequency (
3054 LARGE_INTEGER
* lpFrequency
3057 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3064 QueryWin31IniFilesMappedToRegistry (
3071 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3079 DWORD dwExceptionCode
,
3080 DWORD dwExceptionFlags
,
3081 DWORD nNumberOfArguments
,
3082 CONST DWORD
* lpArguments
3085 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3094 RegisterConsoleVDM (
3108 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3115 RegisterWowBaseHandlers (
3119 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3130 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3141 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3151 LPLONG lpPreviousCount
3154 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3167 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3180 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3192 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3204 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3213 LPCOMMTIMEOUTS lpCommTimeouts
3216 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3224 LPCSTR lpComputerName
3227 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3235 LPCWSTR lpComputerName
3238 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3245 SetConsoleCommandHistoryMode (
3249 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3261 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3268 SetConsoleDisplayMode (
3274 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3286 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3293 SetConsoleHardwareState (
3299 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3306 SetConsoleKeyShortcuts (
3313 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3320 SetConsoleMaximumWindowSize (
3325 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3332 SetConsoleMenuClose (
3336 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3343 SetConsoleNumberOfCommandsA (
3348 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3355 SetConsoleNumberOfCommandsW (
3360 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3373 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3380 SetDefaultCommConfigA (
3386 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3393 SetDefaultCommConfigW (
3399 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3406 SetLastConsoleEventActive (VOID
)
3408 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3421 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3434 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3446 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3453 SetNamedPipeHandleState (
3456 LPDWORD lpMaxCollectionCount
,
3457 LPDWORD lpCollectDataTimeout
3460 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3467 SetProcessShutdownParameters (
3472 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3479 SetProcessWorkingSetSize (
3481 DWORD dwMinimumWorkingSetSize
,
3482 DWORD dwMaximumWorkingSetSize
3485 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3492 SetSystemPowerState (
3497 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3507 LPVOID lpTapeInformation
3510 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3519 DWORD dwPositionMethod
,
3526 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3537 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3544 SetVDMCurrentDirectories (
3549 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3562 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3574 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3591 DWORD nInBufferSize
,
3593 DWORD nOutBufferSize
,
3594 LPDWORD lpBytesRead
,
3595 LPOVERLAPPED lpOverlapped
3598 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3610 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3621 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3637 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3653 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3660 VDMConsoleOperation (
3665 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3672 VDMOperationStarted (
3676 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3689 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3702 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3709 VerifyConsoleIoHandle (
3713 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3720 VirtualBufferExceptionHandler (
3726 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3736 LPOVERLAPPED lpOverlapped
3739 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3747 LPCSTR lpNamedPipeName
,
3751 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3759 LPCWSTR lpNamedPipeName
,
3763 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3770 WideCharToMultiByte (
3773 LPCWSTR lpWideCharStr
,
3775 LPSTR lpMultiByteStr
,
3777 LPCSTR lpDefaultChar
,
3778 LPBOOL lpUsedDefaultChar
3781 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3788 WriteConsoleInputVDMA (
3795 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3802 WriteConsoleInputVDMW (
3809 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3816 WritePrivateProfileSectionA (
3822 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3829 WritePrivateProfileSectionW (
3835 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3842 WritePrivateProfileStringA (
3849 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3856 WritePrivateProfileStringW (
3863 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3870 WritePrivateProfileStructA (
3878 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3885 WritePrivateProfileStructW (
3893 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3902 WriteProfileSectionA (
3907 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3914 WriteProfileSectionW (
3919 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3926 WriteProfileStringA (
3932 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
3939 WriteProfileStringW (
3945 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);