;*DDK*************************************************************************/
;
; COPYRIGHT    Copyright (C) 1995 IBM Corporation
;
;    The following IBM OS/2 WARP source code is provided to you solely for
;    the purpose of assisting you in your development of OS/2 WARP device
;    drivers. You may use this code in accordance with the IBM License
;    Agreement provided in the IBM Device Driver Source Kit for OS/2. This
;    Copyright statement may not be removed.;
;*****************************************************************************/
PMAVIOP_INCLUDED	EQU	1

DBCSEvBufSiz	EQU	10 

DBCSENVINFO	STRUC
dbcsenvinfo_DBCSVector	DB	DBCSEvBufSiz DUP (?)
dbcsenvinfo_cc	DW	?
dbcsenvinfo_cp	DW	?
DBCSENVINFO	ENDS

VIOPSNLSEXT	STRUC
viopsnlsext_DBCSEvInfo	DB	SIZE DBCSENVINFO * 4 DUP (?)
viopsnlsext_grid_color	DD	?
viopsnlsext_scrnattrflag	DD	?
VIOPSNLSEXT	ENDS

VioPresentationSpace32	STRUC
viops_fsemVioPSLock	DB	SIZE FSRSEM DUP (?)
viops_pLVB	DD	?
viops_pBVSCB	DD	?
viops_rgfAVio	DD	?
viops_CellByteSize	DW	?
viops_BufferRowCount	DW	?
viops_BufferColumnCount	DW	?
viops_WindowOriginRow	DW	?
viops_WindowOriginColumn	DW	?
viops_TextCursorRow	DW	?
viops_TextCursorColumn	DW	?
viops_TextCursorStartLine	DW	?
viops_TextCursorEndLine	DW	?
viops_TextCursorWidth	DW	?
viops_TextCursorVisible	DD	?
viops_CellImageHeight	DW	?
viops_CellImageWidth	DW	?
viops_CodepageID	DW	?
viops_WindowHeight	DW	?
viops_WindowWidth	DW	?
viops_Pad	DW	?
viops_hConsoleDisplayContext	DD	?
viops_hVioWindow	DD	?
viops_RowOrgLatch	DW	?
viops_ColOrgLatch	DW	?
viops_CursorRow	DW	?
viops_CursorCol	DW	?
viops_CursorStartLine	DW	?
viops_CursorEndLine	DW	?
viops_CursorWidth	DB	?
viops_PartialCellAdjust	DB	?
viops_XLatch	DW	?
viops_YLatch	DW	?
viops_WidthLatch	DW	?
viops_HeightLatch	DW	?
viops_CellHeightLatch	DW	?
viops_rgfShieldStates	DD	?
viops_pFontsLoaded	DD	3 DUP (?)
viops_pMapFontsLoaded	DD	3 DUP (?)
viops_FormatID	DW	?
viops_Reserved	DW	?
viops_lpNLSExt	DD	?
VioPresentationSpace32	ENDS
viops_PresentationSpaceLock     equ <viops_fsemVioPSLock>
viops_Sel_LogicalVideoBuffer    equ <viops_selLVB>
viops_Sel_BVSControlBlock       equ <viops_selBVSCB>
ifndef viops_selfontsloaded
viops_selfontsloaded            equ <viops_selFontsLoaded>
viops_npmapfontsloaded          equ <viops_npMapFontsLoaded>
endif

fAssociated	EQU	0001H 
fCursorShowing	EQU	0001H   
fHasTheFocus	EQU	0002H   
fCursorIsOn	EQU	0004H   
fShieldCalling	EQU	8000H 
fServeShieldOnly	EQU	4000H 
fServeNobody	EQU	2000H 
MaxVIORows	EQU	255          
MaxVIOCols	EQU	255          
WM_AbortShield	EQU	(352H )    

GridRectRef	STRUC
cellrect_StartRow	DD	?
cellrect_StartColumn	DD	?
cellrect_RectWidth	DD	?
cellrect_RectDepth	DD	?
GridRectRef	ENDS

GridStringRef	STRUC
cellstr_StartRow	DD	?
cellstr_StartColumn	DD	?
cellstr_StringLength	DD	?
GridStringRef	ENDS

ScrollRectRef	STRUC
cellscroll_StartRow	DD	?
cellscroll_StartColumn	DD	?
cellscroll_RectWidth	DD	?
cellscroll_RectDepth	DD	?
cellscroll_HorzMovement	DD	?
cellscroll_VertMovement	DD	?
cellscroll_lpFillCell	DD	?
ScrollRectRef	ENDS

