From 113f43250a2de4e4ff73226cb0006a7833d2fb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Fri, 19 Feb 2016 23:43:28 +0100 Subject: [PATCH] ndis.sys: Implement NdisSystemProcessorCount. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Hentschel Signed-off-by: Alexandre Julliard --- dlls/ndis.sys/main.c | 10 ++++++++++ dlls/ndis.sys/ndis.sys.spec | 2 +- include/ddk/ndis.h | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/dlls/ndis.sys/main.c b/dlls/ndis.sys/main.c index 499f167b8ef..6e1bb9b06ee 100644 --- a/dlls/ndis.sys/main.c +++ b/dlls/ndis.sys/main.c @@ -48,3 +48,13 @@ void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *lock) { FIXME("(%p): stub\n", lock); } + +CCHAR WINAPI NdisSystemProcessorCount(void) +{ + SYSTEM_INFO si; + + TRACE("()\n"); + GetSystemInfo(&si); + + return si.dwNumberOfProcessors; +} diff --git a/dlls/ndis.sys/ndis.sys.spec b/dlls/ndis.sys/ndis.sys.spec index 31b421a02cd..8957d8f84b7 100644 --- a/dlls/ndis.sys/ndis.sys.spec +++ b/dlls/ndis.sys/ndis.sys.spec @@ -257,7 +257,7 @@ @ stub NdisSetTimer @ stub NdisSetTimerEx @ stub NdisSetupDmaTransfer -@ stub NdisSystemProcessorCount +@ stdcall NdisSystemProcessorCount() @ stub NdisTerminateWrapper @ stub NdisTransferData @ stub NdisUnchainBufferAtBack diff --git a/include/ddk/ndis.h b/include/ddk/ndis.h index aa77d9a65f2..ffa13969db3 100644 --- a/include/ddk/ndis.h +++ b/include/ddk/ndis.h @@ -33,5 +33,6 @@ typedef struct _NDIS_SPIN_LOCK NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **, UINT, ULONG); void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *); +CCHAR WINAPI NdisSystemProcessorCount(void); #endif /* _NDIS_ */