2 * KERNEL32.DLL stubs (STUB functions)
3 * Remove from this file, if you implement them.
12 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
13 DPRINT1("%s() is UNIMPLEMENTED!\n", __FUNCTION__)
20 BaseAttachCompleteThunk (VOID
)
30 BaseDumpAppcompatCache(VOID
)
39 BaseFlushAppcompatCache(VOID
)
49 BaseCheckAppcompatCache(ULONG Unknown1
,
55 if (Unknown4
) *Unknown4
= 0;
63 BaseUpdateAppcompatCache(ULONG Unknown1
, ULONG Unknown2
, ULONG Unknown3
)
118 ExtendVirtualBuffer (
170 HANDLE hVirtualBuffer
197 GetSystemPowerStatus (
198 LPSYSTEM_POWER_STATUS PowerStatus
202 PowerStatus
->ACLineStatus
= 1;
203 PowerStatus
->BatteryFlag
= 128;
204 PowerStatus
->BatteryLifePercent
= 255;
205 PowerStatus
->Reserved1
= 0;
206 PowerStatus
->BatteryLifeTime
= -1;
207 PowerStatus
->BatteryFullLifeTime
= -1;
217 GetVDMCurrentDirectories (
256 RegisterWowBaseHandlers (
283 SetSystemPowerState (
298 SetVDMCurrentDirectories (
327 VDMConsoleOperation (
342 VDMOperationStarted (
355 VirtualBufferExceptionHandler (
370 AllocateUserPhysicalPages(
372 PULONG_PTR NumberOfPages
,
373 PULONG_PTR UserPfnArray
385 BindIoCompletionCallback (
387 LPOVERLAPPED_COMPLETION_ROUTINE Function
,
400 CancelDeviceWakeupRequest(
415 PJOB_SET_ARRAY UserJobSet
,
427 FindVolumeMountPointClose(
428 HANDLE hFindVolumeMountPoint
440 FreeUserPhysicalPages(
442 PULONG_PTR NumberOfPages
,
470 GetNumaHighestNodeNumber(
471 PULONG HighestNodeNumber
483 GetNumaNodeProcessorMask(
485 PULONGLONG ProcessorMask
497 GetNumaProcessorNode(
516 PULONG_PTR lpdwCount
,
517 PULONG lpdwGranularity
529 HeapQueryInformation (
531 HEAP_INFORMATION_CLASS HeapInformationClass
,
532 PVOID HeapInformation OPTIONAL
,
533 SIZE_T HeapInformationLength OPTIONAL
,
534 PSIZE_T ReturnLength OPTIONAL
548 HEAP_INFORMATION_CLASS HeapInformationClass
,
549 PVOID HeapInformation OPTIONAL
,
550 SIZE_T HeapInformationLength OPTIONAL
562 IsSystemResumeAutomatic(
581 *Wow64Process
= FALSE
;
590 MapUserPhysicalPages(
591 PVOID VirtualAddress
,
592 ULONG_PTR NumberOfPages
,
593 PULONG_PTR PageArray OPTIONAL
605 MapUserPhysicalPagesScatter(
606 PVOID
*VirtualAddresses
,
607 ULONG_PTR NumberOfPages
,
608 PULONG_PTR PageArray OPTIONAL
622 FILE_SEGMENT_ELEMENT aSegmentArray
[],
623 DWORD nNumberOfBytesToRead
,
625 LPOVERLAPPED lpOverlapped
637 RemoveVectoredExceptionHandler(
638 PVOID VectoredHandlerHandle
663 RequestWakeupLatency(
677 LPVOID lpBaseAddress
,
702 SetMessageWaitingIndicator(
703 HANDLE hMsgIndicator
,
716 SetThreadExecutionState(
717 EXECUTION_STATE esFlags
720 static EXECUTION_STATE current
=
721 ES_SYSTEM_REQUIRED
| ES_DISPLAY_REQUIRED
| ES_USER_PRESENT
;
722 EXECUTION_STATE old
= current
;
724 DPRINT1("(0x%x): stub, harmless.\n", esFlags
);
726 if (!(current
& ES_CONTINUOUS
) || (esFlags
& ES_CONTINUOUS
))
738 FILE_SEGMENT_ELEMENT aSegmentArray
[],
739 DWORD nNumberOfBytesToWrite
,
741 LPOVERLAPPED lpOverlapped
753 DeleteVolumeMountPointW(
754 LPCWSTR lpszVolumeMountPoint
766 DnsHostnameToComputerNameW (
774 DPRINT("(%s, %p, %p): stub\n", hostname
, computername
, size
);
776 if (!hostname
|| !size
) return FALSE
;
777 len
= lstrlenW(hostname
);
779 if (len
> MAX_COMPUTERNAME_LENGTH
)
780 len
= MAX_COMPUTERNAME_LENGTH
;
787 if (!computername
) return FALSE
;
789 memcpy( computername
, hostname
, len
* sizeof(WCHAR
) );
790 computername
[len
+ 1] = 0;
799 FindFirstVolumeMountPointW(
800 LPCWSTR lpszRootPathName
,
801 LPWSTR lpszVolumeMountPoint
,
802 DWORD cchBufferLength
820 MOUNTMGR_MOUNT_POINTS
*data
= handle
;
822 while (data
->Size
< data
->NumberOfMountPoints
)
824 static const WCHAR volumeW
[] = {'\\','?','?','\\','V','o','l','u','m','e','{',};
825 WCHAR
*link
= (WCHAR
*)((char *)data
+ data
->MountPoints
[data
->Size
].SymbolicLinkNameOffset
);
826 DWORD size
= data
->MountPoints
[data
->Size
].SymbolicLinkNameLength
;
828 /* skip non-volumes */
829 if (size
< sizeof(volumeW
) || memcmp( link
, volumeW
, sizeof(volumeW
) )) continue;
830 if (size
+ sizeof(WCHAR
) >= len
* sizeof(WCHAR
))
832 SetLastError( ERROR_FILENAME_EXCED_RANGE
);
835 memcpy( volume
, link
, size
);
836 volume
[1] = '\\'; /* map \??\ to \\?\ */
837 volume
[size
/ sizeof(WCHAR
)] = '\\'; /* Windows appends a backslash */
838 volume
[size
/ sizeof(WCHAR
) + 1] = 0;
839 DPRINT( "returning entry %u %s\n", data
->Size
- 1, volume
);
842 SetLastError( ERROR_NO_MORE_FILES
);
851 FindNextVolumeMountPointW(
852 HANDLE hFindVolumeMountPoint
,
853 LPWSTR lpszVolumeMountPoint
,
854 DWORD cchBufferLength
866 GetFirmwareEnvironmentVariableW(
883 LPCWSTR lpszFileName
,
884 LPWSTR lpszVolumePathName
,
885 DWORD cchBufferLength
889 SetLastError(ERROR_CALL_NOT_IMPLEMENTED
);
898 GetVolumePathNamesForVolumeNameW(
899 LPCWSTR lpszVolumeName
,
900 LPWSTR lpszVolumePathNames
,
901 DWORD cchBufferLength
,
902 PDWORD lpcchReturnLength
915 LPCWSTR lpReplacedFileName
,
916 LPCWSTR lpReplacementFileName
,
917 LPCWSTR lpBackupFileName
,
918 DWORD dwReplaceFlags
,
932 SetFirmwareEnvironmentVariableW(
948 SetVolumeMountPointW(
949 LPCWSTR lpszVolumeMountPoint
,
950 LPCWSTR lpszVolumeName
962 DeleteVolumeMountPointA(
963 LPCSTR lpszVolumeMountPoint
975 DnsHostnameToComputerNameA (
990 FindFirstVolumeMountPointA(
991 LPCSTR lpszRootPathName
,
992 LPSTR lpszVolumeMountPoint
,
993 DWORD cchBufferLength
1011 WCHAR
*buffer
= HeapAlloc( GetProcessHeap(), 0, len
* sizeof(WCHAR
) );
1014 if ((ret
= FindNextVolumeW( handle
, buffer
, len
)))
1016 if (!WideCharToMultiByte( CP_ACP
, 0, buffer
, -1, volume
, len
, NULL
, NULL
)) ret
= FALSE
;
1018 HeapFree( GetProcessHeap(), 0, buffer
);
1027 FindNextVolumeMountPointA(
1028 HANDLE hFindVolumeMountPoint
,
1029 LPSTR lpszVolumeMountPoint
,
1030 DWORD cchBufferLength
1042 GetFirmwareEnvironmentVariableA(
1059 LPCSTR lpszFileName
,
1060 LPSTR lpszVolumePathName
,
1061 DWORD cchBufferLength
1073 GetVolumePathNamesForVolumeNameA(
1074 LPCSTR lpszVolumeName
,
1075 LPSTR lpszVolumePathNames
,
1076 DWORD cchBufferLength
,
1077 PDWORD lpcchReturnLength
1090 LPCSTR lpReplacedFileName
,
1091 LPCSTR lpReplacementFileName
,
1092 LPCSTR lpBackupFileName
,
1093 DWORD dwReplaceFlags
,
1107 SetFirmwareEnvironmentVariableA(
1123 SetVolumeMountPointA(
1124 LPCSTR lpszVolumeMountPoint
,
1125 LPCSTR lpszVolumeName
1135 BOOL STDCALL
GetConsoleKeyboardLayoutNameA(LPSTR name
)
1144 BOOL STDCALL
GetConsoleKeyboardLayoutNameW(LPWSTR name
)
1153 DWORD STDCALL
GetHandleContext(HANDLE hnd
)
1162 HANDLE STDCALL
CreateSocketHandle(VOID
)
1171 BOOL STDCALL
SetHandleContext(HANDLE hnd
,DWORD context
)
1180 BOOL STDCALL
UTRegister( HMODULE hModule
, LPSTR lpsz16BITDLL
,
1181 LPSTR lpszInitName
, LPSTR lpszProcName
,
1182 FARPROC
*ppfn32Thunk
, FARPROC pfnUT32CallBack
,
1192 VOID STDCALL
UTUnRegister( HMODULE hModule
)
1201 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PDelayLoadInfo pdli
)
1203 FARPROC STDCALL
DelayLoadFailureHook(unsigned int dliNotify
, PVOID pdli
)
1213 NTSTATUS STDCALL
CreateNlsSecurityDescriptor(PSECURITY_DESCRIPTOR SecurityDescriptor
,ULONG Size
,ULONG AccessMask
)
1222 BOOL STDCALL
IsValidUILanguage(LANGID langid
)
1231 VOID STDCALL
NlsConvertIntegerToString(ULONG Value
,ULONG Base
,ULONG strsize
, LPWSTR str
, ULONG strsize2
)
1239 UINT STDCALL
SetCPGlobal(UINT CodePage
)
1250 SetClientTimeZoneInformation(
1251 CONST TIME_ZONE_INFORMATION
*lpTimeZoneInformation
)
1259 NlsGetCacheUpdateCount(VOID
)
1267 Wow64EnableWow64FsRedirection (BOOL Wow64EnableWow64FsRedirection
)
1275 Wow64DisableWow64FsRedirection (VOID
** pv
)
1283 Wow64RevertWow64FsRedirection (VOID
* pv
)
1291 EnumSystemFirmwareTables(IN DWORD FirmwareTableProviderSignature
,
1292 OUT PVOID pFirmwareTableBuffer
,
1293 IN DWORD BufferSize
)
1301 GetSystemFileCacheSize(OUT PSIZE_T lpMinimumFileCacheSize
,
1302 OUT PSIZE_T lpMaximumFileCacheSize
,
1311 GetSystemFirmwareTable(IN DWORD FirmwareTableProviderSignature
,
1312 IN DWORD FirmwareTableID
,
1313 OUT PVOID pFirmwareTableBuffer
,
1314 IN DWORD BufferSize
)
1322 SetSystemFileCacheSize(IN SIZE_T MinimumFileCacheSize
,
1323 IN SIZE_T MaximumFileCacheSize
,
1332 SetThreadStackGuarantee(IN OUT PULONG StackSizeInBytes
)
1340 ReOpenFile(IN HANDLE hOriginalFile
,
1341 IN DWORD dwDesiredAccess
,
1342 IN DWORD dwShareMode
,
1346 return INVALID_HANDLE_VALUE
;
1351 SetProcessWorkingSetSizeEx(IN HANDLE hProcess
,
1352 IN SIZE_T dwMinimumWorkingSetSize
,
1353 IN SIZE_T dwMaximumWorkingSetSize
,
1363 GetProcessWorkingSetSizeEx(IN HANDLE hProcess
,
1364 OUT PSIZE_T lpMinimumWorkingSetSize
,
1365 OUT PSIZE_T lpMaximumWorkingSetSize
,
1374 GetLogicalProcessorInformation(OUT PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer
,
1375 IN OUT PDWORD ReturnLength
)
1383 GetNumaAvailableMemoryNode(IN UCHAR Node
,
1384 OUT PULONGLONG AvailableBytes
)
1390 BOOL WINAPI
TermsrvAppInstallMode(void)
1396 DWORD WINAPI
SetTermsrvAppInstallMode(BOOL bInstallMode
)