! ASHELLO.DEF Version 1.1(114)  ! Standard A-Shell symbols (old format)
!--------------------------------------------------------------------------
!EDIT HISTORY
!VEDIT = 113
![113] March 13, 2005 03:00 PM          Edited by joaquin
!       Split out from ashell.bsi (also see ashell.def)
![114] March 31, 2005 11:15 AM          Edited by joaquin
!       Fix mixed up GOP2' symbols GOP2'LONGDIR thru GOP2'SEQLOK, VERSYS
!--------------------------------------------------------------------------

![116] This is only map statement here - needs to be a map so
![116] it is included in the run (to be displayed with VERSYS.LIT)
map1 VERSYS'ASHELL'DEF,s,40,">>@VERSYS(1)->>ashello.def[114]"

! MX'FSPEC formatting 
    define FS'DRV = 1       ! MX'FSPEC flags (1)
    define FS'FMA = 2       ! "    "     " (2)
    define FS'TOH = 4       ! "    "     "  (4)

! OCVT formatting MIAMEX functions
    define OT'ZER = &h00000001         ! Disable leading zero blanking (1)
    define OT'TRM = &h00000002         ! Output to terminal (2)
    define OT'MEM = &h00000004         ! Output to memory (4)
    define OT'LSP = &h00000010         ! Output leading space (16)
    define OT'TSP = &h00000020         ! Output trailing space (32)
    define OT'OCT = &h00000040         ! Force output in octal (64)


! GETODBC MIAMEX subfunctions
    define ODBC'AVAILABLE =   1        ! ODBC availability
    define ODBC'PPN       =   2        ! ODBC active per PPN
    define ODBC'FILE      =   3        ! ODBC active per file


