;*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.;
;*****************************************************************************/
ifdef __IBMC__
ifndef __CHKHDR__
endif
endif
ifndef INCL_32         
ifndef INCL_16      
ifdef M_I386
INCL_32	EQU	1

else
INCL_16	EQU	1

endif
endif
endif
__OS2NLS__	EQU	1

RID_DBE_OFFSET	EQU	1000H 
STR_DBE_OFFSET	EQU	1000H 
VK_DBE_FIRST	EQU	80H  
VK_DBE_LAST	EQU	0ffH  
VK_DBE_IMEFIRST	EQU	0A0H  
VK_DBE_IMELAST	EQU	0FFH  
VK_DBE_OEMFIRST	EQU	0C0H 
VK_DBE_OEMLAST	EQU	0CFH 
VK_DBE_ALPHANUMERIC	EQU	80H  
VK_DBE_KATAKANA	EQU	81H  
VK_DBE_HIRAGANA	EQU	82H  
VK_DBE_SBCSCHAR	EQU	83H  
VK_DBE_DBCSCHAR	EQU	84H  
VK_DBE_SBCSDBCSCHAR	EQU	85H  
VK_DBE_ROMAN	EQU	86H  
VK_DBE_HANJA	EQU	87H  
VK_DBE_HANGEUL	EQU	88H  
VK_DBE_JAMO	EQU	89H  
VK_DBE_HANZI	EQU	8AH  
VK_DBE_TSANGJYE	EQU	8CH  
VK_DBE_PHONETIC	EQU	8DH  
VK_DBE_KANJI	EQU	0a0H  
VK_DBE_IMEACTIVATE	EQU	0a0H  
VK_DBE_CONV	EQU	0a1H  
VK_DBE_NOCONV	EQU	0a2H  
VK_DBE_TANGO	EQU	0a3H  
VK_DBE_WORDREGISTER	EQU	0a3H  
VK_DBE_IMEDIALOG	EQU	0a4H  
VK_DBE_IME_MBSELECTED	EQU	0a5H  
VK_DBE_IME_LBSELECTED	EQU	0a6H  
VK_DBE_CODEINPUT	EQU	0a7H  
VK_DBE_ALLCANDIDATE	EQU	0a8H  
VK_DBE_PREVCANDIDATE	EQU	0a9H  
VK_DBE_IMEDEACTIVATE	EQU	0aaH  
VK_DBE_IME_WORDREGISTED	EQU	0abH  
VK_DBE_IMECONTROL	EQU	0acH  
VK_DBE_IME_FREEPS	EQU	0adH  
VK_DBE_IMEMODEEXIT	EQU	0aeH  
WC_DBE_APPSTAT	EQU	(     0ffff0010H ) 
WC_DBE_KBDSTAT	EQU	(     0ffff0011H ) 
WC_DBE_PECIC	EQU	(     0ffff0012H ) 
WM_DBE_SETAPPLSTAT	EQU	00b6H 
WM_DBE_KKCPARAMS	EQU	00bcH 
FCF_DBE_STATAREA	EQU	80000000H  
ifdef INCL_32

KEYSTSDATA	STRUC
keysts_wpmctlflag	DD	?
keysts_textlength	DD	?
keysts_pTextString	DD	?
keysts_pAttrString	DD	?
keysts_pRomanString	DD	?
KEYSTSDATA	ENDS
else

KEYSTSDATA	STRUC
keysts_wpmctlflag	DW	?
keysts_textlength	DW	?
keysts_lpTextString	DD	?
keysts_lpAttrString	DD	?
keysts_lpRomanString	DD	?
KEYSTSDATA	ENDS
endif
ifdef INCL_32

WPMCTLPARAMS	STRUC
wpmctlprm_wpmctlflag	DD	?
wpmctlprm_textlength	DD	?
wpmctlprm_pTextString	DD	?
wpmctlprm_pAttrString	DD	?
WPMCTLPARAMS	ENDS
else

WPMCTLPARAMS	STRUC
wpmctlprm_wpmctlflag	DW	?
wpmctlprm_textlength	DW	?
wpmctlprm_lpTextString	DD	?
wpmctlprm_lpAttrString	DD	?
WPMCTLPARAMS	ENDS
endif
DBE_KSF_ALPHANUMERIC	EQU	0001H 
DBE_KSF_KATAKANA	EQU	0002H 
DBE_KSF_HIRAGANA	EQU	0004H 
DBE_KSF_CAPS	EQU	0008H 
DBE_KSF_ROMAN	EQU	0010H 
DBE_KSF_HANKAKU	EQU	0020H 
DBE_KSF_ZENKAKU	EQU	0040H 
DBE_KSF_SBCS	EQU	DBE_KSF_HANKAKU
DBE_KSF_DBCS	EQU	DBE_KSF_ZENKAKU
DBE_KSF_UPPER	EQU	0080H 
DBE_KSF_LOWER	EQU	0100H 
DBE_KSF_TEXT	EQU	0200H 
DBE_KSF_NOROMAN	EQU	0400H 
DBE_KSF_DISABLEONTHESPOT	EQU	0800H 
DBE_KSF_ROMANTEXT	EQU	1000H 
DBE_KSF_JAMO	EQU	0002H 
DBE_KSF_HANGEUL	EQU	0004H 
DBE_KSF_PHONETIC	EQU	0002H 
DBE_KSF_TSANGJYE	EQU	0004H 
ifdef INCL_32

