ndis.sys: Implement NdisSystemProcessorCount.

Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
André Hentschel 2016-02-19 23:43:28 +01:00 committed by Alexandre Julliard
parent 613b2454e5
commit 113f43250a
3 changed files with 12 additions and 1 deletions

View File

@ -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;
}

View File

@ -257,7 +257,7 @@
@ stub NdisSetTimer
@ stub NdisSetTimerEx
@ stub NdisSetupDmaTransfer
@ stub NdisSystemProcessorCount
@ stdcall NdisSystemProcessorCount()
@ stub NdisTerminateWrapper
@ stub NdisTransferData
@ stub NdisUnchainBufferAtBack

View File

@ -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_ */