1 /* $Id: stubs.c,v 1.97 2004/12/04 19:45:56 navaraf 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
1163 DWORD nBufferLength
,
1176 GetFirmwareEnvironmentVariableW(
1193 LPCWSTR lpszShortPath
,
1194 LPWSTR lpszLongPath
,
1209 LPCWSTR lpModuleName
,
1222 GetSystemWow64DirectoryW(
1236 GetVolumeNameForVolumeMountPointW(
1237 LPCWSTR lpszVolumeMountPoint
,
1238 LPWSTR lpszVolumeName
,
1239 DWORD cchBufferLength
1252 LPCWSTR lpszFileName
,
1253 LPWSTR lpszVolumePathName
,
1254 DWORD cchBufferLength
1266 GetVolumePathNamesForVolumeNameW(
1267 LPCWSTR lpszVolumeName
,
1268 LPWSTR lpszVolumePathNames
,
1269 DWORD cchBufferLength
,
1270 PDWORD lpcchReturnLength
1283 LPCWSTR lpReplacedFileName
,
1284 LPCWSTR lpReplacementFileName
,
1285 LPCWSTR lpBackupFileName
,
1286 DWORD dwReplaceFlags
,
1300 SetComputerNameExW (
1301 COMPUTER_NAME_FORMAT NameType
,
1327 SetFirmwareEnvironmentVariableW(
1343 SetVolumeMountPointW(
1344 LPCWSTR lpszVolumeMountPoint
,
1345 LPCWSTR lpszVolumeName
1358 LPOSVERSIONINFOEXW lpVersionInformation
,
1360 DWORDLONG dwlConditionMask
1372 DeleteVolumeMountPointA(
1373 LPCSTR lpszVolumeMountPoint
1385 DnsHostnameToComputerNameA (
1400 FindActCtxSectionStringA(
1402 const GUID
*lpExtensionGuid
,
1404 LPCSTR lpStringToFind
,
1405 PACTCTX_SECTION_KEYED_DATA ReturnedData
1418 LPCSTR lpszVolumeName
,
1419 DWORD cchBufferLength
1431 FindFirstVolumeMountPointA(
1432 LPSTR lpszRootPathName
,
1433 LPSTR lpszVolumeMountPoint
,
1434 DWORD cchBufferLength
1448 LPCSTR lpszVolumeName
,
1449 DWORD cchBufferLength
1461 FindNextVolumeMountPointA(
1462 HANDLE hFindVolumeMountPoint
,
1463 LPSTR lpszVolumeMountPoint
,
1464 DWORD cchBufferLength
1477 DWORD nBufferLength
,
1490 GetFirmwareEnvironmentVariableA(
1507 LPCSTR lpszShortPath
,
1523 LPCSTR lpModuleName
,
1536 GetSystemWow64DirectoryA(
1550 GetVolumeNameForVolumeMountPointA(
1551 LPCSTR lpszVolumeMountPoint
,
1552 LPSTR lpszVolumeName
,
1553 DWORD cchBufferLength
1566 LPCSTR lpszFileName
,
1567 LPSTR lpszVolumePathName
,
1568 DWORD cchBufferLength
1580 GetVolumePathNamesForVolumeNameA(
1581 LPCSTR lpszVolumeName
,
1582 LPSTR lpszVolumePathNames
,
1583 DWORD cchBufferLength
,
1584 PDWORD lpcchReturnLength
1597 LPCSTR lpReplacedFileName
,
1598 LPCSTR lpReplacementFileName
,
1599 LPCSTR lpBackupFileName
,
1600 DWORD dwReplaceFlags
,
1614 SetComputerNameExA (
1615 COMPUTER_NAME_FORMAT NameType
,
1641 SetFirmwareEnvironmentVariableA(
1657 SetVolumeMountPointA(
1658 LPCSTR lpszVolumeMountPoint
,
1659 LPCSTR lpszVolumeName
1672 LPOSVERSIONINFOEXA lpVersionInformation
,
1674 DWORDLONG dwlConditionMask
1686 VerSetConditionMask(
1687 ULONGLONG ConditionMask
,
1699 BOOL STDCALL
GetConsoleKeyboardLayoutNameA(LPSTR name
)
1708 BOOL STDCALL
GetConsoleKeyboardLayoutNameW(LPWSTR name
)
1717 DWORD STDCALL
GetHandleContext(HANDLE hnd
)
1726 HANDLE STDCALL
CreateSocketHandle(VOID
)
1735 BOOL STDCALL
SetHandleContext(HANDLE hnd
,DWORD context
)
1744 BOOL STDCALL
SetConsoleInputExeNameA(LPCSTR name
)
1753 BOOL STDCALL
SetConsoleInputExeNameW(LPCWSTR name
)
1762 BOOL STDCALL
UTRegister( HMODULE hModule
, LPSTR lpsz16BITDLL
,
1763 LPSTR lpszInitName
, LPSTR lpszProcName
,
1764 FARPROC
*ppfn32Thunk
, FARPROC pfnUT32CallBack
,
1774 VOID STDCALL
UTUnRegister( HMODULE hModule
)
1783 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PDelayLoadInfo pdli
)
1785 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PVOID pdli
)
1795 NTSTATUS STDCALL
CreateNlsSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor
,ULONG Size
,ULONG AccessMask
)
1804 BOOL STDCALL
GetConsoleInputExeNameA(ULONG length
,LPCSTR name
)
1813 BOOL STDCALL
GetConsoleInputExeNameW(ULONG length
,LPCWSTR name
)
1822 BOOL STDCALL
IsValidUILanguage(LANGID langid
)
1831 VOID STDCALL
NlsConvertIntegerToString(ULONG Value
,ULONG Base
,ULONG strsize
, LPWSTR str
, ULONG strsize2
)
1839 UINT STDCALL
SetCPGlobal(UINT CodePage
)
1850 SetClientTimeZoneInformation(
1851 CONST TIME_ZONE_INFORMATION
*lpTimeZoneInformation