COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	Copyright (c) Geoworks 1996 -- All Rights Reserved

PROJECT:	GEOS
MODULE:		GDI Library Interface
FILE:		gdi.def

AUTHOR:		Todd Stumpf, Apr 10, 1996

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	TS	4/10/96   	Initial revision


DESCRIPTION:
	
		
	$Id: gdi.def,v 1.1 97/04/04 14:22:09 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@

SetDef	__GDILIB

StartLibrary	gdi

;-----------------------------------------------------------------------------
;		Constants & Structures
;-----------------------------------------------------------------------------


HardIconRegion	struct
	HIR_left	word
	HIR_right	word
	HIR_top		word
	HIR_bottom	word
HardIconRegion	ends

HardIconAction	struct
	HIA_cx		word
	HIA_dx		word
	HIA_bp		word
HardIconAction	ends

KeyTableList	struct
	KTL_keyDefs		fptr.KeyDefs
	KTL_numKeyDefs		word
	KTL_keyExts		fptr.ExtendedKeyDefs
	KTL_numKeyExts		word
	KTL_accentDefs		fptr.AccentDefs
	KTL_numAccentDefs	word
	KTL_accentChars		fptr.Chars
	KTL_extFlipCase		fptr.Chars
	KTL_numExtFlipCase	word
	KTL_keyExtExts		fptr.ExtendedExtendedDefs
	KTL_numKeyExtExts	word
	KTL_caplockScan		word		
	KTL_leftCtrlScan	word
	KTL_rightAltScan	word
KeyTableList	ends	

PointerInfo	struct
	PI_hirTable		fptr
	PI_hiaTable		fptr
	PI_hiCount		word
	PI_numButtons		word
PointerInfo	ends

PowerEventType				etype	word, 0, 2
	PET_DISPLAY_DIALOG		enum	PowerEventType
	PET_REMOVE_DIALOG		enum	PowerEventType
	PET_GET_DIALOG_RESPONSE		enum	PowerEventType
	PET_DISABLE_DEVICE		enum	PowerEventType
	PET_ENABLE_DEVICE		enum	PowerEventType
	PET_DEVICE_UPDATE		enum	PowerEventType

PowerStates				etype	word, 0, 2
	PS_UNSUPPORTED			enum	PowerStates, 0
	PS_OFF				enum	PowerStates, 1
	PS_SUSPEND			enum	PowerStates, 64
	PS_IDLE				enum	PowerStates, 128
	PS_ON				enum	PowerStates, 255

PowerSuspendReason			etype	word, 0, 2
	PSR_LONG_TERM_IDLE		enum	PowerSuspendReason
	PSR_GDI_LIB_REQUEST		enum	PowerSuspendReason
	PSR_ON_OFF_PRESS		enum	PowerSuspendReason

SystemEventType				etype	word, 0, 2
	SET_KEYBOARD			enum	SystemEventType
	SET_POINTER			enum	SystemEventType
	SET_POWER			enum	SystemEventType

ErrorCode				etype	word, 0, 2
	EC_NO_ERROR			enum	ErrorCode
	EC_HARDWARE_ERROR		enum	ErrorCode
	EC_CALLBACKS_STILL_ACTIVE	enum	ErrorCode
	EC_CALLBACKS_NOT_PRESENT	enum	ErrorCode
	EC_CALLBACK_ALREADY_PRESENT	enum	ErrorCode
	EC_CALLBACK_TABLE_FULL		enum	ErrorCode
	EC_INTERFACE_NOT_SUPPORTED	enum	ErrorCode
	EC_INTERFACE_NOT_INITIALIZED	enum	ErrorCode
	EC_INTERFACE_ALREADY_ACTIVE	enum	ErrorCode
	EC_GET_EXCLUSIVE_ERROR		enum	ErrorCode
	EC_RELEASE_EXCLUSIVE_ERROR	enum	ErrorCode


KeyboardErrorCode			etype	word, ErrorCode, 2
	KEC_NO_ADDITIONAL_SCANCODES	enum	KeyboardErrorCode

SystemErrorCode				etype	word, ErrorCode, 2
	SEC_EVENT_CONSTRAINT_ERROR	enum	SystemErrorCode

;-----------------------------------------------------------------------------
;		Library Routines
;-----------------------------------------------------------------------------

global GDIPointerInit:far
global GDIPointerInfo:far
global GDIPointerRegister:far
global GDIPointerUnregister:far
global GDIPointerShutdown:far

global GDIKeyboardInit:far
global GDIKeyboardInfo:far
global GDIKeyboardRegister:far
global GDIKeyboardGetKey:far
global GDIKeyboardUnregister:far
global GDIKeyboardShutdown:far
global GDIKeyboardPassHotkey:far
global GDIKeyboardCancelHotkey:far
global GDIKeyboardAddHotkey:far
global GDIKeyboardDelHotkey:far
global GDIKeyboardCheckHotkey:far

global GDIPowerInit:far
global GDIPowerInfo:far
global GDIPowerShutdown:far
global GDIPowerRegister:far
global GDIPowerUnregister:far
global GDIPowerGet:far
global GDIPowerSet:far

global GDISMMonitorSystem:far
global GDISMGenerateState:far
global GDISMRemoveMonitor:far
global GDISMGetExclusive:far
global GDISMReleaseExclusive:far

EndLibrary	gdi








