Rev 6683 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6683 | Rev 7104 | ||
---|---|---|---|
1 | ; KolibriOS system functions: |
1 | ; KolibriOS system functions: |
2 | SF_TERMINATE_PROCESS=-1 |
2 | SF_TERMINATE_PROCESS=-1 |
3 | SF_CREATE_WINDOW=0 ; define and draw the window |
3 | SF_CREATE_WINDOW=0 ; define and draw the window |
4 | SF_PUT_PIXEL=1 ; draw pixel to the window |
4 | SF_PUT_PIXEL=1 ; draw pixel to the window |
5 | SF_GET_KEY=2 ; get code of the pressed key |
5 | SF_GET_KEY=2 ; get code of the pressed key |
6 | SF_GET_SYS_TIME=3 |
6 | SF_GET_SYS_TIME=3 |
7 | SF_DRAW_TEXT=4 |
7 | SF_DRAW_TEXT=4 |
8 | SF_SLEEP=5 ; pause process |
8 | SF_SLEEP=5 ; pause process |
9 | SF_PUT_IMAGE=7 ; draw image to the window |
9 | SF_PUT_IMAGE=7 ; draw image to the window |
10 | SF_DEFINE_BUTTON=8 ; define/delete the button |
10 | SF_DEFINE_BUTTON=8 ; define/delete the button |
11 | SF_THREAD_INFO=9 ; information on execution thread |
11 | SF_THREAD_INFO=9 ; information on execution thread |
12 | SF_WAIT_EVENT=10 ; wait for event |
12 | SF_WAIT_EVENT=10 ; wait for event |
13 | SF_CHECK_EVENT=11 ; check for event and return |
13 | SF_CHECK_EVENT=11 ; check for event and return |
14 | SF_REDRAW=12 |
14 | SF_REDRAW=12 |
15 | SSF_BEGIN_DRAW=1 |
15 | SSF_BEGIN_DRAW=1 |
16 | SSF_END_DRAW=2 |
16 | SSF_END_DRAW=2 |
17 | SF_DRAW_RECT=13 ; draw rectangle to the window |
17 | SF_DRAW_RECT=13 ; draw rectangle to the window |
18 | SF_GET_SCREEN_SIZE=14 ; get screen resolution |
18 | SF_GET_SCREEN_SIZE=14 ; get screen resolution |
19 | SF_BACKGROUND_SET=15 |
19 | SF_BACKGROUND_SET=15 ; work with desktop background graphics |
20 | SSF_SIZE_BG=1 |
20 | SSF_SIZE_BG=1 ; set a size of the background image |
21 | SSF_PIXEL_BG=2 |
21 | SSF_PIXEL_BG=2 ; put pixel on the background image |
22 | SSF_REDRAW_BG=3 |
22 | SSF_REDRAW_BG=3 ; redraw background |
23 | SSF_MODE_BG=4 |
23 | SSF_MODE_BG=4 ; set drawing mode for the background |
24 | SSF_IMAGE_BG=5 |
24 | SSF_IMAGE_BG=5 ; put block of pixels on the background image |
25 | SSF_MAP_BG=6 ; map background image to the address space of the process |
25 | SSF_MAP_BG=6 ; map background image to the address space of the process |
26 | SSF_UNMAP_BG=7 |
26 | SSF_UNMAP_BG=7 ; close mapped background data |
27 | SSF_LAST_DRAW=8 ; get coordinates of the last draw to the background |
27 | SSF_LAST_DRAW=8 ; get coordinates of the last draw to the background |
28 | SSF_REDRAW_RECT=9 ; redraws a rectangular part of the background |
28 | SSF_REDRAW_RECT=9 ; redraws a rectangular part of the background |
29 | SF_RD_TO_FLOPPY=16 ; save ramdisk on the floppy |
29 | SF_RD_TO_FLOPPY=16 ; save ramdisk on the floppy |
30 | SF_GET_BUTTON=17 ; get ID of the pressed button |
30 | SF_GET_BUTTON=17 ; get ID of the pressed button |
31 | SF_SYSTEM=18 |
31 | SF_SYSTEM=18 |
32 | SSF_UNFOCUS_WINDOW=1 ; take focus from the window of the given thread |
32 | SSF_UNFOCUS_WINDOW=1 ; take focus from the window of the given thread |
33 | SSF_TERMINATE_THREAD=2 ; terminate process/thread by the slot number |
33 | SSF_TERMINATE_THREAD=2 ; terminate process/thread by the slot number |
34 | SSF_FOCUS_WINDOW=3 ; give focus to the window of the given thread |
34 | SSF_FOCUS_WINDOW=3 ; give focus to the window of the given thread |
35 | SSF_GET_IDLE_COUNT=4 ; get counter of idle cycles per second |
35 | SSF_GET_IDLE_COUNT=4 ; get counter of idle cycles per second |
36 | SSF_GET_CPU_FREQUENCY=5 ; get CPU clock rate |
36 | SSF_GET_CPU_FREQUENCY=5 ; get CPU clock rate |
37 | SSF_RD_TO_HDD=6 ; save ramdisk to the file on hard disk |
37 | SSF_RD_TO_HDD=6 ; save ramdisk to the file on hard disk |
38 | SSF_GET_ACTIVE_WINDOW=7 ; get slot number of the active window |
38 | SSF_GET_ACTIVE_WINDOW=7 ; get slot number of the active window |
39 | SSF_SPEAKER=8 |
39 | SSF_SPEAKER=8 |
40 | SSSF_GET_STATE=1 |
40 | SSSF_GET_STATE=1 |
41 | SSSF_TOGGLE=2 |
41 | SSSF_TOGGLE=2 |
42 | SSF_SHUTDOWN=9 ; system shutdown/reboot |
42 | SSF_SHUTDOWN=9 ; system shutdown/reboot |
43 | SSF_MINIMIZE_WINDOW=10 ; minimize active window |
43 | SSF_MINIMIZE_WINDOW=10 ; minimize active window |
44 | SSF_INFO_DISC_SYS=11 ; get disk subsystem information |
44 | SSF_INFO_DISC_SYS=11 ; get disk subsystem information |
45 | SSF_KERNEL_VERSION=13 ; get kernel version |
45 | SSF_KERNEL_VERSION=13 ; get kernel version |
46 | SSF_WAIT_RETRACE=14 ; wait for screen retrace |
46 | SSF_WAIT_RETRACE=14 ; wait for screen retrace |
47 | SSF_CURSOR_CENTER=15 ; center mouse cursor on the screen |
47 | SSF_CURSOR_CENTER=15 ; center mouse cursor on the screen |
48 | SSF_GET_FREE_RAM=16 ; get size of free RAM |
48 | SSF_GET_FREE_RAM=16 ; get size of free RAM |
49 | SSF_GET_TOTAL_RAM=17 ; get total amount of RAM |
49 | SSF_GET_TOTAL_RAM=17 ; get total amount of RAM |
50 | SSF_TERMINATE_THREAD_ID=18 ; Terminate process/thread by the ID |
50 | SSF_TERMINATE_THREAD_ID=18 ; Terminate process/thread by the ID |
51 | SSF_MOUSE_SETTINGS=19 |
51 | SSF_MOUSE_SETTINGS=19 |
52 | SSSF_GET_SPEED=0 |
52 | SSSF_GET_SPEED=0 |
53 | SSSF_SET_SPEED=1 |
53 | SSSF_SET_SPEED=1 |
54 | SSSF_GET_SPEEDUP=2 |
54 | SSSF_GET_SPEEDUP=2 |
55 | SSSF_SET_SPEEDUP=3 ; set mouse acceleration |
55 | SSSF_SET_SPEEDUP=3 ; set mouse acceleration |
56 | SSSF_SET_POS=4 ; set mouse pointer position |
56 | SSSF_SET_POS=4 ; set mouse pointer position |
57 | SSSF_SET_BUTTON=5 ; simulate state of mouse buttons |
57 | SSSF_SET_BUTTON=5 ; simulate state of mouse buttons |
58 | SSSF_GET_DOUBLE_CLICK_DELAY=6 |
58 | SSSF_GET_DOUBLE_CLICK_DELAY=6 |
59 | SSSF_SET_DOUBLE_CLICK_DELAY=7 |
59 | SSSF_SET_DOUBLE_CLICK_DELAY=7 |
60 | SSF_GET_RAM_INFO=20 ; get information on RAM |
60 | SSF_GET_RAM_INFO=20 ; get information on RAM |
61 | SSF_GET_THREAD_SLOT=21 ; get slot number of process/thread by the ID |
61 | SSF_GET_THREAD_SLOT=21 ; get slot number of process/thread by the ID |
62 | SSF_FOREIGN_WINDOW=22 ; operations with window of another thread by slot/ID |
62 | SSF_FOREIGN_WINDOW=22 ; operations with window of another thread by slot/ID |
63 | SSSF_MINIMIZE=0 |
63 | SSSF_MINIMIZE=0 |
64 | SSSF_MINIMIZE_ID=1 |
64 | SSSF_MINIMIZE_ID=1 |
65 | SSSF_RESTORE=2 |
65 | SSSF_RESTORE=2 |
66 | SSSF_RESTORE_ID=3 |
66 | SSSF_RESTORE_ID=3 |
67 | SSF_MINIMIZE_ALL=23 |
67 | SSF_MINIMIZE_ALL=23 |
68 | SSF_SET_SCREEN_LIMITS=24 |
68 | SSF_SET_SCREEN_LIMITS=24 |
69 | SSF_WINDOW_BEHAVIOR=25 ; window focus relation with other windows |
69 | SSF_WINDOW_BEHAVIOR=25 ; window focus relation with other windows |
70 | SSSF_GET_WB=1 |
70 | SSSF_GET_WB=1 |
71 | SSSF_SET_WB=2 |
71 | SSSF_SET_WB=2 |
72 | SF_MIDI=20 |
72 | SF_MIDI=20 |
73 | SSF_RESET=1 |
73 | SSF_RESET=1 |
74 | SSF_OUTPUT=2 |
74 | SSF_OUTPUT=2 |
75 | SF_SYSTEM_SET=21 |
75 | SF_SYSTEM_SET=21 |
76 | SSF_MPU_MIDI_BASE=1 |
76 | SSF_MPU_MIDI_BASE=1 |
77 | SSF_KEYBOARD_LAYOUT=2 |
77 | SSF_KEYBOARD_LAYOUT=2 |
78 | SSF_SYS_LANG=5 |
78 | SSF_SYS_LANG=5 |
79 | SSF_ACCESS_HD_LBA=11 ; setting of low-level access to HD |
79 | SSF_ACCESS_HD_LBA=11 ; setting of low-level access to HD |
80 | SSF_ACCESS_PCI=12 ; setting of low-level access to PCI |
80 | SSF_ACCESS_PCI=12 ; setting of low-level access to PCI |
81 | SF_SET_TIME_DATE=22 |
81 | SF_SET_TIME_DATE=22 |
82 | SF_WAIT_EVENT_TIMEOUT=23; wait for event with timeout |
82 | SF_WAIT_EVENT_TIMEOUT=23; wait for event with timeout |
83 | SF_CD=24 |
83 | SF_CD=24 |
84 | SSF_EJECT_TRAY=4 |
84 | SSF_EJECT_TRAY=4 |
85 | SSF_INSERT_TRAY=5 |
85 | SSF_INSERT_TRAY=5 |
86 | SF_SCREEN_PUT_IMAGE=25 ; put image on the background layer |
86 | SF_SCREEN_PUT_IMAGE=25 ; put image on the background layer |
87 | SF_SYSTEM_GET=26 |
87 | SF_SYSTEM_GET=26 |
88 | ; Same as SF_SYSTEM_SET, plus: |
88 | ; Same as SF_SYSTEM_SET, plus: |
89 | SSF_TIME_COUNT=9 |
89 | SSF_TIME_COUNT=9 |
90 | SSF_TIME_COUNT_PRO=10 ; get value of the high precision time counter |
90 | SSF_TIME_COUNT_PRO=10 ; get value of the high precision time counter |
91 | SF_GET_SYS_DATE=29 |
91 | SF_GET_SYS_DATE=29 |
92 | SF_CURRENT_FOLDER=30 |
92 | SF_CURRENT_FOLDER=30 |
93 | SSF_SET_CF=1 ; set current folder for the thread |
93 | SSF_SET_CF=1 ; set current folder for the thread |
94 | SSF_GET_CF=2 |
94 | SSF_GET_CF=2 |
95 | SSF_ADD_SYS_FOLDER=3 ; install the add.system directory for the kernel |
95 | SSF_ADD_SYS_FOLDER=3 ; install the add.system directory for the kernel |
96 | SF_GET_PIXEL_OWNER=34 ; get slot number of the screen pixel owner |
96 | SF_GET_PIXEL_OWNER=34 ; get slot number of the screen pixel owner |
97 | SF_GET_PIXEL=35 ; read the screen pixel color |
97 | SF_GET_PIXEL=35 ; read the screen pixel color |
98 | SF_GET_IMAGE=36 ; read the screen area |
98 | SF_GET_IMAGE=36 ; read the screen area |
99 | SF_MOUSE_GET=37 |
99 | SF_MOUSE_GET=37 |
100 | SSF_SCREEN_POSITION=0 |
100 | SSF_SCREEN_POSITION=0 |
101 | SSF_WINDOW_POSITION=1 |
101 | SSF_WINDOW_POSITION=1 |
102 | SSF_BUTTON=2 ; states of the mouse buttons |
102 | SSF_BUTTON=2 ; states of the mouse buttons |
103 | SSF_BUTTON_EXT=3 ; states and events of the mouse buttons |
103 | SSF_BUTTON_EXT=3 ; states and events of the mouse buttons |
104 | SSF_LOAD_CURSOR=4 |
104 | SSF_LOAD_CURSOR=4 |
105 | SSF_SET_CURSOR=5 |
105 | SSF_SET_CURSOR=5 |
106 | SSF_DEL_CURSOR=6 |
106 | SSF_DEL_CURSOR=6 |
107 | SSF_SCROLL_DATA=7 |
107 | SSF_SCROLL_DATA=7 |
108 | SF_DRAW_LINE=38 |
108 | SF_DRAW_LINE=38 |
109 | SF_BACKGROUND_GET=39 |
109 | SF_BACKGROUND_GET=39 |
110 | ;SSF_SIZE_BG=1 |
110 | ;SSF_SIZE_BG=1 |
111 | ;SSF_PIXEL_BG=2 |
111 | ;SSF_PIXEL_BG=2 |
112 | ;SSF_MODE_BG=4 |
112 | ;SSF_MODE_BG=4 |
113 | SF_SET_EVENTS_MASK=40 ; turn on/off desired events |
113 | SF_SET_EVENTS_MASK=40 ; turn on/off desired events |
114 | SF_PORT_IN_OUT=43 ; input/output to a port |
114 | SF_PORT_IN_OUT=43 ; input/output to a port |
115 | SF_SET_PORTS=46 ; reserve/free a group of input/output ports |
115 | SF_SET_PORTS=46 ; reserve/free a group of input/output ports |
116 | SF_DRAW_NUMBER=47 ; draw number to the window |
116 | SF_DRAW_NUMBER=47 ; draw number to the window |
117 | SF_STYLE_SETTINGS=48 |
117 | SF_STYLE_SETTINGS=48 |
118 | SSF_APPLY=0 ; apply screen settings |
118 | SSF_APPLY=0 ; apply screen settings |
119 | SSF_SET_BUTTON_STYLE=1 |
119 | SSF_SET_BUTTON_STYLE=1 |
120 | SSF_SET_COLORS=2 |
120 | SSF_SET_COLORS=2 |
121 | SSF_GET_COLORS=3 ; get standard window colors |
121 | SSF_GET_COLORS=3 ; get standard window colors |
122 | SSF_GET_SKIN_HEIGHT=4 |
122 | SSF_GET_SKIN_HEIGHT=4 |
123 | SSF_GET_SCREEN_AREA=5 ; get screen working area |
123 | SSF_GET_SCREEN_AREA=5 ; get screen working area |
124 | SSF_SET_SCREEN_AREA=6 |
124 | SSF_SET_SCREEN_AREA=6 |
125 | SSF_GET_SKIN_MARGINS=7 |
125 | SSF_GET_SKIN_MARGINS=7 |
126 | SSF_SET_SKIN=8 |
126 | SSF_SET_SKIN=8 |
127 | SSF_GET_FONT_SMOOTH=9 |
127 | SSF_GET_FONT_SMOOTH=9 |
128 | SSF_SET_FONT_SMOOTH=10 |
128 | SSF_SET_FONT_SMOOTH=10 |
129 | SSF_GET_FONT_SIZE=11 |
129 | SSF_GET_FONT_SIZE=11 |
130 | SSF_SET_FONT_SIZE=12 |
130 | SSF_SET_FONT_SIZE=12 |
131 | SF_APM=49 |
131 | SF_APM=49 |
132 | SF_SET_WINDOW_SHAPE=50 |
132 | SF_SET_WINDOW_SHAPE=50 |
133 | SF_CREATE_THREAD=51 |
133 | SF_CREATE_THREAD=51 |
134 | SF_CLIPBOARD=54 |
134 | SF_CLIPBOARD=54 |
135 | SSF_GET_SLOT_COUNT=0 ; get the number of slots in the clipboard |
135 | SSF_GET_SLOT_COUNT=0 ; get the number of slots in the clipboard |
136 | SSF_READ_CB=1 |
136 | SSF_READ_CB=1 |
137 | SSF_WRITE_CB=2 |
137 | SSF_WRITE_CB=2 |
138 | SSF_DEL_SLOT=3 ; delete the last slot in the clipboard |
138 | SSF_DEL_SLOT=3 ; delete the last slot in the clipboard |
139 | SSF_UNLOCK_BUFFER=4 ; emergency buffer unlock |
139 | SSF_UNLOCK_BUFFER=4 ; emergency buffer unlock |
140 | SF_SPEAKER_PLAY=55 |
140 | SF_SPEAKER_PLAY=55 |
141 | SF_PCI_BIOS=57 |
141 | SF_PCI_BIOS=57 |
142 | SF_IPC=60 ; Inter Process Communication |
142 | SF_IPC=60 ; Inter Process Communication |
143 | SSF_SET_AREA=1 ; set area for IPC receiving |
143 | SSF_SET_AREA=1 ; set area for IPC receiving |
144 | SSF_SEND_MESSAGE=2 |
144 | SSF_SEND_MESSAGE=2 |
145 | SF_GET_GRAPHICAL_PARAMS=61 |
145 | SF_GET_GRAPHICAL_PARAMS=61 |
146 | SSF_SCREEN_SIZE=1 |
146 | SSF_SCREEN_SIZE=1 |
147 | SSF_BITS_PER_PIXEL=2 |
147 | SSF_BITS_PER_PIXEL=2 |
148 | SSF_BYTES_PER_LINE=3 |
148 | SSF_BYTES_PER_LINE=3 |
149 | SF_PCI=62 |
149 | SF_PCI=62 |
150 | SSF_GET_VERSION=0 ; get version of PCI-interface |
150 | SSF_GET_VERSION=0 ; get version of PCI-interface |
151 | SSF_GET_LAST_BUS=1 ; get number of the last PCI-bus |
151 | SSF_GET_LAST_BUS=1 ; get number of the last PCI-bus |
152 | SSF_GET_ADRR_MODE=2 ; get addressing mode of the PCI configuration space |
152 | SSF_GET_ADRR_MODE=2 ; get addressing mode of the PCI configuration space |
153 | SSF_READ_BYTE=4 |
153 | SSF_READ_BYTE=4 |
154 | SSF_READ_WORD=5 |
154 | SSF_READ_WORD=5 |
155 | SSF_READ_DWORD=6 |
155 | SSF_READ_DWORD=6 |
156 | SSF_WRITE_BYTE=8 |
156 | SSF_WRITE_BYTE=8 |
157 | SSF_WRITE_WORD=9 |
157 | SSF_WRITE_WORD=9 |
158 | SSF_WRITE_DWORD=10 |
158 | SSF_WRITE_DWORD=10 |
159 | SF_BOARD=63 |
159 | SF_BOARD=63 |
160 | SSF_DEBUG_WRITE=1 |
160 | SSF_DEBUG_WRITE=1 |
161 | SSF_DEBUG_READ=2 |
161 | SSF_DEBUG_READ=2 |
162 | SF_MEMORY_RESIZE=64 ; resize total application memory |
162 | SF_MEMORY_RESIZE=64 ; resize total application memory |
163 | SF_PUT_IMAGE_EXT=65 ; draw image with palette to the window |
163 | SF_PUT_IMAGE_EXT=65 ; draw image with palette to the window |
164 | SF_KEYBOARD=66 |
164 | SF_KEYBOARD=66 |
165 | SSF_SET_INPUT_MODE=1 |
165 | SSF_SET_INPUT_MODE=1 |
166 | SSF_GET_INPUT_MODE=2 |
166 | SSF_GET_INPUT_MODE=2 |
167 | SSF_GET_CONTROL_KEYS=3; get status of control keys |
167 | SSF_GET_CONTROL_KEYS=3; get status of control keys |
168 | SSF_SET_SYS_HOTKEY=4 |
168 | SSF_SET_SYS_HOTKEY=4 |
169 | SSF_DEL_SYS_HOTKEY=5 |
169 | SSF_DEL_SYS_HOTKEY=5 |
170 | SSF_LOCK_INPUT=6 ; block normal input |
170 | SSF_LOCK_INPUT=6 ; block normal input |
171 | SSF_UNLOCK_INPUT=7 ; restore normal input |
171 | SSF_UNLOCK_INPUT=7 ; restore normal input |
172 | SF_CHANGE_WINDOW=67 ; change position/sizes of the window |
172 | SF_CHANGE_WINDOW=67 ; change position/sizes of the window |
173 | SF_SYS_MISC=68 |
173 | SF_SYS_MISC=68 |
174 | SSF_GET_TASK_SWITCH_COUNT=0 |
174 | SSF_GET_TASK_SWITCH_COUNT=0 |
175 | SSF_SWITCH_TASK=1 |
175 | SSF_SWITCH_TASK=1 |
176 | SSF_PERFORMANCE=2 |
176 | SSF_PERFORMANCE=2 |
177 | SSSF_ALLOW_RDPMC=0 |
177 | SSSF_ALLOW_RDPMC=0 |
178 | SSSF_CACHE_STATUS=1 |
178 | SSSF_CACHE_STATUS=1 |
179 | SSSF_CACHE_ON=2 |
179 | SSSF_CACHE_ON=2 |
180 | SSSF_CACHE_OFF=3 |
180 | SSSF_CACHE_OFF=3 |
181 | SSF_READ_MSR=3 |
181 | SSF_READ_MSR=3 |
182 | SSF_WRITE_MSR=4 |
182 | SSF_WRITE_MSR=4 |
183 | SSF_HEAP_INIT=11 |
183 | SSF_HEAP_INIT=11 |
184 | SSF_MEM_ALLOC=12 |
184 | SSF_MEM_ALLOC=12 |
185 | SSF_MEM_FREE=13 |
185 | SSF_MEM_FREE=13 |
186 | SSF_WAIT_SIGNAL=14 ; wait for signal from another program/driver |
186 | SSF_WAIT_SIGNAL=14 ; wait for signal from another program/driver |
187 | SSF_LOAD_DRIVER=16 |
187 | SSF_LOAD_DRIVER=16 |
188 | SSF_CONTROL_DRIVER=17 |
188 | SSF_CONTROL_DRIVER=17 |
189 | SSF_LOAD_DLL=19 |
189 | SSF_LOAD_DLL=19 |
190 | SSF_MEM_REALLOC=20 |
190 | SSF_MEM_REALLOC=20 |
191 | SSF_LOAD_DRIVER_PE=21 |
191 | SSF_LOAD_DRIVER_PE=21 |
192 | SSF_MEM_OPEN=22 ; open named memory area |
192 | SSF_MEM_OPEN=22 ; open named memory area |
193 | SSF_MEM_CLOSE=23 |
193 | SSF_MEM_CLOSE=23 |
194 | SSF_SET_EXCEPTION_HANDLER=24 |
194 | SSF_SET_EXCEPTION_HANDLER=24 |
195 | SSF_SET_EXCEPTION_STATE=25 |
195 | SSF_SET_EXCEPTION_STATE=25 |
196 | SSF_MEM_FREE_EXT=26 |
196 | SSF_MEM_FREE_EXT=26 |
197 | SSF_LOAD_FILE=27 |
197 | SSF_LOAD_FILE=27 |
198 | SF_DEBUG=69 |
198 | SF_DEBUG=69 |
199 | SSF_SET_MESSAGE_AREA=0 |
199 | SSF_SET_MESSAGE_AREA=0 |
200 | SSF_GET_REGISTERS=1 |
200 | SSF_GET_REGISTERS=1 |
201 | SSF_SET_REGISTERS=2 |
201 | SSF_SET_REGISTERS=2 |
202 | SSF_DETACH=3 |
202 | SSF_DETACH=3 |
203 | SSF_SUSPEND=4 |
203 | SSF_SUSPEND=4 |
204 | SSF_RESUME=5 |
204 | SSF_RESUME=5 |
205 | SSF_READ_MEMORY=6 |
205 | SSF_READ_MEMORY=6 |
206 | SSF_WRITE_MEMORY=7 |
206 | SSF_WRITE_MEMORY=7 |
207 | SSF_TERMINATE=8 |
207 | SSF_TERMINATE=8 |
208 | SSF_DEFINE_BREAKPOINT=9 |
208 | SSF_DEFINE_BREAKPOINT=9 |
209 | SF_FILE=70 |
209 | SF_FILE=70 |
210 | SSF_READ_FILE=0 |
210 | SSF_READ_FILE=0 |
211 | SSF_READ_FOLDER=1 |
211 | SSF_READ_FOLDER=1 |
212 | SSF_CREATE_FILE=2 |
212 | SSF_CREATE_FILE=2 |
213 | SSF_WRITE_FILE=3 |
213 | SSF_WRITE_FILE=3 |
214 | SSF_SET_END=4 |
214 | SSF_SET_END=4 |
215 | SSF_GET_INFO=5 |
215 | SSF_GET_INFO=5 |
216 | SSF_SET_INFO=6 |
216 | SSF_SET_INFO=6 |
217 | SSF_START_APP=7 |
217 | SSF_START_APP=7 |
218 | SSF_DELETE=8 |
218 | SSF_DELETE=8 |
219 | SSF_CREATE_FOLDER=9 |
219 | SSF_CREATE_FOLDER=9 |
220 | SF_SET_CAPTION=71 |
220 | SF_SET_CAPTION=71 |
221 | SF_SEND_MESSAGE=72 |
221 | SF_SEND_MESSAGE=72 |
222 | SF_BLITTER=73 |
222 | SF_BLITTER=73 |
223 | SF_NETWORK_GET=74 |
223 | SF_NETWORK_GET=74 |
224 | SSF_DEVICE_COUNT=255 ; get number of active network devices |
224 | SSF_DEVICE_COUNT=255 ; get number of active network devices |
225 | SSF_DEVICE_TYPE=0 |
225 | SSF_DEVICE_TYPE=0 |
226 | SSF_DEVICE_NAME=1 |
226 | SSF_DEVICE_NAME=1 |
227 | SSF_RESET_DEVICE=2 |
227 | SSF_RESET_DEVICE=2 |
228 | SSF_STOP_DEVICE=3 |
228 | SSF_STOP_DEVICE=3 |
229 | SSF_DEVICE_POINER=4 |
229 | SSF_DEVICE_POINER=4 |
230 | SSF_TX_PACKET_COUNT=6 |
230 | SSF_TX_PACKET_COUNT=6 |
231 | SSF_RX_PACKET_COUNT=7 |
231 | SSF_RX_PACKET_COUNT=7 |
232 | SSF_TX_BYTE_COUNT=8 |
232 | SSF_TX_BYTE_COUNT=8 |
233 | SSF_RX_BYTE_COUNT=9 |
233 | SSF_RX_BYTE_COUNT=9 |
234 | SSF_LINK_STATUS=10 |
234 | SSF_LINK_STATUS=10 |
235 | SF_NETWORK_SOCKET=75 |
235 | SF_NETWORK_SOCKET=75 |
236 | SSF_OPEN=0 |
236 | SSF_OPEN=0 |
237 | SSF_CLOSE=1 |
237 | SSF_CLOSE=1 |
238 | SSF_BIND=2 |
238 | SSF_BIND=2 |
239 | SSF_LISTEN=3 |
239 | SSF_LISTEN=3 |
240 | SSF_CONNECT=4 |
240 | SSF_CONNECT=4 |
241 | SSF_ACCEPT=5 |
241 | SSF_ACCEPT=5 |
242 | SSF_SEND=6 |
242 | SSF_SEND=6 |
243 | SSF_RECEIVE=7 |
243 | SSF_RECEIVE=7 |
244 | SSF_SET_OPTIONS=8 |
244 | SSF_SET_OPTIONS=8 |
245 | SSF_GET_OPTIONS=9 |
245 | SSF_GET_OPTIONS=9 |
246 | SSF_GET_PAIR=10 |
246 | SSF_GET_PAIR=10 |
247 | SF_NETWORK_PROTOCOL=76 |
247 | SF_NETWORK_PROTOCOL=76 |
248 | SSF_ETHERNET_READ_MAC=0 |
248 | SSF_ETHERNET_READ_MAC=0 |
249 | SSF_IP4_PACKETS_SENT=10000h |
249 | SSF_IP4_PACKETS_SENT=10000h |
250 | SSF_IP4_PACKETS_RECEIVED=10001h |
250 | SSF_IP4_PACKETS_RECEIVED=10001h |
251 | SSF_IP4_READ_IP=10002h |
251 | SSF_IP4_READ_IP=10002h |
252 | SSF_IP4_WRITE_IP=10003h |
252 | SSF_IP4_WRITE_IP=10003h |
253 | SSF_IP4_READ_DNS=10004h |
253 | SSF_IP4_READ_DNS=10004h |
254 | SSF_IP4_WRITE_DNS=10005h |
254 | SSF_IP4_WRITE_DNS=10005h |
255 | SSF_IP4_READ_SUBNET=10006h |
255 | SSF_IP4_READ_SUBNET=10006h |
256 | SSF_IP4_WRITE_SUBNET=10007h |
256 | SSF_IP4_WRITE_SUBNET=10007h |
257 | SSF_IP4_READ_GATEWAY=10008h |
257 | SSF_IP4_READ_GATEWAY=10008h |
258 | SSF_IP4_WRITE_GATEWAY=10009h |
258 | SSF_IP4_WRITE_GATEWAY=10009h |
259 | SSF_ICMP_PACKETS_SENT=20000h |
259 | SSF_ICMP_PACKETS_SENT=20000h |
260 | SSF_ICMP_PACKETS_RECEIVED=20001h |
260 | SSF_ICMP_PACKETS_RECEIVED=20001h |
261 | SSF_ICMP_ECHO_REPLY=20003h |
261 | SSF_ICMP_ECHO_REPLY=20003h |
262 | SSF_UDP_PACKETS_SENT=30000h |
262 | SSF_UDP_PACKETS_SENT=30000h |
263 | SSF_UDP_PACKETS_RECEIVED=30001h |
263 | SSF_UDP_PACKETS_RECEIVED=30001h |
264 | SSF_TCP_PACKETS_SENT=40000h |
264 | SSF_TCP_PACKETS_SENT=40000h |
265 | SSF_TCP_PACKETS_RECEIVED=40001h |
265 | SSF_TCP_PACKETS_RECEIVED=40001h |
266 | SSF_ARP_PACKETS_SENT=50000h |
266 | SSF_ARP_PACKETS_SENT=50000h |
267 | SSF_ARP_PACKETS_RECEIVED=50001h |
267 | SSF_ARP_PACKETS_RECEIVED=50001h |
268 | SSF_ARP_GET_ENTRY_COUNT=50002h |
268 | SSF_ARP_GET_ENTRY_COUNT=50002h |
269 | SSF_ARP_READ_ENTRY=50003h |
269 | SSF_ARP_READ_ENTRY=50003h |
270 | SSF_ARP_ADD_STATIC_ENTRY=50004h |
270 | SSF_ARP_ADD_STATIC_ENTRY=50004h |
271 | SSF_ARP_DEL_ENTRY=50005h |
271 | SSF_ARP_DEL_ENTRY=50005h |
272 | SSF_ARP_SEND_ANNOUNCE=50006h |
272 | SSF_ARP_SEND_ANNOUNCE=50006h |
273 | SSF_ARP_CONFLICTS_COUNT=50007h |
273 | SSF_ARP_CONFLICTS_COUNT=50007h |
274 | SF_FUTEX=77 |
274 | SF_FUTEX=77 |
275 | SSF_CREATE=0 |
275 | SSF_CREATE=0 |
276 | SSF_DESTROY=1 |
276 | SSF_DESTROY=1 |
277 | SSF_WAIT=2 |
277 | SSF_WAIT=2 |
278 | SSF_WAKE=3 |
278 | SSF_WAKE=3 |
279 | 279 | ||
280 | ; File system errors: |
280 | ; File system errors: |
281 | FSERR_SUCCESS=0 |
281 | FSERR_SUCCESS=0 |
282 | FSERR_UNSUPPORTED=2 |
282 | FSERR_UNSUPPORTED=2 |
283 | FSERR_UNKNOWN=3 |
283 | FSERR_UNKNOWN=3 |
284 | FSERR_FILE_NOT_FOUND=5 |
284 | FSERR_FILE_NOT_FOUND=5 |
285 | FSERR_END_OF_FILE=6 |
285 | FSERR_END_OF_FILE=6 |
286 | FSERR_INVALID_BUFFER=7 |
286 | FSERR_INVALID_BUFFER=7 |
287 | FSERR_DISK_FULL=8 |
287 | FSERR_DISK_FULL=8 |
288 | FSERR_FAIL=9 |
288 | FSERR_FAIL=9 |
289 | FSERR_ACCESS_DENIED=10 |
289 | FSERR_ACCESS_DENIED=10 |
290 | FSERR_DEVICE_FAIL=11 |
290 | FSERR_DEVICE_FAIL=11 |
291 | FSERR_OUT_OF_MEMORY=12 |
291 | FSERR_OUT_OF_MEMORY=12 |