The GetGamma routine returns a pointer to the current gamma table.
OSErr = Status(theDeviceRefNum, cscGetGamma, &theVDGammaRecord );
The calling application cannot preallocate memory because of the unknown size requirements of the gamma data structure.