Unlock

DWORD (APIENTRY *PDD_SURFCB_UNLOCK)(
   PDD_UNLOCKDATA lpUnlock
);

UnLock releases the lock held on a block of memory.

Parameters

lpUnlock

Pointer to a DD_UNLOCKDATA structure that contains the information required to perform the lock release.

Return Value

Unlock returns a DDHAL_DRIVER_Xxx callback code that indicates how the driver handled the call. These return codes are defined in ddrawint.h.

Comments

The driver does not need to verify that the memory was previously locked down by Lock, because DirectDraw does parameter validation before calling this routine.