ABSTRACT

How to Allocate a DMA Buffer Chapter 15 showed how to allocate fixed and pagelocked memory. A search of all Windows API or DPMI calls reveals no way to specify 64Kb alignment, but there are several usable work-arounds. A small buffer is less likely to cross a 64Kb boundary, so in this case a good strategy is to keep allocating (fixed and pagelocked) buffers until you get a suitable one, then deallocate the unused ones.