DWORD (APIENTRY *PDD_SURFCB_UNLOCK)(
PDD_UNLOCKDATA lpUnlock
);
UnLock releases the lock held on a block of memory.
Unlock returns a DDHAL_DRIVER_Xxx callback code that indicates how the driver handled the call. These return codes are defined in ddrawint.h.
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.