Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. ;------------------------------------------------------------------------------
  2. ;///// SYSTEM FUNCTIONS ///////////////////////////////////////////////////////
  3. ;------------------------------------------------------------------------------
  4.  
  5. MF_TERMINATE     = -1
  6. MF_DEFWINDOW     =  0
  7.   WS_GRADIENT    = $80000000
  8.   WS_NOSIZE      = $00000000
  9.   WS_TRANSP      = $01000000
  10.   WS_NORMAL      = $02000000
  11.   WS_SKINNED     = $03000000
  12. MF_PUTPIXEL      =  1
  13. MF_GETKEY        =  2
  14. MF_GETTIME       =  3
  15. MF_DRAWTEXT      =  4
  16.   DT_FIXED       = $00000000
  17.   DT_VARIABLE    = $10000000
  18. MF_DELAY         =  5
  19. MF_RDREADFILE    =  6
  20. MF_PUTIMAGE      =  7
  21. MF_DEFBUTTON     =  8
  22.   DB_ADD         = $00000000
  23.   DB_DELETE      = $80000000
  24.   BS_HIDDEN      = $40000000
  25. MF_PRINFO        =  9
  26.   PI_SELF        = $FFFFFFFF
  27. MF_WAITEVENT     = 10
  28. MF_CHKEVENT      = 11
  29. MF_WNDDRAW       = 12
  30.   WD_BEGINDRAW   =  1
  31.   WD_ENDDRAW     =  2
  32. MF_FILLRECT      = 13
  33.   FR_GRADIENT    = $80000000
  34. MF_GETSCRDIM     = 14
  35. MF_SETBKGND      = 15
  36.   BG_SETSIZE     =  1
  37.   BG_PUTPIXEL    =  2
  38.   BG_REDRAW      =  3
  39.   BG_SETSTYLE    =  4
  40.     BGS_TILE     =  1
  41.     BGS_STRETCH  =  2
  42.   BG_SETIMAGE    =  5
  43. MF_RAM2FLOP      = 16
  44.   R2F_ALL        =  1
  45. MF_GETPRSDBTNID  = 17
  46. MF_SYSSERV       = 18
  47.   SYS_QUIT       =  1
  48.   SYS_KILLPR     =  2
  49.   SYS_SETFOCUS   =  3
  50.   SYS_GETIDLE    =  4
  51.   SYS_SETSPEED   =  5
  52.   SYS_RAM2HARD   =  6
  53. MF_STARTPRG      = 19
  54. MF_MIDI          = 20
  55.   MIDI_RESET     =  1
  56.   MIDI_OUTPUT    =  2
  57. MF_DEVSETUP      = 21
  58.   DEV_MIDI       =  1
  59.   DEV_KEYB       =  2
  60.   DEV_CD         =  3
  61.   DEV_SB16       =  4
  62.   DEV_LANG       =  5
  63.   DEV_WSS        =  6
  64.   DEV_HD         =  7
  65.   DEV_HDPART     =  8
  66.   DEV_DMA        = 10
  67.   DEV_LOWHDACC   = 11
  68.   DEV_PCIACC     = 12
  69.   DEV_VIDEODRV   = 13
  70. MF_WAITEVWTO     = 23
  71. MF_CDAUDIO       = 24
  72.   CDA_PLAY       =  1
  73.   CDA_GETPLIST   =  2
  74.   CDA_STOP       =  3
  75. MF_SB16M1        = 25
  76.   SB_SETMAINVOL  =  1
  77.   SB_SETCDVOL    =  2
  78. MF_GETDEVPREF    = 26
  79.   DEV_GETTICKS   =  9
  80. MF_SOUNDPROPS    = 27
  81. MF_SB16M2        = 28
  82. MF_GETDATE       = 29
  83. MF_HDREADFILE    = 30
  84. MF_HDSTARTPRG    = 31
  85. MF_RDDELFILE     = 32
  86. MF_RDWRITEFILE   = 33
  87. MF_RDREADDIR     = 34
  88. MF_GETPIXEL      = 35
  89. MF_MOUSEINFO     = 37
  90.   MI_SCREENCRD   =  0
  91.   MI_CLIENTCRD   =  1
  92.   MI_BUTTONS     =  2
  93.     MB_NONE      =  0
  94.     MB_LEFT      =  1
  95.     MB_RIGHT     =  2
  96.     MB_BOTH      =  3
  97. MF_DRAWLINE      = 38
  98. MF_GETBKGND      = 39
  99.   GB_SIZE        =  1
  100.   GB_PIXEL       =  2
  101.   GB_STYLE       =  4
  102. MF_SETEVMASK     = 40
  103. MF_GETIRQOWNER   = 41
  104. MF_GETIRQDATA    = 42
  105. MF_PORTIO        = 43
  106. MF_SETIRQTABLE   = 44
  107. MF_MANAGEIRQS    = 45
  108.   IRQ_RESERVE    =  0
  109.   IRQ_RELEASE    =  1
  110. MF_MANAGEPORTS   = 46
  111.   PORT_RESERVE   =  0
  112.   PORT_RELEASE   =  1
  113. MF_DRAWNUMBER    = 47
  114.   DN_NUMBER      = $00000000
  115.   DN_POINTER     = $00000001
  116.   DN_DEC         = $00000000
  117.   DN_HEX         = $00000100
  118.   DN_BIN         = $00000200
  119. MF_WINPROPS      = 48
  120.   WP_REDRAW      =  0
  121.     WPR_DESKTOP  =  0
  122.   WP_SETBTNSTYLE =  1
  123.     BS_FLAT      =  0
  124.     BS_3D        =  1
  125.   WP_SETSYSCLRS  =  2
  126.   WP_GETSYSCLRS  =  3
  127.   WP_GETSKINH    =  4
  128. MF_WINFREEFORM   = 50
  129.   FF_SETSHAPE    =  0
  130.   FF_SETSCALE    =  1
  131. MF_THREAD        = 51
  132.   TH_CREATE      =  1
  133. MF_STACK         = 52
  134. MF_SOCKET        = 53
  135. MF_SOUND         = 55
  136.   SND_LOADBLOCK  =  0
  137.   SND_PLAYBLOCK  =  1
  138.   SND_SETFORMAT  =  2
  139.     SF_SETLENGTH =  1
  140. MF_HDWRITEFILE   = 56
  141. MF_HDDELFILE     = 57
  142. MF_FSACCESS      = 58
  143.   FS_READ        =  0
  144.   FS_WRITE       =  1
  145.   FS_DELETE      =  2
  146.   FS_APPEND      =  3
  147.   FS_LBAREAD     =  8
  148.   FS_LBAWRITE    =  9
  149.   FS_EXECUTE     = 16
  150. MF_SYSTRACE      = 59
  151.   ST_GETEVENTS   =  0
  152. MF_IPC           = 60
  153.   IPC_SETAREA    =  1
  154.   IPC_SENDMSG    =  2
  155. MF_GRAPHPROPS    = 61
  156.   GP_PERMIT      =  1
  157.   GP_GETBPP      =  2
  158.   GP_GETBPS      =  3
  159. MF_PCI           = 62
  160. MF_DEBUGBRD      = 63
  161.   DBG_WRITE      =  1
  162.   DBG_READ       =  2
  163. MF_MEMRESIZE     = 64
  164.   MR_SETSIZE     =  1
  165. MF_UTF           = 65
  166. MF_KEYBMODE      = 66
  167.   KM_SETMODE     =  1
  168.   KM_GETMODE     =  2
  169.  
  170. ;------------------------------------------------------------------------------
  171. ;///// ERROR CODES ////////////////////////////////////////////////////////////
  172. ;------------------------------------------------------------------------------
  173.  
  174. ERR_SUCCESS      =  0
  175.  
  176. ERR_FS_FIRST     =  1
  177. ERR_FS_LAST      =  6
  178.  
  179. ERR_IRQ_NODATA   =  1
  180. ERR_IRQ_BADOWNER =  2