VIDEO_PARAMETERS        EQU     3077
CDS_UPDATEREGISTRY      EQU     00000001H
CDS_TEST        EQU     00000002H
CDS_FULLSCREEN  EQU     00000004H
CDS_GLOBAL      EQU     00000008H
CDS_SET_PRIMARY EQU     00000010H
CDS_VIDEOPARAMETERS     EQU     00000020H
DISP_CHANGE_SUCCESSFUL  EQU     0
DISP_CHANGE_RESTART     EQU     1
DISP_CHANGE_FAILED      EQU     -1
DISP_CHANGE_BADMODE     EQU     -2
DISP_CHANGE_NOTUPDATED  EQU     -3
DISP_CHANGE_BADFLAGS    EQU     -4
DISP_CHANGE_BADPARAM    EQU     -5
DISP_CHANGE_BADESC      EQU     -6
ifndef GUID_DEFINED
GUID_DEFINED    EQU     1

_GUID   STRUC
Data1   DB      SIZE DWORD DUP (?)
Data2   DB      SIZE WORD DUP (?)
Data3   DB      SIZE WORD DUP (?)
Data4   DB      8 DUP (?)
_GUID   ENDS
endif

_VIDEOPARAMETERS        STRUC
Guid    DB      SIZE _GUID DUP (?)
dwOffset        DB      SIZE DWORD DUP (?)
dwCommand       DB      SIZE DWORD DUP (?)
dwFlags DB      SIZE DWORD DUP (?)
dwMode  DB      SIZE DWORD DUP (?)
dwTVStandard    DB      SIZE DWORD DUP (?)
dwAvailableModes        DB      SIZE DWORD DUP (?)
dwAvailableTVStandard   DB      SIZE DWORD DUP (?)
dwFlickerFilter DB      SIZE DWORD DUP (?)
dwOverScanX     DB      SIZE DWORD DUP (?)
dwOVerScanY     DB      SIZE DWORD DUP (?)
dwMaxUnscaledX  DB      SIZE DWORD DUP (?)
dwMaxUnscaledY  DB      SIZE DWORD DUP (?)
dwPositionX     DB      SIZE DWORD DUP (?)
dwPositionY     DB      SIZE DWORD DUP (?)
dwBrightness    DB      SIZE DWORD DUP (?)
dwContrast      DB      SIZE DWORD DUP (?)
dwCPType        DB      SIZE DWORD DUP (?)
dwCPStandard    DB      SIZE DWORD DUP (?)
bCP_APSTriggerBits      DB      SIZE DWORD DUP (?)
bOEMCopyProtection      DB      256 DUP (?)
_VIDEOPARAMETERS        ENDS
VP_COMMAND_GET  EQU     0001H
VP_COMMAND_SET  EQU     0002H
VP_FLAGS_TV_MODE        EQU     0001H
VP_FLAGS_TV_STANDARD    EQU     0002H
VP_FLAGS_FLICKER        EQU     0004H
VP_FLAGS_OVERSCAN       EQU     0008H
VP_FLAGS_MAX_UNSCALED   EQU     0010H
VP_FLAGS_POSITION       EQU     0020H
VP_FLAGS_BRIGHTNESS     EQU     0040H
VP_FLAGS_CONTRAST       EQU     0080H
VP_FLAGS_COPYPROTECT    EQU     0100H
VP_MODE_WIN_GRAPHICS    EQU     0001H
VP_MODE_TV_PLAYBACK     EQU     0002H
VP_TV_STANDARD_NTSC_M   EQU     0001H
VP_TV_STANDARD_NTSC_M_J EQU     0002H
VP_TV_STANDARD_PAL_B    EQU     0004H
VP_TV_STANDARD_PAL_D    EQU     0008H
VP_TV_STANDARD_PAL_H    EQU     0010H
VP_TV_STANDARD_PAL_I    EQU     0020H
VP_TV_STANDARD_PAL_M    EQU     0040H
VP_TV_STANDARD_PAL_N    EQU     0080H
VP_TV_STANDARD_SECAM_B  EQU     0100H
VP_TV_STANDARD_SECAM_D  EQU     0200H
VP_TV_STANDARD_SECAM_G  EQU     0400H
VP_TV_STANDARD_SECAM_H  EQU     0800H
VP_TV_STANDARD_SECAM_K  EQU     1000H
VP_TV_STANDARD_SECAM_K1 EQU     2000H
VP_TV_STANDARD_SECAM_L  EQU     4000H
VP_TV_STANDARD_WIN_VGA  EQU     8000H
CP_TYPE_APS_TRIGGER     EQU     0001H
CP_TYPE_MACROVISION     EQU     0002H

_MACROVISION    STRUC
wVersion        DB      SIZE WORD DUP (?)
wFlags  DB      SIZE WORD DUP (?)
bCPCData        DB      ?
bCPSData        DB      34 DUP (?)
_MACROVISION    ENDS
MV_FLAGS_CPC_ONLY       EQU     0001H
MV_FLAGS_CPS_ONLY       EQU     0002H
MV_FLAGS_CPC_CPS        EQU     0004H
