--
havegone
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
NdisAllocateBufferPool returns NULL on current Windows versions. So,
that is nothing to worry about.
Clearly some parameter that you are passing to NdisAllocateBuffer is
invalid.
You do understand that the fourth parameter (VirtualAddress) is an
input to NdisAllocateBuffer. You should have allocated the virtual
memory before making the call.
You simply cannot lower IRQL ever!!! You can only raise IRQL. You can
only call NdisAllocateBuffer when you are at IRQL <= DISPATCH_LEVEL.
It is also vertain that the bug you are seeing has nothing specific to
do with VMWare.
This paper at NDIS.com may be helpful:
http://ndis.com/papers/ndispacket/ndispacket1.htm
Thomas F. Divine
http://www.pcausa.com
Sorry. You can certainly lower IRQL _IFF_ you have previously raised
it yourself but I don't think that is what you are talking about.
Good luck,
This is normal, buffer pools are non-op in NT, they were only used in Win9x/Me.
In NT, NDIS_BUFFER is MDL, NdisAllocateBuffer is
IoAllocateMdl+MmBuildMdlForNonPagedPool, and NdisFreeBuffer is IoFreeMdl.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com