! MIAMEX function codes
! map1 MIAMEX'symbols
    define MX'CMD'STATUS  =   1        ! Set and return command file status
    define MX'EXIT        =   2        ! Force A-Shell exit
    define MX'FSPEC       =   3        ! Perform FSPEC on AMOS string
    define MX'GETCTRLC    =   4        ! Return with Control-C is enabled
    define MX'GETECHO     =   5        ! Return whether terminal echo enabled
    define MX'SETPROMPT   =   6        ! Set A-Shell command prompt
    define MX'GETHEX      =   7        ! Return whether hex output enabled
    define MX'SETHEX      =   8        ! Set/reset hex output flag
    define MX'OCVT        =   9        ! Output number in hex or octal
    define MX'CHKPPN      =  10        ! Check for existence of PPN
    define MX'GETERSATZ   =  11        ! Return cyclic ERSATZ information
    define MX'GETVER      =  12        ! Get A-Shell version string
    define MX'WSET'STATUS =  13        ! Set and return WSET emulations
    define MX'VUE         =  14        ! Call into CVUE.C for editor
    define MX'COMPIL      =  15        ! Call into CCMPIL.C for compiler
    define MX'PREBAS      =  16        ! Call into CPRE.C for PREBAS
    define MX'SYNC'CWD    =  17        ! Synchronize current working directory
    define MX'NXTCMD      =  18        ! Return next line of command file
    define MX'GETDEV      =  19        ! Return cyclic device information
    define MX'FINDFIRST   =  20        ! Return first matching file
    define MX'FINDNEXT    =  21        ! Return next matching file
    define MX'DIRSEP      =  22        ! Return directory separator character
    define MX'FINDEND     =  23        ! End directory processing
    define MX'GETPROMPT   =  24        ! Get current prompt
    define MX'HASHFILE    =  25        ! Return file hash total
    define MX'PRFSPEC     =  26        ! Print file specification
    define MX'COPYFILE    =  27        ! Copy file contents
    define MX'PRINTERR    =  28        ! Print DDB error
    define MX'RENAMERR    =  29        ! Print RENAME DDB error
    define MX'GETQUEUE    =  30        ! Get queue block contents
    define MX'GETENV      =  31        ! Get value of environment variable
    define MX'SETEXT      =  32        ! Set default file extension
    define MX'MATCHWILD   =  33        ! Match wildcard for CMDLIN
    define MX'GETCISAM    =  34        ! Get C-ISAM version and serial #
    define MX'SETCRM      =  35        ! Set console redirect mode
    define MX'GETHASH     =  36        ! Get AMOS-hash mode
    define MX'SETHASH     =  37        ! Set/reset AMOS-hash mode
    define MX'MKPATH      =  38        ! Create path
    define MX'RMPATH      =  39        ! Delete path
    define MX'GETODBC     =  40        ! Return whether ODBC available
    define MX'ZAPQUEUE    =  41        ! Zap queue blocks for a job
    define MX'ODBCFIRST   =  42        ! Return first ODBC table
    define MX'ODBCNEXT    =  43        ! Return next ODBC table
    define MX'ODBCEND     =  44        ! End ODBC file search
    define MX'GETLOKSER   =  50        ! get lokser status
    define MX'SETLOKSER   =  51        ! set lokser status
    define MX'GETCMDINP   =  52        ! get cmd file input status
    define MX'SETCMDINP   =  53        ! set cmd file input status
    define MX'GETSIG      =  54        ! get signalrec
    define MX'CLRSIG      =  55        ! AND param to signalrec
    define MX'SETTERM     =  56        ! set TERM type
    define MX'KILL        =  57        ! kill a process
    define MX'SHOWLIC     =  58        ! [32] display license banner
    define MX'GETOPTIONS  =  59        ! [32] get OPTIONS= flags
    define MX'SETOPTIONS  =  60        ! [32] set OPTIONS= flags
    define MX'GETTRACE    =  61        ! [34] get TRACE= flags
    define MX'SETTRACE    =  62        ! [34] set TRACE= flags
    define MX'SETPFK      =  63        ! [35] load PFK
    define MX'GETPFK      =  64        ! [35] display loaded PFK name
    define MX'SCRNPIC     =  65        ! [36] pop-up screen picture dlg
    define MX'QRBLD       =  66        ! [36] qrebuild
    define MX'QLOCK       =  67        ! [36] qlock()
    define MX'QUNLOK      =  68        ! [36] qunlok()
    define MX'GETUMSK     =  69        ! [39] return umask
    define MX'SETUMSK     =  70        ! [39] set umask [44]
    define MX'WINMNU      =  71        ! [39] windows menu ops
    define MX'LITMSG      =  72        ! [39] print message from LITMSG.xxx
    define MX'READJCB     =  73        ! [41] read jcb rec
    define MX'WRITEJCB    =  74        ! [41] write jcb rec
    define MX'GETTIME     =  75        ! [41] get sys time (secs since?)
    define MX'TELSER      =  76        ! [43] telnet server mode
    define MX'SHOWWINDOW  =  77        ! [43] ShowWindow
    define MX'GETGDO      =  78        ! [45] Get global DO params
    define MX'SETGDO      =  79        ! [46] Set global DO params
    define MX'XCBINFOX    =  80        ! [48] Get XCALL param info
    define MX'XCBDATAX    =  81        ! [48] Get/Put XCALL params (in SBX)
    define MX'EXITSBXX    =  82        ! [49] Exit SBX to dot prompt
    define MX'GETFKW      =  83        ! [49] Get FKEYWAIT setting
    define MX'SETFKW      =  84        ! [49] Set FKEYWAIT
    define MX'TITLE       =  85        ! [50] Get/Set TITLE
    define MX'ERRNOMSG    =  86        ! [52] Get message for errno
    define MX'NOBUF       =  87        ! [52] Disable buffering on file
    define MX'FLUSHBUF    =  88        ! [52] Flush file buffer
    define MX'FLSETX      =  89        ! [52] FLSET
    define MX'BEVEL       =  90        ! [53] Bevelling
    define MX'SYSBCLR     =  91        ! [54]     define system bg color
    define MX'HOTKEY      =  92        ! [55] Disable / reenable pshell hotkeys
    define MX'ABOUT       =  93        ! [55] Get about-box info
    define MX'GETRC       =  94        ! [58] Get cursor Row / Col
    define MX'GETOFD      =  95        ! [58] Get OpenFile Dialog
    define MX'SHELLEX     =  96        ! [58] ShellExecute
    define MX'MKDIR       =  97        ! [58] Make Directory
    define MX'ATE         =  98        ! [58] Start ATE
    define MX'GETREG      =  99        ! [58] Read registry string
    define MX'PLAYSOUND   = 100        ! [63] Play sound
    define MX'GETSW       = 101        ! [58] Get swap wait time
    define MX'SETSW       = 102        ! [58] Set swap wait time
    define MX'CLFLAGS     = 103        ! [59] Get/set cl flags (see CLF'xxx)
    define MX'GETPID      = 104        ! [61] getpid
    define MX'CLIPBOARD   = 105        ! [62] get/set clipboard
    define MX'OSVER       = 106        ! [62] get OS version info
    define MX'USRMAP      = 107        ! [63] scan usr memory
    define MX'USRLOD      = 108        ! [63] load module into usr memory
    define MX'USRDEL      = 109        ! [63] delete module from usr memory
    define MX'USRSAV      = 110        ! [63] save module to disk
    define MX'USRIO       = 111        ! [64] read/write direct to memory
    define MX'AMOUSEXLT   = 112        ! [68] set AutoMouse translations
    define MX'MEMORY      = 113        ! [68] change memory size
    define MX'MARSHAL     = 114        ! [69] remote xcall marshalling
    define MX'IXCALL      = 115        ! [69] indirect xcall
    define MX'INICLR      = 116        ! [69] process ini.clr
    define MX'MAPI        = 117        ! [69] send MAPI mail
    define MX'FILEPOS     = 118        ! [72] get/set stream position
    define MX'WINBTN      = 119        ! [75] add Windows buttons
    define MX'WINCTL      = 119        ! [87] same as MX'WINBTN (better name)
    define MX'WINPTR      = 120        ! [75] prompt for Windows printer
    define MX'CHAINTO     = 121        ! [78] get/set chainto on priv err
    define MX'MMAPLIST    = 122        ! [85] get/set MMAPLIST
    define MX'SBRFLG      = 123        ! [85] get/set SBR= flags
    define MX'ASHLOG      = 124        ! [85] output to ashlog.log
    define MX'MCRS        = 125        ! [85] get last MCRS click info
    define MX'SINK        = 126        ! [85] sinkfield
    define MX'ROUND       = 127        ! [85] get/set rounding
    define MX'GETIP       = 128        ! [85] get IP address
    define MX'GUIFLG      = 129        ! [85] get/set GUI flags
    define MX'ASHFILE     = 130        ! [86] get settings (.ash) filename
    define MX'FILESTATS   = 131        ! [87] get file stats
    define MX'FTFORMAT    = 132        ! [88] format file time (from FILESTATS)
    define MX'EXPFIL      = 133        ! [89] expand file
    define MX'SYNC        = 134        ! [90] sync
    define MX'BTNIDLE     = 135        ! [96] idle waiting on buttons
    define MX'SETREDRAW   = 136        ! [100] set redraw on/off (Win)
    define MX'HTMLHELP    = 137        ! [100] context sensitive help
    define MX'REGISTRY    = 138        ! [100] registry ops (Win)
    define MX'LODIMG      = 139        ! [101] (not yet ready)
    define MX'ATECTL      = 140        ! [101] ATE control socket ops
    define MX'AUTOPARENT  = 141        ! [101] set automatic TPRINT parent
    define MX'CMDKBD      = 142        ! [103] get last :K{0-9}
    define MX'INFDEF      = 143        ! [103] SBR=INFDEF:
    define MX'DEBUG       = 144        ! [105] get/set debug level


