From: Austin English Subject: [PATCH 2/3] kernel32: add GetActiveProcessorCount stub Message-Id: <20170519041530.9752-2-austinenglish@gmail.com> Date: Thu, 18 May 2017 23:15:29 -0500 In-Reply-To: <20170519041530.9752-1-austinenglish@gmail.com> References: <20170519041530.9752-1-austinenglish@gmail.com> Signed-off-by: Austin English --- dlls/kernel32/cpu.c | 15 +++++++++++++++ dlls/kernel32/kernel32.spec | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dlls/kernel32/cpu.c b/dlls/kernel32/cpu.c index bccbfa92aa..2e0e79f8e8 100644 --- a/dlls/kernel32/cpu.c +++ b/dlls/kernel32/cpu.c @@ -312,3 +312,18 @@ WORD WINAPI GetActiveProcessorGroupCount(void) FIXME("semi-stub, always returning 1\n"); return 1; } + +/*********************************************************************** + * GetActiveProcessorCount (KERNEL32.@) + */ +DWORD WINAPI GetActiveProcessorCount(WORD group) +{ + SYSTEM_INFO si; + DWORD cpus; + + GetSystemInfo( &si ); + cpus = si.dwNumberOfProcessors; + + FIXME("semi-stub, returning %u\n", cpus); + return cpus; +} diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 997e47a6c6..3260cdd823 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -540,7 +540,7 @@ @ stdcall GenerateConsoleCtrlEvent(long long) @ stdcall -i386 -private Get16DLLAddress(long str) krnl386.exe16.Get16DLLAddress @ stdcall GetACP() -# @ stub GetActiveProcessorCount +@ stdcall GetActiveProcessorCount(long) @ stdcall GetActiveProcessorGroupCount() # @ stub GetApplicationRecoveryCallback # @ stub GetApplicationRestartSettings -- 2.13.0