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

	Copyright (c) GeoWorks 1992 -- All Rights Reserved

PROJECT:	PC GEOS
MODULE:		
FILE:		cvttool.def

AUTHOR:		Cassie Hartzong, Apr 16, 1993

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	cassie	4/16/93		Initial revision


DESCRIPTION:
	Definition file for the cvttool library
		
	$Id: cvttool.def,v 1.1 97/04/04 14:25:26 newdeal Exp $

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


;==============================================================================
;
;		     Module Interface Definition
;
;==============================================================================

;
; Revision level of this interface. These constants must be *outside* of the
; StartLibrary so they end up in the symbol table of the module, and can thus
; be used by Glue to set the protocol number of the module.
; 
CVTTOOL_PROTO_MAJOR	equ	1
CVTTOOL_PROTO_MINOR	equ	0

;
; Parameters to pass to GeodeUseLibrary to load the cvttool library.
; You must first call FileSetCurrentPath passing CVTTOOL_LIB_DISK_HANDLE 
; and a variable initialized with CVTTOOL_LIB_DIR, then call 
; GeodeUseLibrary passing the address of a variable
; initialized with CVTTOOL_LIB_PATH, like this:
;
; convertLibDir		char	CONVERT_LIB_DIR
; convertLibPath	char	CONVERT_LIB_PATH
;
; Pass a protocol number of CVTTOOL_PROTO_MAJOR and CVTTOOL_PROTO_MINOR.
; 
CVTTOOL_LIB_DISK_HANDLE	equ	SP_SYSTEM
CVTTOOL_LIB_DIR		equ	<'\\FILEMGR\\', 0>

if ERROR_CHECK
CVTTOOL_LIB_PATH	equ	<'EC 1.X VM Converter Tool', 0>
else
CVTTOOL_LIB_PATH	equ	<'1.X VM Converter Tool', 0>
endif


ConvertCancelTriggerClass class GenTriggerClass
MSG_CCT_STOP			message
ConvertCancelTriggerClass endc



;-----------------------------------------------------------------------------
;	EXPORTED ROUTINES		
;-----------------------------------------------------------------------------

CvtToolEntryType	etype	word,0,1

;
; Entry points for CvtTool.  The first entry point (0) MUST be
; reserved for the FMToolFunction FMTF_FETCH_TOOLS routine.
; These routines MUST be in the same order as they are exported
; in the cvttool.gp file.
;

CTET_FETCH_TOOLS	enum CvtToolEntryType 
;
; Return the OD of the top-most object in the UI tree.
; All UI *must* be in the same segment as this object.  The UI tree
; will be duplicated by the application, and added to the app's
; generic tree.
;
; Pass: nothing
; Return: ^ldx:ax - OD of root of UI tree.
; Destroy: nothing

CTET_TOOL_ACTIVATED	enum CvtToolEntryType 
;
; Convert the selected files, as returned by the FileManager in a
; FileQuickTransferHeader block.
;
; Pass:	cx - handle of FileManager process
;	dx - tool number within library 
; Return: -- nothing
; Destroy: anything

CTET_TOOL_ACTIVATED_NO_FILE_MANAGER	enum CvtToolEntryType 
;
; Convert the selected files, as passed in a FileQuickTransferHeader block.
; The block will be destroyed.
;
; Pass:	cx - handle of calling process
;	dx - handle of FileQuickTransferHeader block
; Return: -- nothing
; Destroy: anything