! *** Signal Symbols (UNIX signal numbers are not necessarily standard) 
    define SR'INT     = &h00000001     ! (SIGINT)  interrupt signal (1)
    define SR'CHILD   = &h00000002     ! (SIGCHLD) child process died (2)
    define SR'USR1    = &h00000004     ! (SIGUSR1) (4)
    define SR'USR2    = &h00000008     ! (SIGUSR2) (8)
    define SR'HUP     = &h00000010     ! (SIGHUP)  (16)
    define SR'KILL    = &h00000020     ! (SIGKILL) (32)
    define SR'TSTP    = &h00000040     ! (SIGTSTP) (64)
    define SR'ALARM   = &h00000080     ! (SIGALRM) (128)


! *** Options Symbols (OPTIONS= in miame.ini) [32]
    define GOP'CRNL         = &h00000001     ! [32] force CRNL line terminators (1)
    define GOP'EXTFIO       = &h00000002     ! [32] allow 'extended' file i/o (2)
    define GOP'AS400        = &h00000004     ! [32] AS400 mode: strip 8's & 11's (4)
    define GOP'LATIN1       = &h00000008     ! [32] map Latin1 chars to OEM set for display (8)
    define GOP'OEM          = &h00000010     ! [32] set internally if using an OEM font (Windows) (16)
    define GOP'EFFUSR       = &h00000020     ! [32] use EFFECTIVE user instead of LOGIN (32)
    define GOP'AMOSRUNSBR   = &h00000040     ! [51] AMOS_RUNSBR (64)
    define GOP'BRKALC       = &h00000080     ! [37] BRKALC (128)
    define GOP'HEXDEC       = &h00000100     ! [37] HEXDEX (256)
    define GOP'NOLEADFF     = &h00000200     ! [37] NOLEADFF (512)
    define GOP'NOAUTOXLT    = &h00000400     ! [37] NOAUTOXLT (1024)
    define GOP'NTTS         = &h00000800     ! [37] NTTS (2048)
    define GOP'FPROUND      = &h00001000     ! [37] FPROUND (4096)
    define GOP'FLDEMU       = &h00002000     ! [38] FIELDEMU (8192)
    define GOP'EXITWAIT     = &h00004000     ! [39] EXITWAIT (16384)
    define GOP'ABSLOOKUP    = &h00008000     ! [40] ABSLOOKUP (32768)
    define GOP'QCLOSE       = &h00010000     ! [51] auto close queue after inst upd (65536)
    define GOP'QBUFFER      = &h00020000     ! [51] normal queue buffering (no flush) (131072)
    define GOP'LOCALCOPIES  = &h00040000     ! [51] hdl prt copies with mult subs (262144)
    define GOP'SHLPATH      = &h00080000     ! [51] special SHL path mod (524288)
    define GOP'AUTOCCON     = &h00100000     ! [51] enable ^C at each prog start (1048576)
    define GOP'RAWTABS      = &h00200000     ! [51] raw tab output to screen (2097152)
    define GOP'XABORT       = &h00400000     ! [62] allow X out window (sighup) (4194304)
    define GOP'NOXABORT     = &h00800000     ! [62] disable OK in abort dialog (8388608)
    define GOP'STRICT       = &h01000000     ! [62] attempt strict AMOS compliance (16777216)
    define GOP'NUMPAD'COMMA = &h02000000     ! [62] treat numpad period as comma (33554432)
    define GOP'AUTOX        = &h04000000     ! [62] allow autoexpansion (67108864)
    define GOP'ISAM'IDXLOK  = &h08000000     ! [62] lock entire idx; not just rock (134217728)
    define GOP'MMAPTIME     = &h10000000     ! [70] manual update of mmap timestamps (268435456)
    define GOP'AUTO'MEMOPEN = &h20000000     ! [70] auto chk mem on random open (536870912)

    define GOP2'NOPSDLG      = &h00000001    ! [84] No print screen dialog (1)
    define GOP2'NODELSYS     = &h00000002    ! [84] don't delete .sys files ever (2)
    define GOP2'GUISPCINDENT = &h00000008    ! [84] GUI space indent logic (8)
    define GOP2'AUTOTPRINT   = &h00000010    ! [84] GUI auto TPRINT (16)
    define GOP2'EFS'OUT'AMOS = &h00000100    ! [95] (EFS) encrypt amos output (256)
    define GOP2'EFS'OUT'HOST = &h00000200    ! [95] (EFS) encrypt native output (512)
    define GOP2'EFS'ALLOCATE = &h00000400    ! [95] (EFS) encrypt on ALLOCATE (1024)
    define GOP2'EFS'ALCINDEX = &h00000800    ! [95] (EFS) encrypt ALLOCATE'INDEXED (2048)
    define GOP2'INI'AV       = &h00001000    ! [95] use ini.av instead of ini.vue (4096)
    define GOP2'SBX'RUNDIR   = &h00002000    ! [95] search for SBX in RUN dir first (8192)
    define GOP2'NOSPOOL      = &h00004000    ! [95] disable spooling (16384)
    define GOP2'NOCAPTURE    = &h00008000    ! [95] disable screen capture (^P) (32768)
