Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

DDLOCK_ Values

Use with the Lock method of the ddSurface class to specify how to lock the surface.

DDLOCK_EVENT
Triggers the event when Lock can return the surface memory requested. This flag is set if an event handle is being passed to Lock. If multiple locks of this type are placed on a surface, events are triggered in FIFO order.
DDLOCK_READONLY
Indicates that the surface being locked will only be read from.
DDLOCK_SURFACEMEMORYPTR
Indicates that valid memory at the top of the specified rectangle should be returned. If no rectangle is specified, the top of the surface is returned. This is the default.
DDLOCK_WAIT
Typically, if a lock cannot be obtained because a blit operation is in progress, no action is taken. If this flag is set, however, Lock retries until a lock is obtained.
DDLOCK_WRITEONLY
Indicates that the surface being locked will only be written to.


© 1996 Microsoft Corporation. All rights reserved.