1 /* $Id: stubs.c,v 1.99 2004/12/09 17:28:10 weiden 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
,
422 PULONG_PTR UserPfnArray
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
796 LPTHREAD_START_ROUTINE Function
,
810 ReadDirectoryChangesW(
815 DWORD dwNotifyFilter
,
816 LPDWORD lpBytesReturned
,
817 LPOVERLAPPED lpOverlapped
,
818 LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
832 FILE_SEGMENT_ELEMENT aSegmentArray
[],
833 DWORD nNumberOfBytesToRead
,
835 LPOVERLAPPED lpOverlapped
847 RegisterWaitForSingleObject(
848 PHANDLE phNewWaitObject
,
850 WAITORTIMERCALLBACK Callback
,
852 ULONG dwMilliseconds
,
865 RegisterWaitForSingleObjectEx(
867 WAITORTIMERCALLBACK Callback
,
869 ULONG dwMilliseconds
,
894 RemoveVectoredExceptionHandler(
895 PVOID VectoredHandlerHandle
920 RequestWakeupLatency(
934 LPVOID lpBaseAddress
,
959 SetMessageWaitingIndicator(
960 HANDLE hMsgIndicator
,
973 SetThreadExecutionState(
974 EXECUTION_STATE esFlags
986 TzSpecificLocalTimeToSystemTime(
987 LPTIME_ZONE_INFORMATION lpTimeZoneInformation
,
988 LPSYSTEMTIME lpLocalTime
,
989 LPSYSTEMTIME lpUniversalTime
1016 HANDLE CompletionEvent
1030 FILE_SEGMENT_ELEMENT aSegmentArray
[],
1031 DWORD nNumberOfBytesToWrite
,
1033 LPOVERLAPPED lpOverlapped
1058 DeleteVolumeMountPointW(
1059 LPCWSTR lpszVolumeMountPoint
1071 DnsHostnameToComputerNameW (
1073 LPWSTR ComputerName
,
1086 FindActCtxSectionStringW(
1088 const GUID
*lpExtensionGuid
,
1090 LPCWSTR lpStringToFind
,
1091 PACTCTX_SECTION_KEYED_DATA ReturnedData
1104 LPCWSTR lpszVolumeName
,
1105 DWORD cchBufferLength
1117 FindFirstVolumeMountPointW(
1118 LPWSTR lpszRootPathName
,
1119 LPWSTR lpszVolumeMountPoint
,
1120 DWORD cchBufferLength
1134 LPWSTR lpszVolumeName
,
1135 DWORD cchBufferLength
1147 FindNextVolumeMountPointW(
1148 HANDLE hFindVolumeMountPoint
,
1149 LPWSTR lpszVolumeMountPoint
,
1150 DWORD cchBufferLength
1162 GetFirmwareEnvironmentVariableW(
1179 LPCWSTR lpszShortPath
,
1180 LPWSTR lpszLongPath
,
1195 LPCWSTR lpModuleName
,
1208 GetSystemWow64DirectoryW(
1222 GetVolumeNameForVolumeMountPointW(
1223 LPCWSTR lpszVolumeMountPoint
,
1224 LPWSTR lpszVolumeName
,
1225 DWORD cchBufferLength
1238 LPCWSTR lpszFileName
,
1239 LPWSTR lpszVolumePathName
,
1240 DWORD cchBufferLength
1252 GetVolumePathNamesForVolumeNameW(
1253 LPCWSTR lpszVolumeName
,
1254 LPWSTR lpszVolumePathNames
,
1255 DWORD cchBufferLength
,
1256 PDWORD lpcchReturnLength
1269 LPCWSTR lpReplacedFileName
,
1270 LPCWSTR lpReplacementFileName
,
1271 LPCWSTR lpBackupFileName
,
1272 DWORD dwReplaceFlags
,
1286 SetComputerNameExW (
1287 COMPUTER_NAME_FORMAT NameType
,
1300 SetFirmwareEnvironmentVariableW(
1316 SetVolumeMountPointW(
1317 LPCWSTR lpszVolumeMountPoint
,
1318 LPCWSTR lpszVolumeName
1331 LPOSVERSIONINFOEXW lpVersionInformation
,
1333 DWORDLONG dwlConditionMask
1345 DeleteVolumeMountPointA(
1346 LPCSTR lpszVolumeMountPoint
1358 DnsHostnameToComputerNameA (
1373 FindActCtxSectionStringA(
1375 const GUID
*lpExtensionGuid
,
1377 LPCSTR lpStringToFind
,
1378 PACTCTX_SECTION_KEYED_DATA ReturnedData
1391 LPCSTR lpszVolumeName
,
1392 DWORD cchBufferLength
1404 FindFirstVolumeMountPointA(
1405 LPSTR lpszRootPathName
,
1406 LPSTR lpszVolumeMountPoint
,
1407 DWORD cchBufferLength
1421 LPCSTR lpszVolumeName
,
1422 DWORD cchBufferLength
1434 FindNextVolumeMountPointA(
1435 HANDLE hFindVolumeMountPoint
,
1436 LPSTR lpszVolumeMountPoint
,
1437 DWORD cchBufferLength
1449 GetFirmwareEnvironmentVariableA(
1466 LPCSTR lpszShortPath
,
1482 LPCSTR lpModuleName
,
1495 GetSystemWow64DirectoryA(
1509 GetVolumeNameForVolumeMountPointA(
1510 LPCSTR lpszVolumeMountPoint
,
1511 LPSTR lpszVolumeName
,
1512 DWORD cchBufferLength
1525 LPCSTR lpszFileName
,
1526 LPSTR lpszVolumePathName
,
1527 DWORD cchBufferLength
1539 GetVolumePathNamesForVolumeNameA(
1540 LPCSTR lpszVolumeName
,
1541 LPSTR lpszVolumePathNames
,
1542 DWORD cchBufferLength
,
1543 PDWORD lpcchReturnLength
1556 LPCSTR lpReplacedFileName
,
1557 LPCSTR lpReplacementFileName
,
1558 LPCSTR lpBackupFileName
,
1559 DWORD dwReplaceFlags
,
1573 SetComputerNameExA (
1574 COMPUTER_NAME_FORMAT NameType
,
1587 SetFirmwareEnvironmentVariableA(
1603 SetVolumeMountPointA(
1604 LPCSTR lpszVolumeMountPoint
,
1605 LPCSTR lpszVolumeName
1618 LPOSVERSIONINFOEXA lpVersionInformation
,
1620 DWORDLONG dwlConditionMask
1632 VerSetConditionMask(
1633 ULONGLONG ConditionMask
,
1645 BOOL STDCALL
GetConsoleKeyboardLayoutNameA(LPSTR name
)
1654 BOOL STDCALL
GetConsoleKeyboardLayoutNameW(LPWSTR name
)
1663 DWORD STDCALL
GetHandleContext(HANDLE hnd
)
1672 HANDLE STDCALL
CreateSocketHandle(VOID
)
1681 BOOL STDCALL
SetHandleContext(HANDLE hnd
,DWORD context
)
1690 BOOL STDCALL
SetConsoleInputExeNameA(LPCSTR name
)
1699 BOOL STDCALL
SetConsoleInputExeNameW(LPCWSTR name
)
1708 BOOL STDCALL
UTRegister( HMODULE hModule
, LPSTR lpsz16BITDLL
,
1709 LPSTR lpszInitName
, LPSTR lpszProcName
,
1710 FARPROC
*ppfn32Thunk
, FARPROC pfnUT32CallBack
,
1720 VOID STDCALL
UTUnRegister( HMODULE hModule
)
1729 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PDelayLoadInfo pdli
)
1731 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PVOID pdli
)
1741 NTSTATUS STDCALL
CreateNlsSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor
,ULONG Size
,ULONG AccessMask
)
1750 BOOL STDCALL
GetConsoleInputExeNameA(ULONG length
,LPCSTR name
)
1759 BOOL STDCALL
GetConsoleInputExeNameW(ULONG length
,LPCWSTR name
)
1768 BOOL STDCALL
IsValidUILanguage(LANGID langid
)
1777 VOID STDCALL
NlsConvertIntegerToString(ULONG Value
,ULONG Base
,ULONG strsize
, LPWSTR str
, ULONG strsize2
)
1785 UINT STDCALL
SetCPGlobal(UINT CodePage
)
1796 SetClientTimeZoneInformation(
1797 CONST TIME_ZONE_INFORMATION
*lpTimeZoneInformation