1 /* $Id: stubs.c,v 1.95 2004/12/04 13:59:41 ekohl Exp $
3 * KERNEL32.DLL stubs (STUB functions)
4 * Remove from this file, if you implement them.
10 #include "../include/debug.h"
14 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
15 DPRINT1("%s() is UNIMPLEMENTED!\n", __FUNCTION__)
22 BaseAttachCompleteThunk (VOID
)
32 BaseDumpAppcompatCache(VOID
)
41 BaseFlushAppcompatCache(VOID
)
50 BaseCheckAppcompatCache(ULONG Unknown1
, ULONG Unknown2
, ULONG Unknown3
, ULONG Unknown4
)
59 BaseUpdateAppcompatCache(ULONG Unknown1
, ULONG Unknown2
, ULONG Unknown3
)
114 ExtendVirtualBuffer (
166 HANDLE hVirtualBuffer
193 GetSystemPowerStatus (
194 LPSYSTEM_POWER_STATUS PowerStatus
207 GetVDMCurrentDirectories (
246 RegisterWowBaseHandlers (
273 SetSystemPowerState (
288 SetVDMCurrentDirectories (
317 VDMConsoleOperation (
332 VDMOperationStarted (
378 VirtualBufferExceptionHandler (
419 AllocateUserPhysicalPages(
421 PULONG_PTR NumberOfPages
,
434 BindIoCompletionCallback (
436 LPOVERLAPPED_COMPLETION_ROUTINE Function
,
449 CancelDeviceWakeupRequest(
491 PJOB_SET_ARRAY UserJobSet
,
517 FindActCtxSectionGuid(
519 const GUID
*lpExtensionGuid
,
521 const GUID
*lpGuidToFind
,
522 PACTCTX_SECTION_KEYED_DATA ReturnedData
547 FindVolumeMountPointClose(
548 HANDLE hFindVolumeMountPoint
560 FreeUserPhysicalPages(
562 PULONG_PTR NumberOfPages
,
602 LPSYSTEM_INFO lpSystemInfo
613 GetNumaHighestNodeNumber(
614 PULONG HighestNodeNumber
626 GetNumaNodeProcessorMask(
628 PULONGLONG ProcessorMask
640 GetNumaProcessorNode(
654 GetThreadIOPendingFlag(
673 PULONG_PTR lpdwCount
,
674 PULONG lpdwGranularity
686 HeapQueryInformation (
688 HEAP_INFORMATION_CLASS HeapInformationClass
,
689 PVOID HeapInformation OPTIONAL
,
690 SIZE_T HeapInformationLength OPTIONAL
,
691 PSIZE_T ReturnLength OPTIONAL
705 HEAP_INFORMATION_CLASS HeapInformationClass
,
706 PVOID HeapInformation OPTIONAL
,
707 SIZE_T HeapInformationLength OPTIONAL
719 IsSystemResumeAutomatic(
746 MapUserPhysicalPages(
747 PVOID VirtualAddress
,
748 ULONG_PTR NumberOfPages
,
749 PULONG_PTR PageArray OPTIONAL
761 MapUserPhysicalPagesScatter(
762 PVOID
*VirtualAddresses
,
763 ULONG_PTR NumberOfPages
,
764 PULONG_PTR PageArray OPTIONAL
782 SIZE_T cbBuffer OPTIONAL
,
783 SIZE_T
*pcbWrittenOrRequired OPTIONAL
811 LPTHREAD_START_ROUTINE Function
,
825 ReadDirectoryChangesW(
830 DWORD dwNotifyFilter
,
831 LPDWORD lpBytesReturned
,
832 LPOVERLAPPED lpOverlapped
,
833 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
847 FILE_SEGMENT_ELEMENT aSegmentArray
[],
848 DWORD nNumberOfBytesToRead
,
850 LPOVERLAPPED lpOverlapped
862 RegisterWaitForSingleObject(
863 PHANDLE phNewWaitObject
,
865 WAITORTIMERCALLBACK Callback
,
867 ULONG dwMilliseconds
,
880 RegisterWaitForSingleObjectEx(
882 WAITORTIMERCALLBACK Callback
,
884 ULONG dwMilliseconds
,
909 RemoveVectoredExceptionHandler(
910 PVOID VectoredHandlerHandle
935 RequestWakeupLatency(
949 LPVOID lpBaseAddress
,
974 SetMessageWaitingIndicator(
975 HANDLE hMsgIndicator
,
988 SetThreadExecutionState(
989 EXECUTION_STATE esFlags
1001 TzSpecificLocalTimeToSystemTime(
1002 LPTIME_ZONE_INFORMATION lpTimeZoneInformation
,
1003 LPSYSTEMTIME lpLocalTime
,
1004 LPSYSTEMTIME lpUniversalTime
1031 HANDLE CompletionEvent
1045 FILE_SEGMENT_ELEMENT aSegmentArray
[],
1046 DWORD nNumberOfBytesToWrite
,
1048 LPOVERLAPPED lpOverlapped
1073 DeleteVolumeMountPointW(
1074 LPCWSTR lpszVolumeMountPoint
1086 DnsHostnameToComputerNameW (
1088 LPWSTR ComputerName
,
1101 FindActCtxSectionStringW(
1103 const GUID
*lpExtensionGuid
,
1105 LPCWSTR lpStringToFind
,
1106 PACTCTX_SECTION_KEYED_DATA ReturnedData
1119 LPCWSTR lpszVolumeName
,
1120 DWORD cchBufferLength
1132 FindFirstVolumeMountPointW(
1133 LPWSTR lpszRootPathName
,
1134 LPWSTR lpszVolumeMountPoint
,
1135 DWORD cchBufferLength
1149 LPWSTR lpszVolumeName
,
1150 DWORD cchBufferLength
1162 FindNextVolumeMountPointW(
1163 HANDLE hFindVolumeMountPoint
,
1164 LPWSTR lpszVolumeMountPoint
,
1165 DWORD cchBufferLength
1178 DWORD nBufferLength
,
1191 GetFirmwareEnvironmentVariableW(
1208 LPCWSTR lpszShortPath
,
1209 LPWSTR lpszLongPath
,
1224 LPCWSTR lpModuleName
,
1237 GetSystemWow64DirectoryW(
1251 GetVolumeNameForVolumeMountPointW(
1252 LPCWSTR lpszVolumeMountPoint
,
1253 LPWSTR lpszVolumeName
,
1254 DWORD cchBufferLength
1267 LPCWSTR lpszFileName
,
1268 LPWSTR lpszVolumePathName
,
1269 DWORD cchBufferLength
1281 GetVolumePathNamesForVolumeNameW(
1282 LPCWSTR lpszVolumeName
,
1283 LPWSTR lpszVolumePathNames
,
1284 DWORD cchBufferLength
,
1285 PDWORD lpcchReturnLength
1298 LPCWSTR lpReplacedFileName
,
1299 LPCWSTR lpReplacementFileName
,
1300 LPCWSTR lpBackupFileName
,
1301 DWORD dwReplaceFlags
,
1315 SetComputerNameExW (
1316 COMPUTER_NAME_FORMAT NameType
,
1342 SetFirmwareEnvironmentVariableW(
1358 SetVolumeMountPointW(
1359 LPCWSTR lpszVolumeMountPoint
,
1360 LPCWSTR lpszVolumeName
1373 LPOSVERSIONINFOEXW lpVersionInformation
,
1375 DWORDLONG dwlConditionMask
1387 DeleteVolumeMountPointA(
1388 LPCSTR lpszVolumeMountPoint
1400 DnsHostnameToComputerNameA (
1415 FindActCtxSectionStringA(
1417 const GUID
*lpExtensionGuid
,
1419 LPCSTR lpStringToFind
,
1420 PACTCTX_SECTION_KEYED_DATA ReturnedData
1433 LPCSTR lpszVolumeName
,
1434 DWORD cchBufferLength
1446 FindFirstVolumeMountPointA(
1447 LPSTR lpszRootPathName
,
1448 LPSTR lpszVolumeMountPoint
,
1449 DWORD cchBufferLength
1463 LPCSTR lpszVolumeName
,
1464 DWORD cchBufferLength
1476 FindNextVolumeMountPointA(
1477 HANDLE hFindVolumeMountPoint
,
1478 LPSTR lpszVolumeMountPoint
,
1479 DWORD cchBufferLength
1492 DWORD nBufferLength
,
1505 GetFirmwareEnvironmentVariableA(
1522 LPCSTR lpszShortPath
,
1538 LPCSTR lpModuleName
,
1551 GetSystemWow64DirectoryA(
1565 GetVolumeNameForVolumeMountPointA(
1566 LPCSTR lpszVolumeMountPoint
,
1567 LPSTR lpszVolumeName
,
1568 DWORD cchBufferLength
1581 LPCSTR lpszFileName
,
1582 LPSTR lpszVolumePathName
,
1583 DWORD cchBufferLength
1595 GetVolumePathNamesForVolumeNameA(
1596 LPCSTR lpszVolumeName
,
1597 LPSTR lpszVolumePathNames
,
1598 DWORD cchBufferLength
,
1599 PDWORD lpcchReturnLength
1612 LPCSTR lpReplacedFileName
,
1613 LPCSTR lpReplacementFileName
,
1614 LPCSTR lpBackupFileName
,
1615 DWORD dwReplaceFlags
,
1629 SetComputerNameExA (
1630 COMPUTER_NAME_FORMAT NameType
,
1656 SetFirmwareEnvironmentVariableA(
1672 SetVolumeMountPointA(
1673 LPCSTR lpszVolumeMountPoint
,
1674 LPCSTR lpszVolumeName
1687 LPOSVERSIONINFOEXA lpVersionInformation
,
1689 DWORDLONG dwlConditionMask
1701 VerSetConditionMask(
1702 ULONGLONG ConditionMask
,
1714 BOOL STDCALL
GetConsoleKeyboardLayoutNameA(LPSTR name
)
1723 BOOL STDCALL
GetConsoleKeyboardLayoutNameW(LPWSTR name
)
1732 DWORD STDCALL
GetHandleContext(HANDLE hnd
)
1741 HANDLE STDCALL
CreateSocketHandle(VOID
)
1750 BOOL STDCALL
SetHandleContext(HANDLE hnd
,DWORD context
)
1759 BOOL STDCALL
SetConsoleInputExeNameA(LPCSTR name
)
1768 BOOL STDCALL
SetConsoleInputExeNameW(LPCWSTR name
)
1777 BOOL STDCALL
UTRegister( HMODULE hModule
, LPSTR lpsz16BITDLL
,
1778 LPSTR lpszInitName
, LPSTR lpszProcName
,
1779 FARPROC
*ppfn32Thunk
, FARPROC pfnUT32CallBack
,
1789 VOID STDCALL
UTUnRegister( HMODULE hModule
)
1798 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PDelayLoadInfo pdli
)
1800 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PVOID pdli
)
1810 NTSTATUS STDCALL
CreateNlsSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor
,ULONG Size
,ULONG AccessMask
)
1819 BOOL STDCALL
GetConsoleInputExeNameA(ULONG length
,LPCSTR name
)
1828 BOOL STDCALL
GetConsoleInputExeNameW(ULONG length
,LPCWSTR name
)
1837 BOOL STDCALL
IsValidUILanguage(LANGID langid
)
1846 VOID STDCALL
NlsConvertIntegerToString(ULONG Value
,ULONG Base
,ULONG strsize
, LPWSTR str
, ULONG strsize2
)
1854 UINT STDCALL
SetCPGlobal(UINT CodePage
)
1865 SetClientTimeZoneInformation(
1866 CONST TIME_ZONE_INFORMATION
*lpTimeZoneInformation