
#define WCMDGloName "@WCMD_NEW"

#define _SaveOnDeactivate 0x0001
#define _ReloadOnActivate 0x0002
#define _ChangedOnTime    0x0100
#define _ChangedOnAttr    0x0200

#define _UtilsDir					( Me_Path + "UTILS\\" )
#define _DefaultDir				( Me_Path + "DEFAULTS\\" )
#define _ConfigDir				( Me_Path + "CONFIG\\" )
#define _ConfigVer        7101

global
{
  int MEW_ShowCmd       "&Mew_Showcmd";
  int NeedLoadWcmds     "!NeedLoadWcmds";
  str WcmdmapName       "&WcmdmapName";
  str WcmdmapInit       "&WcmdmapInit";
  int BriefMode         "&BriefMode";
  int Nofile_Hidden			"!NoFile_Hidden";
  int ActivateFlags     "!ActivateFlags";
  int BtnOnRight        "&BtnOnRight";
  int MsgOnLeft         "&MsgOnLeft";
  int g_DefaultRuler    "!DefaultRuler";
  int g_DefaultAllRuler	"!DefaultAllRuler";
	int Binary_Mode				"#Binary_Mode";
	int g_ShiftCursorMode "#g_ShiftCursorMode";
	int g_NoSplash			  "!g_NoSplash";
  int g_Config_Version  "#Config_Version";
	int g_TabIndentsBlock	"#TabIndentsBlock";
}

Prototype Mew
{
	void ProcessMEWInit ();
	void RebuildWcmds   ();
	void CommandMapEdit ();

		// Gets a tempory wcmd to use
	int GetAvailableWcmd(
												int wcmdToUse, // Existing wcmd to use, else 0
												int startNum   // Number to start counting back from
																			 // if 0, then 9999 is used
												);

		// Removes a temporary wcmd from the list
	void ReleaseWcmd    ( int wcmd );

		// Registers the DLLs in the Resource Registry.  Not normally called
		// except during initialization
	void RegisterDLLList();
	void ProcessMsgQueue( int mcount );

		// Returns a string representation of the file time/date that is passed
		// in ftime.
	str FileDateTimeStr( int ftime );

	int QueryPackage( str PackageName );
/******************************************************************************
	Function: Check to see if an addon package is installed and enabled

	Entry   : str PackageName	- The registered addon package name

	Exit    : int
							True 		- Package installed and enabled
							False   - Package not enabled or not installed

	Macros	: int DbGetPage
********************************************************************( ldh )***/

	void ProcessPkgInit( int RegisterDlls );
/******************************************************************************
	Function: Register all enabled packages DLLs and run their init macros.

	Entry   : str RegisterDlls	- Set True when the package specific DLLs are to
																be registered.
	Macros	: int DbGetPage
********************************************************************( ldh )***/
}
