This article introduces that GDI APIs fails when large pages or Virtual Address Descriptors (VAD) spanning are used.
Original product version: Windows
Original KB number: 4567569
When large page sizes are configured for virtual memory allocations and/or when buffers spanning multiple VAD are passed to the GDI APIs listed below, the function calls fail.
Note: VAD-spanning can occur if memory management facilities such as heap managers and/or garbage collectors request contiguous virtual address ranges(each of which has its own VAD), but attempts to use them as a single block of memory.
- SetDIBitsToDevice function
- StretchDIBits function
- GetBitmapBits function
- CreateDIBitmap function
- CreateDIBSection function
- PolyDraw function
- DrawEscape function
- CreateBitmap function
- SetBitmapBits function
- GetDIBits function
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
