Rev 6240 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6240 | Rev 6246 | ||
---|---|---|---|
Line 1039... | Line 1039... | ||
1039 | Parameters: |
1039 | Parameters: |
1040 | * eax = 18 - function number |
1040 | * eax = 18 - function number |
1041 | * ebx = 19 - subfunction number |
1041 | * ebx = 19 - subfunction number |
1042 | * ecx = 0 - subsubfunction number |
1042 | * ecx = 0 - subsubfunction number |
1043 | Returned value: |
1043 | Returned value: |
1044 | * eax = current mouse speed |
1044 | * eax = current speed divider |
Line 1045... | Line 1045... | ||
1045 | 1045 | ||
1046 | ---------------- Subsubfunction 1 - set mouse speed. ----------------- |
1046 | ---------------- Subsubfunction 1 - set mouse speed. ----------------- |
1047 | Parameters: |
1047 | Parameters: |
1048 | * eax = 18 - function number |
1048 | * eax = 18 - function number |
1049 | * ebx = 19 - subfunction number |
1049 | * ebx = 19 - subfunction number |
1050 | * ecx = 1 - subsubfunction number |
1050 | * ecx = 1 - subsubfunction number |
1051 | * edx = new value for speed |
1051 | * edx = new value for speed divider |
1052 | Returned value: |
1052 | Returned value: |
Line 1053... | Line 1053... | ||
1053 | * function does not return value |
1053 | * function does not return value |
Line 1054... | Line 1054... | ||
1054 | 1054 | ||
1055 | Remark: recommended speed = 1, 0 = lock the cursor. |
1055 | Remark: recommended speed divider = 4 |
1056 | 1056 | ||
1057 | ------------- Subsubfunction 2 - get mouse acceleration. ------------- |
1057 | -------------- Subsubfunction 2 - get mouse sensitivity -------------- |
1058 | Parameters: |
1058 | Parameters: |
1059 | * eax = 18 - function number |
1059 | * eax = 18 - function number |
1060 | * ebx = 19 - subfunction number |
1060 | * ebx = 19 - subfunction number |
Line 1061... | Line 1061... | ||
1061 | * ecx = 2 - subsubfunction number |
1061 | * ecx = 2 - subsubfunction number |
1062 | Returned value: |
1062 | Returned value: |
1063 | * eax = 0 - off, 1 - slight, 2 - medium, 3 - intense |
1063 | * eax = current sensitivity |
1064 | 1064 | ||
1065 | ------------- Subsubfunction 3 - set mouse acceleration. ------------- |
1065 | -------------- Subsubfunction 3 - set mouse sensitivity -------------- |
1066 | Parameters: |
1066 | Parameters: |
1067 | * eax = 18 - function number |
1067 | * eax = 18 - function number |
1068 | * ebx = 19 - subfunction number |
1068 | * ebx = 19 - subfunction number |
Line -... | Line 1069... | ||
- | 1069 | * ecx = 3 - subsubfunction number |
|
- | 1070 | * edx = new value for sensitivity |
|
1069 | * ecx = 3 - subsubfunction number |
1071 | Returned value: |
1070 | * edx = 0 - off, 1 - slight, 2 - medium, 3 - intense |
1072 | * function does not return value |
1071 | Returned value: |
1073 | |
1072 | * function does not return value |
1074 | Remark: recommended sensitivity = 3 |
1073 | 1075 | ||
Line 4665... | Line 4667... | ||
4665 | 4667 | ||
4666 | ---------------------- Constants for registers: ---------------------- |
4668 | ---------------------- Constants for registers: ---------------------- |
4667 | eax - SF_NETWORK_SOCKET (75) |
4669 | eax - SF_NETWORK_SOCKET (75) |
4668 | bl - SSF_GET_OPTIONS (9) |
4670 | bl - SSF_GET_OPTIONS (9) |
4669 | ====================================================================== |
4671 | ====================================================================== |
4670 | ============ Function 75, Subfunction 10, Get socketpair. =========== |
4672 | ============ Function 75, Subfunction 10, Get socketpair. ============ |
4671 | ====================================================================== |
4673 | ====================================================================== |
4672 | Parameters: |
4674 | Parameters: |
4673 | * eax = 75 - function number |
4675 | * eax = 75 - function number |
4674 | * bl = 10 - subfunction number |
4676 | * bl = 10 - subfunction number |
Line 4686... | Line 4688... | ||
4686 | * eax = 76 - function number |
4688 | * eax = 76 - function number |
4687 | * high half of ebx = protocol number |
4689 | * high half of ebx = protocol number |
4688 | * bh = device number |
4690 | * bh = device number |
4689 | * bl = subfunction number |
4691 | * bl = subfunction number |
Line -... | Line 4692... | ||
- | 4692 | ||
- | 4693 | Protocols and subfunctions: |
|
4690 | 4694 | ||
4691 | Ethernet (0) |
4695 | 0 - Ethernet: |
Line 4692... | Line 4696... | ||
4692 | 0 - Read MAC |
4696 | 0 - Read MAC |
4693 | 4697 | ||
4694 | IPv4 (1) |
4698 | common subfunctions: |
- | 4699 | 0 - Read # packets sent |
|
- | 4700 | 1 - Read # packets received |
|
4695 | 0 - Read # IP packets sent |
4701 | |
4696 | 1 - Read # IP packets received |
4702 | 1 - IPv4: |
4697 | 2 - Read IP |
4703 | 2 - Read IP |
4698 | 3 - Write IP |
4704 | 3 - Write IP |
4699 | 4 - Read DNS |
4705 | 4 - Read DNS |
4700 | 5 - Write DNS |
4706 | 5 - Write DNS |
4701 | 6 - Read subnet |
4707 | 6 - Read subnet |
4702 | 7 - Write subnet |
4708 | 7 - Write subnet |
Line 4703... | Line 4709... | ||
4703 | 8 - Read gateway |
4709 | 8 - Read gateway |
4704 | 9 - Write gateway |
- | |
4705 | - | ||
4706 | ICMP (2) |
4710 | 9 - Write gateway |
Line 4707... | Line 4711... | ||
4707 | 0 - Read # ICMP packets sent |
4711 | |
4708 | 1 - Read # ICMP packets received |
- | |
4709 | 3 - enable/disable ICMP echo reply |
- | |
4710 | - | ||
4711 | UDP (3) |
4712 | 2 - ICMP: |
4712 | 0 - Read # UDP packets sent |
- | |
4713 | 1 - Read # UDP packets received |
- | |
4714 | 4713 | 3 - enable/disable ICMP echo reply |
|
4715 | TCP (4) |
4714 | |
4716 | 0 - Read # TCP packets sent |
- | |
4717 | 1 - Read # TCP packets received |
- | |
4718 | 4715 | 3 - UDP |
|
4719 | ARP (5) |
4716 | 4 - TCP |
4720 | 0 - Read # ARP packets sent |
4717 | |
4721 | 1 - Read # ARP packets received |
4718 | 5 - ARP: |
4722 | 2 - Read # ARP entry's |
4719 | 2 - Read # ARP entry's |
4723 | 3 - Read ARP entry |
4720 | 3 - Read ARP entry |
Line 4724... | Line 4721... | ||
4724 | 4 - Add static ARP entry |
4721 | 4 - Add static ARP entry |
4725 | 5 - Remove ARP entry (-1 = remove all) |
4722 | 5 - Remove ARP entry (-1 = remove all) |
4726 | 6 - Send ARP announce on specified interface |
- | |
4727 | 7 - Read # ARP conflicts (IP address conflicts) |
4723 | 6 - Send ARP announce on specified interface |
4728 | 4724 | 7 - Read # ARP conflicts (IP address conflicts) |
|
4729 | ---------------------- Constants for registers: ---------------------- |
4725 | |
4730 | eax - SF_NETWORK_PROTOCOL (76) |
4726 | ---------------------- Constants for registers: ---------------------- |
4731 | 4727 | eax - SF_NETWORK_PROTOCOL (76) |
|
Line 4740... | Line 4736... | ||
4740 | * eax = futex handle, 0 on error |
4736 | * eax = futex handle, 0 on error |
4741 | Remarks: |
4737 | Remarks: |
4742 | * Use subfunction 1 to destroy the futex. |
4738 | * Use subfunction 1 to destroy the futex. |
4743 | The kernel destroys the futexes automatically when the process |
4739 | The kernel destroys the futexes automatically when the process |
4744 | terminates. |
4740 | terminates. |
- | 4741 | ||
- | 4742 | ---------------------- Constants for registers: ---------------------- |
|
- | 4743 | eax - SF_FUTEX (77) |
|
- | 4744 | ebx - SSF_CREATE (0) |
|
4745 | ====================================================================== |
4745 | ====================================================================== |
4746 | ========= Function 77, Subfunction 1, Destroy futex object =========== |
4746 | ========= Function 77, Subfunction 1, Destroy futex object =========== |
4747 | ====================================================================== |
4747 | ====================================================================== |
4748 | Parameters: |
4748 | Parameters: |
4749 | * eax = 77 - function number |
4749 | * eax = 77 - function number |
Line 4752... | Line 4752... | ||
4752 | Returned value: |
4752 | Returned value: |
4753 | * eax = 0 - successfull, -1 on error |
4753 | * eax = 0 - successfull, -1 on error |
4754 | Remarks: |
4754 | Remarks: |
4755 | * The futex handle must have been created by subfunction 0 |
4755 | * The futex handle must have been created by subfunction 0 |
Line -... | Line 4756... | ||
- | 4756 | ||
- | 4757 | ---------------------- Constants for registers: ---------------------- |
|
- | 4758 | eax - SF_FUTEX (77) |
|
4756 | 4759 | ebx - SSF_DESTROY (1) |
|
4757 | ====================================================================== |
4760 | ====================================================================== |
4758 | =============== Function 77, Subfunction 2, Futex wait =============== |
4761 | =============== Function 77, Subfunction 2, Futex wait =============== |
4759 | ====================================================================== |
4762 | ====================================================================== |
4760 | Parameters: |
4763 | Parameters: |
Line 4771... | Line 4774... | ||
4771 | * This functionn tests that the value at the futex dword still |
4774 | * This functionn tests that the value at the futex dword still |
4772 | contains the expected control value, and if so, then sleeps |
4775 | contains the expected control value, and if so, then sleeps |
4773 | waiting for a wake operation on the futex. |
4776 | waiting for a wake operation on the futex. |
4774 | * The futex handle must have been created by subfunction 0 |
4777 | * The futex handle must have been created by subfunction 0 |
Line -... | Line 4778... | ||
- | 4778 | ||
- | 4779 | ---------------------- Constants for registers: ---------------------- |
|
- | 4780 | eax - SF_FUTEX (77) |
|
4775 | 4781 | ebx - SSF_WAIT (2) |
|
4776 | ====================================================================== |
4782 | ====================================================================== |
4777 | =============== Function 77, Subfunction 3, Futex wake =============== |
4783 | =============== Function 77, Subfunction 3, Futex wake =============== |
4778 | ====================================================================== |
4784 | ====================================================================== |
4779 | Parameters: |
4785 | Parameters: |
Line 4787... | Line 4793... | ||
4787 | Remarks: |
4793 | Remarks: |
4788 | * This function wakes at most edx of the waiters that are |
4794 | * This function wakes at most edx of the waiters that are |
4789 | waiting (e.g., inside futex wait) on the futex dword |
4795 | waiting (e.g., inside futex wait) on the futex dword |
4790 | * The futex handle must have been created by subfunction 0 |
4796 | * The futex handle must have been created by subfunction 0 |
Line -... | Line 4797... | ||
- | 4797 | ||
- | 4798 | ---------------------- Constants for registers: ---------------------- |
|
- | 4799 | eax - SF_FUTEX (77) |
|
4791 | 4800 | ebx - SSF_WAKE (3) |
|
4792 | ====================================================================== |
4801 | ====================================================================== |
4793 | =============== Function -1 - terminate thread/process =============== |
4802 | =============== Function -1 - terminate thread/process =============== |
4794 | ====================================================================== |
4803 | ====================================================================== |
4795 | Parameters: |
4804 | Parameters: |
Line 4802... | Line 4811... | ||
4802 | * If the current thread is last in the process, its termination |
4811 | * If the current thread is last in the process, its termination |
4803 | also results in process terminates. |
4812 | also results in process terminates. |
4804 | * This function terminates the current thread. Other thread can be |
4813 | * This function terminates the current thread. Other thread can be |
4805 | killed by call to subfunction 2 of function 18. |
4814 | killed by call to subfunction 2 of function 18. |
Line -... | Line 4815... | ||
- | 4815 | ||
- | 4816 | ---------------------- Constants for registers: ---------------------- |
|
4806 | 4817 | eax - SF_TERMINATE_PROCESS (-1) |
|
4807 | ====================================================================== |
4818 | ====================================================================== |
4808 | =========================== List of events =========================== |
4819 | =========================== List of events =========================== |
4809 | ====================================================================== |
4820 | ====================================================================== |
4810 | Next event can be retrieved by the call of one from functions 10 |
4821 | Next event can be retrieved by the call of one from functions 10 |
Line 4839... | Line 4850... | ||
4839 | 4850 | ||
4840 | ====================================================================== |
4851 | ====================================================================== |
4841 | =================== Error codes of the file system =================== |
4852 | =================== Error codes of the file system =================== |
4842 | ====================================================================== |
4853 | ====================================================================== |
4843 | * 0 = success |
- | |
4844 | * 1 = base and/or partition of a hard disk is not defined |
- | |
4845 | (by subfunctions 7, 8 of function 21) |
4854 | * 0 = success |
4846 | * 2 = function is not supported for the given file system |
4855 | * 2 = function is not supported for the given file system |
4847 | * 3 = unknown file system |
- | |
4848 | * 4 = reserved, is never returned in the current implementation |
4856 | * 3 = unknown file system |
4849 | * 5 = file not found |
4857 | * 5 = file not found |
4850 | * 6 = end of file, EOF |
4858 | * 6 = end of file, EOF |
4851 | * 7 = pointer lies outside of application memory |
4859 | * 7 = pointer lies outside of application memory |
4852 | * 8 = disk is full |
4860 | * 8 = disk is full |
4853 | * 9 = FAT table is destroyed |
4861 | * 9 = file system error |
4854 | * 10 = access denied |
4862 | * 10 = access denied |
- | 4863 | * 11 = device error |
|
- | 4864 | * 12 = file system requires more memory |
|
4855 | * 11 = device error |
4865 | |
4856 | Application start functions can return also following errors: |
4866 | Application start functions can return also following errors: |
4857 | * 30 = 0x1E = not enough memory |
4867 | * 30 = 0x1E = not enough memory |
4858 | * 31 = 0x1F = file is not executable |
4868 | * 31 = 0x1F = file is not executable |