// d3dkmthk.h
typedef struct _D3DKMT_LOCK2 {
D3DKMT_HANDLE hDevice;
D3DKMT_HANDLE hAllocation;
D3DDDICB_LOCK2FLAGS Flags;
PVOID pData;
} D3DKMT_LOCK2;
View the official Windows Driver Kit DDI referenceNo description available.
D3DKMT_LOCK2 describes parameters for locking an allocation.
hDeviceThe handle to the device.
hAllocationThe handle to the allocation to lock.
FlagsA set of flags to pass to the Lock2 kernel function which will determine how the allocation is locked. See D3DDDICB_LOCK2FLAGS for details.
pDataA CPU virtual address pointing a valid memory location pointing to the CPU backing store or the GPU frame buffer.