The required GetVideoParameters routine returns video parameter information.
OSErr = Status (theDeviceRefNum, cscGetVideoParameters,
&theVDVideoParametersRec);
The GetVideoParameters routine accepts csDisplayModeID, csDepthMode, and a pointer to a VPBlock structure, which it fills in with the data for the specified csDisplayModeID and csDepthMode. It also returns the pageCount for that particular bit depth, as well as the deviceType.
Note
In PCI-based graphics drivers, the csVPBlockPtr->vpBaseOffset is always 0. The base address of video RAM for the current page, is the BaseAddress value returned by the GetCurrentMode routine.