PECICDATA	STRUC
pecicdata_wpmctlflag	DD	?
pecicdata_textlength	DD	?
pecicdata_pTextString	DD	?
pecicdata_pAttrString	DD	?
pecicdata_CursorPos	DD	?
pecicdata_CursorAttr	DD	?
PECICDATA	ENDS
else

PECICDATA	STRUC
pecicdata_wpmctlflag	DW	?
pecicdata_textlength	DW	?
pecicdata_lpTextString	DD	?
pecicdata_lpAttrString	DD	?
pecicdata_CursorPos	DW	?
pecicdata_CursorAttr	DW	?
PECICDATA	ENDS
endif
DBE_WPM_APPLSTAT_VISIBILITY	EQU	0004H 
DBE_AS_APPLTOP	EQU	0001H 
DBE_AS_KBDTOP	EQU	0002H 
DBE_AS_PECICTOP	EQU	0004H 
DBE_AS_APPLBOTTOM	EQU	0008H 
ifdef INCL_32

KKCPARAMS	STRUC
kkcparams_lenKKCParams	DD	?
kkcparams_fRequest	DD	?
kkcparams_fKKCParams	DD	?
kkcparams_pKKCData	DD	?
kkcparams_Reserved	DD	?
KKCPARAMS	ENDS
else

KKCPARAMS	STRUC
kkcparams_lenKKCParams	DW	?
kkcparams_fRequest	DW	?
kkcparams_fKKCParams	DW	?
kkcparams_lpKKCData	DD	?
kkcparams_Reserved	DD	?
KKCPARAMS	ENDS
endif
DBE_KKCPARAMS_SET	EQU	0001H 
DBE_KKCPARAMS_QUERY	EQU	0002H 
DBE_KKCPARAMS_PHYSICALATTRIBUTE	EQU	0001H 
DBE_KKCPARAMS_PECICCURSORPOS	EQU	0002H 

LEVEL	STRUC
Level_attri1	DB	?
Level_attri2	DB	?
LEVEL	ENDS
ifdef INCL_32

COLORLOOKUPTBL	STRUC
ColorLookUpTable_nAttr	DD	?
ColorLookUpTable_PhysicalLevel	DB	SIZE LEVEL * 32 DUP (?)
COLORLOOKUPTBL	ENDS
else

COLORLOOKUPTBL	STRUC
ColorLookUpTable_nAttr	DW	?
ColorLookUpTable_PhysicalLevel	DB	SIZE LEVEL * 32 DUP (?)
COLORLOOKUPTBL	ENDS
endif
DBE_IMCTL_QUERY	EQU	0001H 
DBE_IMCTL_SET	EQU	0002H 
ifdef INCL_32

IMEMODE	STRUC
imemode_lenIMEMODE	DD	?
imemode_fIMEMode	DD	?
imemode_hIME	DD	?
imemode_hModIME	DD	?
IMEMODE	ENDS
else

IMEMODE	STRUC
imemode_lenIMEMODE	DW	?
imemode_fIMEMode	DW	?
imemode_hIME	DW	?
imemode_hModIME	DW	?
IMEMODE	ENDS
endif
DBE_IMCTL_IMEENABLE	EQU	0001H 
DBE_IMCTL_IMEDISABLE	EQU	0002H 
DBE_IMCTL_IMEMODE	EQU	0004H 
DBE_IMCTL_NOTIMEMODE	EQU	0008H 
DBE_IMCTL_INHERIT_PFRAME	EQU	0100H 
DBE_IMCTL_INTERIMREQUEST	EQU	8000H 
ifdef INCL_32
else
endif 
DBE_MCTL_QUERY	EQU	0001H 
DBE_MCTL_SET	EQU	0002H 
DBE_MCTL_INPUTMODEREQUEST	EQU	0001H 
DBE_MCTL_JAPANREQ	EQU	0001H    
DBE_MCTL_ALPHANUMERIC	EQU	0001H 
DBE_MCTL_KATAKANA	EQU	0002H 
DBE_MCTL_HIRAGANA	EQU	0004H 
DBE_MCTL_SBCSCHAR	EQU	0008H 
DBE_MCTL_DBCSCHAR	EQU	0010H 
DBE_MCTL_ROMAN	EQU	0020H 
DBE_MCTL_NOROMAN	EQU	0040H 
DBE_MCTL_KKCREQ	EQU	1000H 
DBE_MCTL_CP932REQ	EQU	0001H 
DBE_MCTL_KKCENABLE	EQU	1000H 
DBE_MCTL_KKCDISABLE	EQU	2000H 
DBE_MCTL_HANKAKU	EQU	0008H 
DBE_MCTL_ZENKAKU	EQU	0010H 
DBE_MCTL_JAMO	EQU	0002H 
DBE_MCTL_HANGEUL	EQU	0004H 
DBE_MCTL_INTERIMREQUEST	EQU	0080H 
DBE_MCTL_PHONETIC	EQU	0002H 
DBE_MCTL_TSANGJYE	EQU	0004H 
DBE_MCTL_INHERIT_PFRAME	EQU	0100H 
ifdef INCL_32
else
endif 

FD_DESC	STRUC
fd_desc_flType	DD	?
fd_desc_str64Desc	DB	64 DUP (?)
FD_DESC	ENDS
DBE_FD_DESC_SYSTEM	EQU	0001H 
DBE_FD_DESC_PUBLIC	EQU	0002H 
DBE_FD_DESC_PRIVATE	EQU	0004H 
SC_DBE_IME	EQU	8018H 
SC_DBE_IMESEPARATOR	EQU	8019H 
ifdef __IBMC__
ifndef __CHKHDR__
endif
endif