![114] these were wrong...
!   define GOP2'LONGDIR      = &h00010000    ! [99] LONGDIR /jdm (65536)
!   define GOP2'MSYNC'MAP    = &h00020000    ! [110] msync entire map on write (131072)
!   define GOP2'MSYNC'PAGE   = &h00040000    ! [110] msync page on write (262144)
!   define GOP2'NTTS         = &h00080000    ! [110] variation of NTTS (524288)
!   define GOP2'SEQLOK       = &h00100000    ! [110] seq. file locking (UNIX) (1048576)
![114] should be...
    define GOP2'MSYNC'MAP    = &h00010000    ! [114] msync entire map on write (65536)
    define GOP2'MSYNC'PAGE   = &h00020000    ! [114] msync page on write (131072)
    define GOP2'NTTS         = &h00040000    ! [114] variation of NTTS (262144)
    define GOP2'SEQLOK       = &h00080000    ! [114] seq. file locking (UNIX) (524288)
    define GOP2'LONGDIR      = &h00100000    ! [114] LONGDIR /jdm (1048576)


! *** GUI FLAGS (used by MIAMEX,129)    ! [84]
! map1 AGF'GUIFLAGS        ! [84]
    define AGF'LWG     = &h00000001    ! [84] Local Windows Gui (1)
    define AGF'LWN     = &h00000002    ! [84] Local Windows Non-gui (2)
    define AGF'ATE     = &h00000004    ! [84] ATE client (4)
    define AGF'RWN     = &h00000008    ! [84] Remote WiNdows (ATSD) (8)
    define AGF'TNT     = &h00000010    ! [84] TelNeT (16)
    define AGF'ASH     = &h00000020    ! [84] A-Shell (not AMOS) (32)
    define AGF'THEMES  = &h00000040    ! [97] XP themes active (64)

    define AGF'LOCWIN  = &h00000003    ! [84] Local Windows (GUI or non)
    define AGF'ANYWIN  = &h0000000B    ! [84] Windows (local or remote)
    define AGF'GUIEXT  = &h00000005    ! [84] GUI EXTensions available
    define AGF'LWNATE  = &h00000007    ! [90] Local WiNdows or ATE


