Rev 667 | Rev 760 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 667 | Rev 748 | ||
---|---|---|---|
Line 622... | Line 622... | ||
622 | information about old is lost. |
622 | information about old is lost. |
623 | * The call of this function by an application with inactive window |
623 | * The call of this function by an application with inactive window |
624 | will return answer "buffer is empty". |
624 | will return answer "buffer is empty". |
Line 625... | Line 625... | ||
625 | 625 | ||
626 | ====================================================================== |
- | |
627 | ============ Function 18, subfunction 1 - system shutdown. =========== |
- | |
628 | ====================================================================== |
- | |
629 | Parameters: |
- | |
630 | * eax = 18 - function number |
- | |
631 | * ebx = 1 - subfunction number |
- | |
632 | Returned value: |
- | |
633 | * function always return eax = 0 as tag of success |
- | |
634 | Remarks: |
- | |
635 | * On the last step menu of exit from the system appears and waits |
- | |
636 | response of the user. |
- | |
637 | * See also subfunction 9, system shutdown with |
- | |
638 | the parameter to force the choice in the exit menu. |
- | |
639 | - | ||
640 | ====================================================================== |
626 | ====================================================================== |
641 | = Function 18, subfunction 2 - terminate process/thread by the slot. = |
627 | = Function 18, subfunction 2 - terminate process/thread by the slot. = |
642 | ====================================================================== |
628 | ====================================================================== |
643 | Parameters: |
629 | Parameters: |
644 | * eax = 18 - function number |
630 | * eax = 18 - function number |
Line 742... | Line 728... | ||
742 | * ecx = 2 - number of the subsubfunction |
728 | * ecx = 2 - number of the subsubfunction |
743 | Returned value: |
729 | Returned value: |
744 | * function does not return value |
730 | * function does not return value |
Line 745... | Line 731... | ||
745 | 731 | ||
746 | ====================================================================== |
732 | ====================================================================== |
747 | == Function 18, subfunction 9 - system shutdown with the parameter. == |
733 | ============ Function 18, subfunction 9 - system shutdown. =========== |
748 | ====================================================================== |
734 | ====================================================================== |
749 | Parameters: |
735 | Parameters: |
750 | * eax = 18 - function number |
736 | * eax = 18 - function number |
751 | * ebx = 9 - subfunction number |
737 | * ebx = 9 - subfunction number |
752 | * ecx = parameter: |
- | |
753 | * 1 = on the last step of shutdown save ramdisk on a floppy and |
- | |
754 | then show the exit menu and request further operations |
- | |
755 | from the user |
738 | * ecx = parameter: |
756 | * 2 = turn off computer |
739 | * 2 = turn off computer |
757 | * 3 = reboot computer |
740 | * 3 = reboot computer |
758 | * 4 = restart the kernel from the file 'kernel.mnt' on ramdisk |
741 | * 4 = restart the kernel from the file 'kernel.mnt' on ramdisk |
759 | Returned value: |
742 | Returned value: |
Line 763... | Line 746... | ||
763 | Remarks: |
746 | Remarks: |
764 | * Do not rely on returned value by incorrect call, it can be |
747 | * Do not rely on returned value by incorrect call, it can be |
765 | changed in future versions of the kernel. |
748 | changed in future versions of the kernel. |
766 | * It is possible to use subfunction 1, that on the last step |
749 | * It is possible to use subfunction 1, that on the last step |
767 | the user makes choice himself. |
750 | the user makes choice himself. |
768 | * It is not recommended to use value ecx=1 (to not irritate the user |
- | |
769 | with excessive questions); to save ramdisk on a floppy use |
- | |
770 | function 16 (which admits specification, on which floppy to |
- | |
771 | write), and to shutdown with the exit menu use already mentioned |
- | |
772 | subfunction 1. |
- | |
773 | - | ||
774 | ====================================================================== |
751 | ====================================================================== |
775 | ===== Function 18, subfunction 10 - minimize application window. ===== |
752 | ===== Function 18, subfunction 10 - minimize application window. ===== |
776 | ====================================================================== |
753 | ====================================================================== |
777 | Minimizes the own window. |
754 | Minimizes the own window. |
778 | Parameters: |
755 | Parameters: |