;------------------------------------------------------------------------------
;///// SYSTEM FUNCTIONS ///////////////////////////////////////////////////////
;------------------------------------------------------------------------------

MF_TERMINATE     = -1
MF_DEFWINDOW     =  0
  WS_GRADIENT    = $80000000
  WS_NOSIZE      = $00000000
  WS_TRANSP      = $01000000
  WS_NORMAL      = $02000000
  WS_SKINNED     = $03000000
MF_PUTPIXEL      =  1
MF_GETKEY        =  2
MF_GETTIME       =  3
MF_DRAWTEXT      =  4
  DT_FIXED       = $00000000
  DT_VARIABLE    = $10000000
MF_DELAY         =  5
MF_RDREADFILE    =  6
MF_PUTIMAGE      =  7
MF_DEFBUTTON     =  8
  DB_ADD         = $00000000
  DB_DELETE      = $80000000
  BS_HIDDEN      = $40000000
MF_PRINFO        =  9
  PI_SELF        = $FFFFFFFF
MF_WAITEVENT     = 10
MF_CHKEVENT      = 11
MF_WNDDRAW       = 12
  WD_BEGINDRAW   =  1
  WD_ENDDRAW     =  2
MF_FILLRECT      = 13
  FR_GRADIENT    = $80000000
MF_GETSCRDIM     = 14
MF_SETBKGND      = 15
  BG_SETSIZE     =  1
  BG_PUTPIXEL    =  2
  BG_REDRAW      =  3
  BG_SETSTYLE    =  4
    BGS_TILE     =  1
    BGS_STRETCH  =  2
  BG_SETIMAGE    =  5
MF_RAM2FLOP      = 16
  R2F_ALL        =  1
MF_GETPRSDBTNID  = 17
MF_SYSSERV       = 18
  SYS_QUIT       =  1
  SYS_KILLPR     =  2
  SYS_SETFOCUS   =  3
  SYS_GETIDLE    =  4
  SYS_SETSPEED   =  5
  SYS_RAM2HARD   =  6
MF_STARTPRG      = 19
MF_MIDI          = 20
  MIDI_RESET     =  1
  MIDI_OUTPUT    =  2
MF_DEVSETUP      = 21
  DEV_MIDI       =  1
  DEV_KEYB       =  2
  DEV_CD         =  3
  DEV_SB16       =  4
  DEV_LANG       =  5
  DEV_WSS        =  6
  DEV_HD         =  7
  DEV_HDPART     =  8
  DEV_DMA        = 10
  DEV_LOWHDACC   = 11
  DEV_PCIACC     = 12
  DEV_VIDEODRV   = 13
MF_WAITEVWTO     = 23
MF_CDAUDIO       = 24
  CDA_PLAY       =  1
  CDA_GETPLIST   =  2
  CDA_STOP       =  3
MF_SB16M1        = 25
  SB_SETMAINVOL  =  1
  SB_SETCDVOL    =  2
MF_GETDEVPREF    = 26
  DEV_GETTICKS   =  9
MF_SOUNDPROPS    = 27
MF_SB16M2        = 28
MF_GETDATE       = 29
MF_HDREADFILE    = 30
MF_HDSTARTPRG    = 31
MF_RDDELFILE     = 32
MF_RDWRITEFILE   = 33
MF_RDREADDIR     = 34
MF_GETPIXEL      = 35
MF_MOUSEINFO     = 37
  MI_SCREENCRD   =  0
  MI_CLIENTCRD   =  1
  MI_BUTTONS     =  2
    MB_NONE      =  0
    MB_LEFT      =  1
    MB_RIGHT     =  2
    MB_BOTH      =  3
MF_DRAWLINE      = 38
MF_GETBKGND      = 39
  GB_SIZE        =  1
  GB_PIXEL       =  2
  GB_STYLE       =  4
MF_SETEVMASK     = 40
MF_GETIRQOWNER   = 41
MF_GETIRQDATA    = 42
MF_PORTIO        = 43
MF_SETIRQTABLE   = 44
MF_MANAGEIRQS    = 45
  IRQ_RESERVE    =  0
  IRQ_RELEASE    =  1
MF_MANAGEPORTS   = 46
  PORT_RESERVE   =  0
  PORT_RELEASE   =  1
MF_DRAWNUMBER    = 47
  DN_NUMBER      = $00000000
  DN_POINTER     = $00000001
  DN_DEC         = $00000000
  DN_HEX         = $00000100
  DN_BIN         = $00000200
MF_WINPROPS      = 48
  WP_REDRAW      =  0
    WPR_DESKTOP  =  0
  WP_SETBTNSTYLE =  1
    BS_FLAT      =  0
    BS_3D        =  1
  WP_SETSYSCLRS  =  2
  WP_GETSYSCLRS  =  3
  WP_GETSKINH    =  4
MF_WINFREEFORM   = 50
  FF_SETSHAPE    =  0
  FF_SETSCALE    =  1
MF_THREAD        = 51
  TH_CREATE      =  1
MF_STACK         = 52
MF_SOCKET        = 53
MF_SOUND         = 55
  SND_LOADBLOCK  =  0
  SND_PLAYBLOCK  =  1
  SND_SETFORMAT  =  2
    SF_SETLENGTH =  1
MF_HDWRITEFILE   = 56
MF_HDDELFILE     = 57
MF_FSACCESS      = 58
  FS_READ        =  0
  FS_WRITE       =  1
  FS_DELETE      =  2
  FS_APPEND      =  3
  FS_LBAREAD     =  8
  FS_LBAWRITE    =  9
  FS_EXECUTE     = 16
MF_SYSTRACE      = 59
  ST_GETEVENTS   =  0
MF_IPC           = 60
  IPC_SETAREA    =  1
  IPC_SENDMSG    =  2
MF_GRAPHPROPS    = 61
  GP_PERMIT      =  1
  GP_GETBPP      =  2
  GP_GETBPS      =  3
MF_PCI           = 62
MF_DEBUGBRD      = 63
  DBG_WRITE      =  1
  DBG_READ       =  2
MF_MEMRESIZE     = 64
  MR_SETSIZE     =  1
MF_UTF           = 65
MF_KEYBMODE      = 66
  KM_SETMODE     =  1
  KM_GETMODE     =  2

;------------------------------------------------------------------------------
;///// ERROR CODES ////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------

ERR_SUCCESS      =  0

ERR_FS_FIRST     =  1
ERR_FS_LAST      =  6

ERR_IRQ_NODATA   =  1
ERR_IRQ_BADOWNER =  2