! *** TRACE Symbols (TRACE= in miame.ini) [34]
    define TROP'AMSORT = &h00000001    ! [34] AMSORT (1)
    define TROP'SYSERR = &h00000002    ! [34] SYSERR (2)
    define TROP'SQL    = &h00000004    ! [34] SQL (4)
    define TROP'LP     = &h00000008    ! [34] LP (8)
    define TROP'SIGNAL = &h00000010    ! [34] SIGNAL (16)
    define TROP'SIGHUP = &h00000020    ! [34] SIGHUP (32)
    define TROP'LOCKS  = &h00000040    ! [36] LOCKS (64)
    define TROP'LOG    = &h00000080    ! [42] LOG (128)
    define TROP'JOBS   = &h00000100    ! [42] JOBS (256)
    define TROP'QOPEN  = &h00000200    ! [42] QOPEN (512)
    define TROP'GDIPRT = &h00000400    ! [42] GDIPRT (1024)
    define TROP'FOPENS = &h00000800    ! [42] FOPENS (2048)
    define TROP'XCALL  = &h00001000    ! [48] FOPENS (4096)
    define TROP'AMOS   = &h00002000    ! [51] AMOS (8192)
    define TROP'DEBUG  = &h00004000    ! [62] DEBUG (16384)
    define TROP'INOUT  = &h00008000    ! [62] INOUT (32768)
    define TROP'BASERR = &h00010000    ! [62] BASERR (65536)
    define TROP'ISAM   = &h00020000    ! [62] ISAM (131072)
    define TROP'USRMEM = &h00040000    ! [63] USRMEM (262144)
    define TROP'MALLOC = &h00080000    ! [63] MALLOC (524288)
    define TROP'RW     = &h00100000    ! [71] RW (1048576)
    define TROP'SOCKS  = &h00200000    ! [85] SOCKS (2097152)
    define TROP'XLOCKS = &h00400000    ! [85] XLOCKS (4194304)
    define TROP'XDEBUG = &h00800000    ! [85] XDEBUG (8388608)
    define TROP'PERF   = &h01000000    ! [85] PERF (16777216)
    define TROP'GUI    = &h02000000    ! [85] GUI (33554432)
    define TROP'EFS    = &h04000000    ! [104] EFS(ERS) (67108864)
    define TROP'ATE    = &h08000000    ! [104] ATE (134217728)


! *** System message symbols (used with MIAMEX,72,...) 
    define MSG'CMDLIN  =  0            ! [39] misc CMDLIN messages
    define MSG'ABOUT   =  1            ! [55] ABOUT.LIT messages
    define MSG'TELSER  =  2            ! [??] TELSER.LIT messages
    define MSG'SEND    =  3            ! [56] SEND.LIT messages
    define MSG'FORCE   =  4            ! [60] FORCE.LIT messages
    define MSG'TAIL    =  5            ! [65] TAIL.LIT messages
    define MSG'MAP     =  6            ! [67] MAP.LIT messages
    define MSG'TYPE    =  7            ! [74] TYPE.LIT messages
    define MSG'HEAD    =  8            ! [74] HEAD.LIT messages
    define MSG'TELNET  =  9            ! [74] TELNET.LIT messages
    define MSG'LICENS  = 10            ! [76] LICENS.LIT messages


