DDLOCK_DISCARDCONTENTS
No assumptions are made about vertex buffer contents during this lock.
This flag is only used in relation to TDx_3D vertex-buffer locks and is useful when clearing the vertex buffer and filling it with new data.
TDx_3D or the driver may provide an alternative memory area for the vertex buffer.
DDLOCK_DONOTWAIT
Continue with application execution immediately after the lock is attempted without waiting for a return value indicating a successful lock.
DDLOCK_EVENT
This flag has not yet been implemented by Microsoft.
DDLOCK_NOOVERWRITE
No 3D vertices referred to since the start of the frame or the last lock without this flag are modified during this lock.
This flag is only used in relation to TDx_3D vertex-buffer locks and is useful when appending data to the vertex buffer.
DDLOCK_NOSYSLOCK
Win16Lock will not be taken unless it is unavoidable.
This flag does not apply when attempting to lock the primary surface.
DDLOCK_READONLY
The locked surface will only be read from.
DDLOCK_SURFACEMEMORYPTR
A memory pointer to the top of the rectangle specified in the DestRect parameter of this method will be returned.
Set the DestRect parameter of this method to NULL to return a pointer to the top of the surface.
DDLOCK_WAIT
The lock will wait until it can be obtained or an error other than DDERR_WASSTILLDRAWING occurs.
DDLOCK_WRITEONLY
The locked surface will only be written to.