Paul Chitescu : kernel32: Declare and add stubs for GetLogicalProcessorInformation(Ex).
Alexandre Julliard
julliard at winehq.org
Tue Jul 20 11:20:30 CDT 2010
Module: wine
Branch: master
Commit: 2e977463405efee97f5c972d7601b1df9dd0f43c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e977463405efee97f5c972d7601b1df9dd0f43c
Author: Paul Chitescu <paulc at voip.null.ro>
Date: Mon Jul 19 18:22:35 2010 +0300
kernel32: Declare and add stubs for GetLogicalProcessorInformation(Ex).
---
dlls/kernel32/kernel32.spec | 2 ++
dlls/kernel32/process.c | 20 ++++++++++++++++++++
include/winbase.h | 2 ++
3 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 843e97c..e7ae774 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -547,6 +547,8 @@
@ stdcall GetLogicalDriveStringsA(long ptr)
@ stdcall GetLogicalDriveStringsW(long ptr)
@ stdcall GetLogicalDrives()
+@ stdcall GetLogicalProcessorInformation(ptr ptr)
+@ stdcall GetLogicalProcessorInformationEx(long ptr ptr)
@ stdcall GetLongPathNameA (str long long)
@ stdcall GetLongPathNameW (wstr long long)
@ stdcall GetMailslotInfo(long ptr ptr ptr ptr)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 1e4a6e1..fc170f9 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -3323,6 +3323,26 @@ HANDLE WINAPI GetCurrentProcess(void)
}
/***********************************************************************
+ * GetLogicalProcessorInformation (KERNEL32.@)
+ */
+BOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION buffer, PDWORD pBufLen)
+{
+ FIXME("(%p,%p): stub\n", buffer, pBufLen);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+/***********************************************************************
+ * GetLogicalProcessorInformationEx (KERNEL32.@)
+ */
+BOOL WINAPI GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP relationship, PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX buffer, PDWORD pBufLen)
+{
+ FIXME("(%u,%p,%p): stub\n", relationship, buffer, pBufLen);
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return FALSE;
+}
+
+/***********************************************************************
* CmdBatNotification (KERNEL32.@)
*
* Notifies the system that a batch file has started or finished.
diff --git a/include/winbase.h b/include/winbase.h
index c3dc64c..ea10696 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1701,6 +1701,8 @@ WINBASEAPI BOOL WINAPI GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UI
#define GetPrivateProfileStruct WINELIB_NAME_AW(GetPrivateProfileStruct)
WINBASEAPI FARPROC WINAPI GetProcAddress(HMODULE,LPCSTR);
WINBASEAPI BOOL WINAPI GetProcessAffinityMask(HANDLE,PDWORD_PTR,PDWORD_PTR);
+WINBASEAPI BOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION,PDWORD);
+WINBASEAPI BOOL WINAPI GetLogicalProcessorInformationEx(LOGICAL_PROCESSOR_RELATIONSHIP,PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX,PDWORD);
WINBASEAPI DWORD WINAPI GetProcessHeaps(DWORD,PHANDLE);
WINBASEAPI DWORD WINAPI GetProcessId(HANDLE);
WINBASEAPI BOOL WINAPI GetProcessIoCounters(HANDLE,PIO_COUNTERS);
More information about the wine-cvs
mailing list