ExAllocatePoolWithTagPriority vs NdisAllocateMemoryWithTagPriority

Hello,

I have seen there are these two functions, which look to do the same thing.
The only difference I see, NdisAllocateMemoryWithTagPriority requires an NDIS_HANDLE and allocates on NonPagedPool, while ExAllocatePoolWithTagPriority does not require an NDIS_HANDLE and you can choose the pool.

Can somebody please tell me what differences there actually are between them, and what I should prefer?

Also, is there something of Windows Hardware Certification Kit, which, for an NDIS driver it would issue a problem if ExAllocatePoolWithTagPriority was used instead?

Thanks!

In general if you are in a port / miniport driver model such as NDIS you
want to use NdisXXX functions. There are cross NDIS / KMDF type drivers,
but they should be used only when needed. So assuming you are working in a
normal NDIS environment use NdisAllocateMemoryWithTagPriority. If you step
through this you will find it calls ExAllocatePoolWithTagPriority.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com
Sent: Thursday, August 21, 2014 6:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ExAllocatePoolWithTagPriority vs
NdisAllocateMemoryWithTagPriority

Hello,

I have seen there are these two functions, which look to do the same thing.
The only difference I see, NdisAllocateMemoryWithTagPriority requires an
NDIS_HANDLE and allocates on NonPagedPool, while
ExAllocatePoolWithTagPriority does not require an NDIS_HANDLE and you can
choose the pool.

Can somebody please tell me what differences there actually are between
them, and what I should prefer?

Also, is there something of Windows Hardware Certification Kit, which, for
an NDIS driver it would issue a problem if ExAllocatePoolWithTagPriority was
used instead?

Thanks!


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Could you please define normal?

What would an NDIS filter driver be, and what would a hyper-v switch extension be?

Thanks,
Samuel Ghinet