This is a helper function that allows applications to calculate the linear frame-buffer address. This function can be used only if DiveQueryCaps indicates that DIVE is available and an fNonScreenInstance DIVE instance has been opened.
#include <dive.h> HDIVE hDiveInst; /* Display engine DIVE instance. */ PRECTL prectlDest; /* Destination rectangle. */ PBYTE *ppDestinationAddress; /* Calculated linear address. */ PULONG pulBankNumber; /* Bank number. */ PULONG pulRemLinesInBank; /* Number of lines in bank. */ ULONG rc; /* Return codes. */ rc = DiveCalcFrameBufferAddress(hDiveInst, prectlDest, ppDestinationAddress, pulBankNumber, pulRemLinesInBank);