This function must be called after reading or writing data in a buffer allocated with DiveAllocImageBuffer and corresponding to the DiveBeginImageBufferAccess.
#include <dive.h> HDIVE hDiveInst; /* Display engine DIVE instance. */ ULONG ulBufferNumber; /* Buffer number for which access is complete. */ ULONG rc; /* Return codes. */ rc = DiveEndImageBufferAccess(hDiveInst, ulBufferNumber);