D3DKMT_CREATEDCFROMMEMORY structure (d3dkmthk.h)
The D3DKMT_CREATEDCFROMMEMORY structure describes parameters for creating the display context.
Syntax
typedef struct _D3DKMT_CREATEDCFROMMEMORY {
[in] VOID *pMemory;
[in] D3DDDIFORMAT Format;
[in] UINT Width;
[in] UINT Height;
[in] UINT Pitch;
[in] HDC hDeviceDc;
[in] PALETTEENTRY *pColorTable;
[out] HDC hDc;
[out] HANDLE hBitmap;
} D3DKMT_CREATEDCFROMMEMORY;
Members
[in] pMemory
A pointer to a block of memory for the display context.
[in] Format
A D3DDDIFORMAT-typed value that indicates the pixel format for the memory block that pMemory points to.
[in] Width
The width, in pixels, of the memory block that pMemory points to.
[in] Height
The height, in pixels, of the memory block that pMemory points to.
[in] Pitch
The pitch, in bytes, of the memory block that pMemory points to--that is, the distance in bytes to the start of the next line.
[in] hDeviceDc
A handle to the display context for the device.
[in] pColorTable
An array of 2, 4, 16, or 256 PALETTEENTRY structures that are used to initialize the colors for the memory block that pMemory points to. For more information about PALETTEENTRY, see the Microsoft Window SDK documentation.
[out] hDc
A handle to the display context. The OpenGL runtime generates a handle and passes it back to the driver.
[out] hBitmap
A handle to a bitmap that is related to the display context. The OpenGL runtime generates a handle and passes it back to the driver.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Header | d3dkmthk.h (include D3dkmthk.h) |