KbdMouParameters	STRUC
kmparms_KeyBuffSize	DW	?
kmparms_MouBuffSize	DW	?
kmparms_MouFilterMask	DW	?
KbdMouParameters	ENDS
RightShiftDown	EQU	(0001H )
LeftShiftDown	EQU	(0002H )
CtrlKeyDown	EQU	(0004H )
AltKeyDown	EQU	(0008H )
ScrollLockOn	EQU	(0010H )
NumLockOn	EQU	(0020H )
CapsLockOn	EQU	(0040H )
InsertOn	EQU	(0080H )
LeftCtrlKeyDown	EQU	(0100H )
LeftAltKeyDown	EQU	(0200H )
RightCtrlKeyDown	EQU	(0400H )
RightAltKeyDown	EQU	(0800H )
ScrollLockKeyDown	EQU	(1000H )
NumLockKeyDown	EQU	(2000H )
CapsLockKeyDown	EQU	(4000H )
SysReqKeyDown	EQU	(8000H )
Shift_Return_On	EQU	0100H 
Two_Byte_Turnaround	EQU	0080H 
Set_Turnaround_Char	EQU	0040H 
Set_Interim_Char_Flags	EQU	0020H 
Set_Shift_State	EQU	0010H 
Ascii_Mode_On	EQU	0008H 
Binary_Mode_On	EQU	0004H 
Echo_Off	EQU	0002H 
Echo_On	EQU	0001H 
SHIELD_API_ERROR_BASE	EQU	(-32 )
CE_NULL_PRESENTATION_SPACE	EQU	(-33 )
CE_INVALID_PRESENTATION_SPACE	EQU	(-34 )
CE_TOO_MANY_PS_ROWS	EQU	(-35 )
CE_TOO_MANY_PS_COLS	EQU	(-36 )
CE_CANT_CREATE_GLOBAL_HEAP	EQU	(-37 )
CE_NULL_HCONSOLE_POINTER	EQU	(-38 )
CE_OUT_OF_DGROUP_MEMORY	EQU	(-39 )
CE_CANT_CREATE_INSTANCEHEAP	EQU	(-40 )
CE_OUT_OF_INSTANCE_MEMORY	EQU	(-41 )
CE_INVALID_MOUSE_FILTER_MASK	EQU	(-42 )
CE_CANT_REGISTER_WINDOW_CLASS	EQU	(-44 )
CE_CANT_CREATE_STD_WINDOW	EQU	(-45 )
CE_CANT_SUBCLASS_FRAME_PROC	EQU	(-46 )
CE_CANT_DISCARD_KEY_BUFFER	EQU	(-48 )
CE_CANT_DISCARD_MOU_BUFFER	EQU	(-49 )
CE_CANT_DISCARD_CONSOLE_STATE	EQU	(-50 )
CE_INVALID_CONSOLE_HANDLE	EQU	(-51 )
CE_CANT_ALLOCATE_DC	EQU	(-53 )
CE_CANT_ALLOCATE_LVB	EQU	(-54 )
CE_PSPACE_INACCESSABLE	EQU	(-55 )
CE_CANT_DISCARD_INSTANCE_SEG	EQU	(-56 )
CE_CANT_DISCARD_KBD_STATE	EQU	(-59 )
CE_PS_NOT_LOCKED	EQU	(-60 )
CE_CONSOLE_DOES_NOT_HAVE_FOCUS	EQU	(-61 )
CE_NOT_A_SIZE_MESSAGE	EQU	(-62 )
CE_CANT_LOAD_STRING_RESOURCES	EQU	(-63 )
CE_NO_CELL_INFO	EQU	(-64 )
CE_CANT_MAP_WND_TO_DC	EQU	(-65 )
CE_CANT_MAP_DC_TO_LPVIOPS	EQU	(-66 )
CE_TOO_MANY_MOUSE_DETACHES	EQU	(-67 )
CE_SHIELD_ALREADY_INITIALED	EQU	(-68 )
CE_NOT_ENOUGH_SHELL_HOOKS	EQU	(-69 )
CE_CANT_SUBCLASS_TASK_MGR	EQU	(-70 )
CE_CANT_LOAD_MARKING_CURSOR	EQU	(-71 )
CE_SGID_NOT_ACTIVE	EQU	(-72 )
CE_CANT_DEALLOCATE_LVB	EQU	(-73 )
CE_CANT_DEALLOCATE_VIO_PS	EQU	(-74 )
CE_INVALID_VIO_PS_ADDRESS	EQU	(-75 )
CE_INVALID_LVB_SELECTOR	EQU	(-76 )
CE_CANT_ALLOCATE_TITLE_BUFFER	EQU	(-77 )
CE_NOT_CALLED_FROM_SHELL_PID	EQU	(-78 )
CE_SHIELD_NOT_INITIALED	EQU	(-79 )
CE_UNKNOWN_PROG_TYPE	EQU	(-80 )
CE_DLL_LOAD_FAILURE	EQU	(-81 )
CE_DLL_PROC_FAILURE	EQU	(-82 )
CE_DLL_FREE_FAILURE	EQU	(-83 )
CE_VDM_HEAP_CREATE_FAILURE	EQU	(-84 )
CE_VDM_HEAP_ALLOC_FAILURE	EQU	(-85 )
CE_VDM_HEAP_FREE_FAILURE	EQU	(-86 )
CE_VDM_VIDEO_VDD_NOT_FOUND	EQU	(-87 )
CE_VDM_VIDEO_ACCESS_DENIED	EQU	(-88 )
CE_VDM_KEYBOARD_VDD_NOT_FOUND	EQU	(-89 )
CE_VDM_KEYBOARD_ACCESS_DENIED	EQU	(-90 )
CE_VDM_MOUSE_VDD_NOT_FOUND	EQU	(-91 )
CE_VDM_MOUSE_ACCESS_DENIED	EQU	(-92 )
CE_VDM_TIMER_VDD_NOT_FOUND	EQU	(-93 )
CE_VDM_TIMER_ACCESS_DENIED	EQU	(-94 )
CE_VDM_STACK_ALLOCATION_FAILURE	EQU	(-95 )
CE_VDM_THREAD_CREATION_FAILURE	EQU	(-96 )
GRAPHICSENGINEAPIERRORBASE	EQU	(-128 )
GRE_INVALIDROWINDEX	EQU	(-129 )
GRE_INVALIDCOLUMNINDEX	EQU	(-130 )
GRE_NEGATIVEWIDTH	EQU	(-131 )
GRE_NEGATIVEDEPTH	EQU	(-132 )
GRE_NEGATIVELENGTH	EQU	(-133 )
GRE_CURSORSTATEFAILURE	EQU	(-134 )
GRE_OUTOFMEMORY	EQU	(-135 )
AVIO_PS_HANDLE_INDEX	EQU	1 
CNT_LOADABLE_LCIDS	EQU	3 