! *** Command line flags, used by MX'CLFLAGS ...
    define CLF'VER        = &h00000001     ! [59] -v (1)
    define CLF'EXIT       = &h00000002     ! [59] -e (2)
    define CLF'DEV        = &h00000008     ! [62] -d (8)
    define CLF'INI        = &h00000010     ! [62] -i (16)
    define CLF'NOHANG     = &h00000100     ! [59] -h (256)
    define CLF'HANGDELAY  = &h00000400     ! [59] -hd (1024)
    define CLF'HANGPARENT = &h00000800     ! [59] -hp (2048)
    define CLF'QUIET      = &h00001000     ! [59] -q (4096)
    define CLF'SUBMIT     = &h00002000     ! [59] -t (8192)
    define CLF'SETTINGS   = &h00004000     ! [62] -o (16384)
    define CLF'CHILD      = &h00008000     ! [59] -2 (32768)
    define CLF'NOPSH      = &h00010000     ! [59] -1 (65536)
    define CLF'HIDE       = &h00020000     ! [59] -z (131072)
    define CLF'SNAPSHOTS  = &h00040000     ! [59] -ba (262144)
    define CLF'MAXFOCUS   = &h00080000     ! [59] -m (524288)
    define CLF'NOX        = &h00100000     ! [59] -mx (1048576)
    define CLF'CGI        = &h00200000     ! [59] -cgi (2097152)
    define CLF'ATS        = &h00800000     ! [59] ATS connection (8388608)
    define CLF'HEI        = &h01000000     ! [59] -hei (16777216)
    define CLF'HETCKI     = &h02000000     ! [59] -hetcki (33554432)
    define CLF'LITE       = &h04000000     ! [72] -lite (67108864)
    define CLR'LIC        = &h08000000     ! [72] -lic <key> (134217728)
    define CLF'MIN        = &h10000000     ! [72] -min (268435456)
    define CLF'SYSTRAY    = &h20000000     ! [72] -zi (536870912)


! *** USRMEM flags, used by MX'USRxxx ...
    define USRMEM'INUSE   = &h00000001     ! [67] module in use (was AUTOLOAD) (1)
    define USRMEM'LOCKED  = &h00000002     ! [63] module locked or in use (2)
    define USRMEM'PERM    = &h00000004     ! [66] permanent (was NOCACHE) (4)
    define USRMEM'CACHE   = &h00000008     ! [67] module cached (8)
    define USRMEM'UNLOCK  = &h00000010     ! [67] unlock locked module (cmd flg) (16)
    define USRMEM'NOFILE  = &h00000020     ! [106] load directly from variable (32)


! *** Menu and Button type flags (used in AUI, CONTROL) ...
    define MBF'BUTTON       = &h00000000     ! [95] (default type ctl type) (0)
    define MBF'CMDLIN       = &h00000000     ! [76] action is cmd line (dft. action) (0)
    define MBF'DLL          = &h00000001     ! [76] action is DLL (1)
    define MBF'CHKBOX       = &h00000004     ! [76] checkbox (4)
    define MBF'3STATE       = &h00000008     ! [76] 3 state chkbox (8)
    define MBF'SUBMNU       = &h00000010     ! [80] submenu (16)
    define MBF'AUTORADIOBTN = &h00000010     ! [87] auto radio btn (shares w/ submnu) (16)
    define MBF'RADIOBTN     = &h00000010     ! [88] same as auto radio btn (16)
    define MBF'LFTEXT       = &h00000020     ! [76] chkbox txt left (box right) (32)
    define MBF'LFJUST       = &h00000040     ! [76] left justify text (64)
    define MBF'RTJUST       = &h00000080     ! [76] right justify text (128)
    define MBF'BITMAP       = &h00000100     ! [76] button displays bitmap (256)
    define MBF'SYSMENU      = &h00000100     ! [92] (with MBF'DIALOG enables system menu) (256)
    define MBF'ICON         = &h00000200     ! [76] button displays icon (512)
    define MBF'TABSTOP      = &h00000400     ! [107] control is a tabstop (1024)
    define MBF'SEP          = &h00000800     ! [80] separator (2048)
    define MBF'SUNKEN       = &h00001000     ! [81] sunken static control (4096)
    define MBF'READONLY     = &h00001000     ! [93] read only (with MBF'EDIT) (4096)
    define MBF'KBD          = &h00010000     ! [76] action is kbd (65536)
    define MBF'SHLEXC       = &h00020000     ! [76] action is shell execute (131072)
    define MBF'STATIC       = &h00040000     ! [81] static text control (262144)
    define MBF'EDIT         = &h00080000     ! [81] edit control (524288)
    define MBF'ALTPOS       = &h00100000     ! [111] alt button position logic (1048576)
    define MBF'WORDELLIPSIS = &h00200000     ! [81] word ellipsis (static) (2097152)
    define MBF'PATHELLIPSIS = &h00400000     ! [81] path ellipsis (static) (4194304)
    define MBF'WRAP         = &h00400000     ! [109] multiline wrap (buttons only) (4194304)
    define MBF'NODISTORT    = &h00400000     ! [109] maintain aspect ratio (icon buttons) (4194304)
    define MBF'MODELESS     = &h00400000     ! [112] modeless dialog (w/ MBF'DIALOG) (4194304)
    define MBF'DIM          = &h00800000     ! [82] dim attribute (static) (8388608)
    define MBF'LISTBOX      = &h01000000     ! [82] listbox (16777216)
    define MBF'FRAME        = &h02000000     ! [82] frame around static text (33554432)
    define MBF'GROUPBOX     = &h02000000     ! [88] group box (33554432)
    define MBF'COMBOBOX     = &h04000000     ! [82] combobox (not yet) (67108864)
    define MBF'UNPROTECTED  = &h08000000     ! [83] unprotects buttons (134217728)
    define MBF'PROGRESS     = &h10000000     ! [85] progress bar (268435456)
    define MBF'DIALOG       = &h20000000     ! [91] dialog box (536870912)
    define MBF'TAB          = &h40000000     ! [94] tab control (1073741824)

