RE: Is there some problem with this code?

A couple of suggestions:

Having a boundaddr that is not a power of two is strange. Try 0x10000 instead of 0xffff.

Second suggestion is seeing if you can get the requested memory if you ask for a type other than MmNonCached.


-----Original Message-----
From: Seshagiri Babu K V []
Sent: Monday, December 23, 2002 5:18 AM
To: NT Developers Interest List
Subject: [ntdev] Is there some problem with this code?

The function MmAllocateContiguousMemorySpecifyCache always returns NULL. The size being only 12K. I tried loading the driver at boot time, making it demand start etc. Is it the correct way to get buffer within 64k range?

lowaddr.LowPart = 0;
lowaddr.HighPart = 0;
highaddr.LowPart = 0xffffefff;
highaddr.HighPart = 0;
boundaddr.LowPart = 0x0000ffff;
boundaddr.HighPart = 0;

va = MmAllocateContiguousMemorySpecifyCache(size,


You are currently subscribed to ntdev as:
To unsubscribe send a blank email to %%email.unsub%%