-/* $Id: stubs.c,v 1.93 2004/10/04 19:17:58 gvg Exp $
- *
+/*
* KERNEL32.DLL stubs (STUB functions)
* Remove from this file, if you implement them.
*/
}
-/*
- * @unimplemented
- */
-int
-STDCALL
-CompareStringA (
- LCID Locale,
- DWORD dwCmpFlags,
- LPCSTR lpString1,
- int cchCount1,
- LPCSTR lpString2,
- int cchCount2
- )
-{
- STUB;
- return 0;
-}
-
-
-/*
- * @unimplemented
- */
-int
-STDCALL
-CompareStringW (
- LCID Locale,
- DWORD dwCmpFlags,
- LPCWSTR lpString1,
- int cchCount1,
- LPCWSTR lpString2,
- int cchCount2
- )
-{
- INT Result;
- UNICODE_STRING String1, String2;
-
- if (!lpString1 || !lpString2)
- {
- SetLastError(ERROR_INVALID_PARAMETER);
- return 0;
- }
-
- if (dwCmpFlags & ~(NORM_IGNORECASE | NORM_IGNORENONSPACE |
- NORM_IGNORESYMBOLS | SORT_STRINGSORT | NORM_IGNOREKANATYPE |
- NORM_IGNOREWIDTH | 0x10000000))
- {
- SetLastError(ERROR_INVALID_FLAGS);
- return 0;
- }
-
- if (dwCmpFlags & ~NORM_IGNORECASE)
- {
- DPRINT1("CompareString: STUB flags - 0x%x\n",
- dwCmpFlags & ~NORM_IGNORECASE);
- }
-
- if (cchCount1 < 0) cchCount1 = lstrlenW(lpString1);
- if (cchCount2 < 0) cchCount2 = lstrlenW(lpString2);
-
- String1.Length = String1.MaximumLength = cchCount1 * sizeof(WCHAR);
- String1.Buffer = (LPWSTR)lpString1;
- String2.Length = String2.MaximumLength = cchCount2 * sizeof(WCHAR);
- String2.Buffer = (LPWSTR)lpString2;
-
- Result = RtlCompareUnicodeString(
- &String1, &String2, dwCmpFlags & NORM_IGNORECASE);
-
- if (Result) /* need to translate result */
- return (Result < 0) ? CSTR_LESS_THAN : CSTR_GREATER_THAN;
-
- return CSTR_EQUAL;
-}
-
-
/*
* @unimplemented
*/
)
{
STUB;
- return 0;
+ PowerStatus->ACLineStatus = 1;
+ PowerStatus->BatteryFlag = 128;
+ PowerStatus->BatteryLifePercent = 255;
+ PowerStatus->Reserved1 = 0;
+ PowerStatus->BatteryLifeTime = -1;
+ PowerStatus->BatteryFullLifeTime = -1;
+ return TRUE;
}
AllocateUserPhysicalPages(
HANDLE hProcess,
PULONG_PTR NumberOfPages,
- PULONG_PTR PageArray
+ PULONG_PTR UserPfnArray
)
{
STUB;
return 0;
}
-
-/*
- * @unimplemented
- */
-HANDLE
-STDCALL
-CreateActCtxA(
- PCACTCTXA pActCtx
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
)
{
STUB;
- return 0;
+ return INVALID_HANDLE_VALUE;
}
/*
return 0;
}
-/*
- * @unimplemented
- */
-VOID
-STDCALL
-GetNativeSystemInfo(
- LPSYSTEM_INFO lpSystemInfo
- )
-{
- STUB;
-}
/*
* @unimplemented
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-GetThreadIOPendingFlag(
- HANDLE hThread,
- PBOOL lpIOIsPending
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
BOOL
STDCALL
HeapQueryInformation (
- HANDLE HeapHandle,
+ HANDLE HeapHandle,
HEAP_INFORMATION_CLASS HeapInformationClass,
PVOID HeapInformation OPTIONAL,
SIZE_T HeapInformationLength OPTIONAL,
BOOL
STDCALL
HeapSetInformation (
- HANDLE HeapHandle,
+ HANDLE HeapHandle,
HEAP_INFORMATION_CLASS HeapInformationClass,
PVOID HeapInformation OPTIONAL,
SIZE_T HeapInformationLength OPTIONAL
)
{
STUB;
- return 0;
+ *Wow64Process = FALSE;
+ return TRUE;
}
/*
MapUserPhysicalPages(
PVOID VirtualAddress,
ULONG_PTR NumberOfPages,
- PULONG_PTR PageArray OPTIONAL
+ PULONG_PTR PageArray OPTIONAL
)
{
STUB;
MapUserPhysicalPagesScatter(
PVOID *VirtualAddresses,
ULONG_PTR NumberOfPages,
- PULONG_PTR PageArray OPTIONAL
+ PULONG_PTR PageArray OPTIONAL
)
{
STUB;
return 0;
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-QueueUserAPC(
- PAPCFUNC pfnAPC,
- HANDLE hThread,
- ULONG_PTR dwData
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-ReadDirectoryChangesW(
- HANDLE hDirectory,
- LPVOID lpBuffer,
- DWORD nBufferLength,
- BOOL bWatchSubtree,
- DWORD dwNotifyFilter,
- LPDWORD lpBytesReturned,
- LPOVERLAPPED lpOverlapped,
- LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
- )
-{
- STUB;
- return 0;
-}
+
+
/*
* @unimplemented
)
{
STUB;
- return 0;
+ return FALSE;
}
/*
return 0;
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GetDllDirectoryW(
- DWORD nBufferLength,
- LPWSTR lpBuffer
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GetLongPathNameW(
- LPCWSTR lpszShortPath,
- LPWSTR lpszLongPath,
- DWORD cchBuffer
- )
-{
- STUB;
- return 0;
-}
+
/*
* @unimplemented
return 0;
}
-/*
- * @unimplemented
- */
-UINT
-STDCALL
-GetSystemWow64DirectoryW(
- LPWSTR lpBuffer,
- UINT uSize
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-SetComputerNameExW (
- COMPUTER_NAME_FORMAT NameType,
- LPCWSTR lpBuffer
- )
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-SetDllDirectoryW(
- LPCWSTR lpPathName
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-VerifyVersionInfoW(
- LPOSVERSIONINFOEXW lpVersionInformation,
- DWORD dwTypeMask,
- DWORDLONG dwlConditionMask
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-FindActCtxSectionStringA(
- DWORD dwFlags,
- const GUID *lpExtensionGuid,
- ULONG ulSectionId,
- LPCSTR lpStringToFind,
- PACTCTX_SECTION_KEYED_DATA ReturnedData
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GetDllDirectoryA(
- DWORD nBufferLength,
- LPSTR lpBuffer
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-DWORD
-STDCALL
-GetLongPathNameA(
- LPCSTR lpszShortPath,
- LPSTR lpszLongPath,
- DWORD cchBuffer
- )
-{
- STUB;
- return 0;
-}
+
/*
* @unimplemented
return 0;
}
-/*
- * @unimplemented
- */
-UINT
-STDCALL
-GetSystemWow64DirectoryA(
- LPSTR lpBuffer,
- UINT uSize
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-SetComputerNameExA (
- COMPUTER_NAME_FORMAT NameType,
- LPCSTR lpBuffer
- )
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-SetDllDirectoryA(
- LPCSTR lpPathName
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-VerifyVersionInfoA(
- LPOSVERSIONINFOEXA lpVersionInformation,
- DWORD dwTypeMask,
- DWORDLONG dwlConditionMask
- )
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-EnumSystemLanguageGroupsW(
- LANGUAGEGROUP_ENUMPROCW lpLanguageGroupEnumProc,
- DWORD dwFlags,
- LONG_PTR lParam)
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
-ULONGLONG
-STDCALL
-VerSetConditionMask(
- ULONGLONG ConditionMask,
- DWORD TypeMask,
- BYTE Condition
- )
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
return 0;
}
-/*
- * @unimplemented
- */
-BOOL STDCALL SetConsoleInputExeNameA(LPCSTR name)
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL STDCALL SetConsoleInputExeNameW(LPCWSTR name)
-{
- STUB;
- return 0;
-}
-
/*
* @unimplemented
*/
/*
* @unimplemented
*/
-BOOL STDCALL GetConsoleInputExeNameA(ULONG length,LPCSTR name)
+BOOL STDCALL IsValidUILanguage(LANGID langid)
{
STUB;
return 0;
/*
* @unimplemented
*/
-BOOL STDCALL GetConsoleInputExeNameW(ULONG length,LPCWSTR name)
+VOID STDCALL NlsConvertIntegerToString(ULONG Value,ULONG Base,ULONG strsize, LPWSTR str, ULONG strsize2)
{
STUB;
- return 0;
}
/*
* @unimplemented
*/
-BOOL STDCALL IsValidUILanguage(LANGID langid)
+UINT STDCALL SetCPGlobal(UINT CodePage)
{
STUB;
return 0;
/*
* @unimplemented
*/
-VOID STDCALL NlsConvertIntegerToString(ULONG Value,ULONG Base,ULONG strsize, LPWSTR str, ULONG strsize2)
+BOOL
+STDCALL
+SetClientTimeZoneInformation(
+ CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation
+ )
{
STUB;
+ return 0;
}
-/*
- * @unimplemented
- */
-UINT STDCALL SetCPGlobal(UINT CodePage)
+ULONG
+WINAPI
+NlsGetCacheUpdateCount(VOID)
{
STUB;
return 0;
}
-/*
- * @unimplemented
- */
BOOL
STDCALL
-SetClientTimeZoneInformation(
- CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation
- )
+Wow64DisableWow64FsRedirection (VOID ** pv)
{
STUB;
- return 0;
+ return FALSE;
+}
+
+BOOL
+STDCALL
+Wow64RevertWow64FsRedirection (VOID * pv)
+{
+ STUB;
+ return FALSE;
}