! *** [112] AUI Classes ...
    define AUI'CONTROL 	   = "CONTROL"       ! [112] control ops
    define AUI'WINDOW      = "WINDOW"        ! [112] window ops
    define AUI'ENVIRONMENT = "ENVIRONMENT"   ! [112] get environment info
    define AUI'EVENTWAIT   = "EVENTWAIT"     ! [112] wait for events
    define AUI'MENU        = "MENU"          ! [112] menu ops 
    define AUI'IMAGE       = "IMAGE"         ! [112] image display
    define AUI'HTMLHELP    = "HTMLHELP"      ! [112] HTML-style help ops

! *** [112] AUI'CONTROL opcodes
    define CTLOP'INFO    = 0              ! [112] query a control
    define CTLOP'ADD     = 1              ! [112] add a control
    define CTLOP'CHG     = 2              ! [112] change a control
    define CTLOP'DEL     = 3              ! [112] delete a control
    define CTLOP'CLR     = 4              ! [112] clear controls in area
    define CTLOP'QRYCB   = 5              ! [112] query checkbox
    define CTLOP'SVA     = 6              ! [112] save controls within area
    define CTLOP'RSA     = 7              ! [112] restore saved controls
    define CTLOP'SBCH    = 8              ! [112] start batch
    define CTLOP'EBCH    = 9              ! [112] end batch
    define CTLOP'GETID   = 10             ! [112] get control ID (by coords)
    define CTLOP'PANE    = 11             ! [112] set TAB control pane

! *** Menu and Button state flags (used in AUI CONTROL) ...
    define MBST'ENABLE  = &h00000000     ! [76] enable (0)
    define MBST'DISABLE = &h00000001     ! [76] disable (gray) (1)
    define MBST'HIDE    = &h00000004     ! [76] hide (4)
    define MBST'SHOW    = &h00000008     ! [76] unhide (8)
    define MBST'CHANGE  = &h00000080     ! [76] change text and command (128)


! *** [81] Windows color index names ...
!    map1 COLOR'WINDOWS'INDEX    ! [81] Windows color indices 
    define COLOR'SCROLLBAR           = 0     ! [81] scrollbar color
    define COLOR'BACKGROUND          = 1     ! [81]
    define COLOR'ACTIVECAPTION       = 2     ! [81]
    define COLOR'INACTIVECAPTION     = 3     ! [81]
    define COLOR'MENU                = 4     ! [81]
    define COLOR'WINDOW              = 5     ! [81] usually white
    define COLOR'WINDOWFRAME         = 6     ! [81]
    define COLOR'MENUTEXT            = 7     ! [81]
    define COLOR'WINDOWTEXT          = 8     ! [81]
    define COLOR'CAPTIONTEXT         = 9     ! [81]
    define COLOR'ACTIVEBORDER        = 10    ! [81]
    define COLOR'INACTIVEBORDER      = 11    ! [81]
    define COLOR'APPWORKSPACE        = 12    ! [81]
    define COLOR'HIGHLIGHT           = 13    ! [81]
    define COLOR'HIGHLIGHTTEXT       = 14    ! [81]
    define COLOR'BTNFACE             = 15    ! [81] usually gray
    define COLOR'BTNSHADOWN          = 16    ! [81]
    define COLOR'GRAYTEXT            = 17    ! [81]
    define COLOR'BTNTEXT             = 18    ! [81]
    define COLOR'INACTIVECAPTIONTEXT = 19    ! [81]
    define COLOR'BTNHIGHLIGHT        = 20    ! [81]
    define COLOR'3DDKSHADOW          = 21    ! [81]
    define COLOR'3DLIGHT             = 22    ! [81]
    define COLOR'INFOTEXT            = 23    ! [81]
    define COLOR'INFOBK              = 24    ! [81]
    define COLOR'HOTLIGHT            = 26    ! [81]


