D3DKMT_LOCK2 structure (d3dkmthk.h)
D3DKMT_LOCK2 describes parameters for locking an allocation.
Syntax
typedef struct _D3DKMT_LOCK2 {
D3DKMT_HANDLE hDevice;
D3DKMT_HANDLE hAllocation;
D3DDDICB_LOCK2FLAGS Flags;
PVOID pData;
} D3DKMT_LOCK2;
Members
hDevice
The handle to the device.
hAllocation
The handle to the allocation to lock.
Flags
A set of flags to pass to the Lock2 kernel function which will determine how the allocation is locked. See D3DDDICB_LOCK2FLAGS for details.
pData
A CPU virtual address pointing a valid memory location pointing to the CPU backing store or the GPU frame buffer.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Minimum supported server | Windows Server 2016 |
Header | d3dkmthk.h (include D3dkmthk.h) |