#ifndef   _RXDEFS_H_
#define   _RXDEFS_H_
// (C) Copyright 1992-1997 by Autodesk, Inc.  All rights reserved.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted, 
// provided that the above copyright notice appears in all copies and 
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting 
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. 
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE.  AUTODESK, INC. 
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to 
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
//

#if defined(__cplusplus)
#include "adesk.h"
#endif

#ifndef NULLFCN
#define NULLFCN 0
#endif

#define ACRX_ULONG_MAX 0xFFFFFFFF

#define ACRX_ASCII_MAX 255  /* Same as UCHAR_MAX in <limits.h> */
#define ACRX_EOS 0          /* End of String Indicator */

#if defined(__cplusplus)
// AcRx:  typedef and enum namespace scoping struct.

struct AcRx {

    typedef void (*FcnPtr) ();

    enum	 DictIterType { kDictSorted   = 0,
	                        kDictCollated = 1 };

    enum	 Ordering     { kLessThan     = -1,
				kEqual	      = 0,
				kGreaterThan  = 1,
				kNotOrderable = 2 };

    enum	 AppMsgCode   { kNullMsg	 = 0,
				kInitAppMsg	 = 1,
				kUnloadAppMsg	 = 2,
				kLoadDwgMsg	 = 3,
				kUnloadDwgMsg	 = 4,
                                kInvkSubrMsg     = 5,
                                kCfgMsg          = 6,
                                kEndMsg          = 7,
                                kQuitMsg         = 8,
                                kSaveMsg         = 9,
                                kDependencyMsg   = 10,
                                kNoDependencyMsg = 11,
                                kOleUnloadAppMsg = 12,
                                kPreQuitMsg      = 13 };

    enum	 AppRetCode   { kRetOK          = 0,
				kRetError	= 3 };
};
#endif

/* These messages are replaced by kLoadDwgMsg, and kUnloadDgwMsg.
 */
#ifndef kLoadADSMsg
#define kLoadADSMsg kLoadDwgMsg
#define kUnloadADSMsg kUnloadDwgMsg
#endif

#endif