! *** [94] Windows style names (for dwStyle parameter in TAB(-10,20)) ...
! map1 WINDOW'STYLE'FLAGS     ! [94]
    define WS'VISIBLE    = &h10000000     ! [94] window visible (268435456)
    define WS'CHILD      = &h40000000     ! [94] child window (1073741824)
    define SS'BLACKRECT  = &h00000004     ! [94] static type - black rect
    define SS'GRAYRECT   = &h00000005     ! [94] static type - gray rect
    define SS'WHITERECT  = &h00000006     ! [94] static type - white rect
    define SS'BLACKFRAME = &h00000007     ! [94] static type - black frame
    define SS'GRAYFRAME  = &h00000008     ! [94] static type - gray frame
    define SS'WHITEFRAME = &h00000009     ! [94] static type - white frame
    define SS'SUNKEN     = &h00001000     ! [94] static option - sunken (4096)


! map1 TAB'STYLES            ! [94] tab control styles
    define TCS'FLATBUTTONS    = &h00000008     ! [94] flat button style (w/ TCS'BUTTONS) (8)
    define TCS'FORCELABELLEFT = &h00000020     ! [94] left justify label text (32)
    define TCS'BUTTONS        = &h00000100     ! [94] buttons instead of tabs (256)
    define TCS'MULTILINE      = &h00000200     ! [94] multiline (512)
    define TCS'FIXEDWIDTH     = &h00000400     ! [94] fixed width tabs (1024)


    define CHARSET'SYMBOL     = &h00020000     ! [95] add to font attr for symbol set (131072)


!map1 REGISTRY'SYMBOLS        ! [100]
    define HKEY'CLASSES'ROOT  = &h80000000     ! (2147483648)
    define HKEY'CURRENT'USER  = &h80000001     ! (2147483649)
    define HKEY'LOCAL'MACHINE = &h80000002     ! (2147483650)
    define HKEY'USERS         = &h80000003     ! (2147483651)


! registry data types...
    define REG'NONE      = 0
    define REG'SZ        = 1
    define REG'EXPAND'SZ = 2
    define REG'BINARY    = 3
    define REG'DWORD     = 4
    define REG'MULTI'SZ  = 7

! registry access rights (combine)
    define RGKEY'QUERY'VALUE    = &h00000001     ! (1)
    define RGKEY'SET'VALUE      = &h00000002     ! (2)
    define RGKEY'CREATE'SUB'KEY = &h00000004     ! (4)
    define RGKEY'ENUM'SUB'KEYS  = &h00000008     ! (8)

! *** [108] AUI,EVENTWAIT opcode flags
    define EVW'NEXT     = &h00000001     ! start with focus on control AFTER specified one (1)
    define EVW'NOWAIT   = &h00000002     ! set focus and exit without waiting (2)
    define EVW'NOWRAP   = &h00000004     ! exit when hitting edge of group (instead of wrapping) (4)
    define EVW'NOFOCUS  = &h00000008     ! no changes to focus (just wait for an exit event) (8)
    define EVW'NUMERIC  = &h00000010     ! allow numeric keyboard input (16)
    define EVW'DESCEND  = &h00000020     ! descend into subgroups of parent (32)
    define EVW'SIBLINGS = &h00000040     ! expand range to include siblings of parent (64)
    define EVW'INFLD    = &h00000080     ! [113] support INFLD 
    define EVW'PREV     = &h00000100     ! [113] opposite of EVW'NEXT
    define EVW'SQUELCH  = &h00000200     ! [113] squelch radiobtn exits on arrows
    define EVW'TABEXIT  = &h00000400     ! [113] exitcode 7/13 on TAB/ShiftTAB

