2006-01-03 10:43:31 +01:00
|
|
|
|
;
|
|
|
|
|
; PROCESS MANAGEMENT
|
|
|
|
|
;
|
|
|
|
|
; VTurjanmaa
|
|
|
|
|
; additions by M.Lisovin lisovin@26.ru
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; integrated with load_lib.obj by <Lrz>
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; Compile with FASM for Menuet
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
use32
|
2010-01-09 23:01:26 +01:00
|
|
|
|
org 0x0
|
2009-11-11 19:44:12 +01:00
|
|
|
|
STACK_SIZE=1024
|
|
|
|
|
offset_y=22 ; Correction for skin
|
|
|
|
|
offset_x=5
|
2010-01-09 23:01:26 +01:00
|
|
|
|
db 'MENUET01' ; 8 byte id
|
|
|
|
|
dd 0x01 ; header version
|
|
|
|
|
dd START ; start of code
|
|
|
|
|
dd I_END ; size of image
|
|
|
|
|
dd U_END+STACK_SIZE ; memory for app
|
|
|
|
|
dd U_END+STACK_SIZE ; esp
|
|
|
|
|
dd 0x0 , 0x0 ; I_Param , I_Icon
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
include 'lang.inc'
|
2009-10-13 00:12:21 +02:00
|
|
|
|
include '../../../macros.inc'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
include '../../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2009-10-13 00:12:21 +02:00
|
|
|
|
include '../../../develop/libraries/box_lib/load_lib.mac'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
display_processes=32 ; number of processes to show
|
2009-10-12 12:51:22 +02:00
|
|
|
|
@use_library ;use load lib macros
|
2010-01-09 23:01:26 +01:00
|
|
|
|
START: ; start of execution
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
|
|
|
|
sys_load_library library_name, cur_dir_path, library_path, system_path, \
|
|
|
|
|
err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i
|
2010-01-09 23:01:26 +01:00
|
|
|
|
inc eax
|
|
|
|
|
jz close
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; calculate window position
|
|
|
|
|
; at the center of the screen
|
2009-11-11 19:44:12 +01:00
|
|
|
|
mcall 40,0x27 ;set event
|
2006-01-03 10:43:31 +01:00
|
|
|
|
call calculate_window_pos
|
|
|
|
|
|
|
|
|
|
;main loop when process name isn't edited.
|
2010-01-09 23:01:26 +01:00
|
|
|
|
red:
|
|
|
|
|
mcall 48,3,sc,40
|
|
|
|
|
edit_boxes_set_sys_color edit1,edit1_end,sc ;set color
|
|
|
|
|
check_boxes_set_sys_color check1,check1_end,sc ;set color
|
2009-10-11 19:30:06 +02:00
|
|
|
|
xor ebp,ebp
|
|
|
|
|
inc ebp
|
|
|
|
|
; mov ebp,1
|
2010-01-09 23:01:26 +01:00
|
|
|
|
call draw_window ; redraw all window
|
2006-01-03 10:43:31 +01:00
|
|
|
|
still:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov eax,23 ; wait here for event
|
|
|
|
|
mov ebx,100 ; 1 sec.
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
dec eax ; redraw request ?
|
|
|
|
|
jz red
|
|
|
|
|
dec eax ; key in buffer ?
|
|
|
|
|
jz key
|
|
|
|
|
dec eax ; button in buffer ?
|
|
|
|
|
jz button
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
sub eax,3 ; If not use mouse - show
|
2009-11-11 19:44:12 +01:00
|
|
|
|
jnz still_end
|
2010-01-09 23:01:26 +01:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_mouse]
|
2010-02-02 15:07:29 +01:00
|
|
|
|
push dword[check1+32]
|
2009-11-11 19:44:12 +01:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_mouse]
|
2010-02-02 15:07:29 +01:00
|
|
|
|
pop eax
|
|
|
|
|
cmp eax, dword[check1+32]
|
|
|
|
|
jnz still_end
|
2009-11-11 19:44:12 +01:00
|
|
|
|
jmp still
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
still_end:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
xor ebp,ebp ; draw new state of processes
|
2006-01-03 10:43:31 +01:00
|
|
|
|
call draw_window
|
|
|
|
|
jmp still
|
|
|
|
|
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
key: ; key
|
|
|
|
|
mov eax,2
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
cmp ah,184 ; PageUp
|
|
|
|
|
jz pgdn
|
2006-01-03 10:43:31 +01:00
|
|
|
|
cmp ah,183
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz pgup ; PageDown
|
2006-01-03 10:43:31 +01:00
|
|
|
|
cmp ah,27
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz close ; Esc
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_key]
|
2009-11-11 19:44:12 +01:00
|
|
|
|
; Check ENTER with ed_focus edit_box
|
|
|
|
|
lea edi,[edit1]
|
|
|
|
|
test word ed_flags,ed_focus
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz still_end
|
|
|
|
|
sub ah,13 ; ENTER?
|
|
|
|
|
jz program_start ; RUN a program
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2009-11-11 19:44:12 +01:00
|
|
|
|
jmp still
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
button:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; get button id
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov eax,17
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2010-01-09 23:01:26 +01:00
|
|
|
|
shr eax,8
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;id in [10,50] corresponds to terminate buttons.
|
|
|
|
|
cmp eax,10
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jb noterm
|
2006-01-03 10:43:31 +01:00
|
|
|
|
cmp eax,50
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jg noterm
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;calculate button index
|
|
|
|
|
sub eax,11
|
|
|
|
|
|
|
|
|
|
;calculate process slot
|
|
|
|
|
mov ecx,[tasklist+4*eax]
|
|
|
|
|
|
|
|
|
|
;ignore empty buttons
|
|
|
|
|
test ecx,ecx
|
|
|
|
|
jle still_end
|
|
|
|
|
;terminate application
|
|
|
|
|
mov eax,18
|
|
|
|
|
mov ebx,2
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
jmp still_end
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
noterm:
|
|
|
|
|
|
|
|
|
|
;special buttons
|
2009-10-11 19:30:06 +02:00
|
|
|
|
dec eax
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz close
|
2009-10-11 19:30:06 +02:00
|
|
|
|
|
|
|
|
|
sub eax,50
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz pgdn ;51
|
2009-10-11 19:30:06 +02:00
|
|
|
|
dec eax
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz pgup ;52
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; dec eax
|
2009-10-12 19:32:30 +02:00
|
|
|
|
; jz read_string
|
|
|
|
|
dec eax
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz program_start ;53
|
2009-10-11 19:30:06 +02:00
|
|
|
|
dec eax
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz reboot ;54
|
2006-01-03 10:43:31 +01:00
|
|
|
|
jmp still_end
|
|
|
|
|
|
|
|
|
|
;buttons handlers
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
pgdn:
|
|
|
|
|
sub [list_start],display_processes
|
2006-11-02 15:18:23 +01:00
|
|
|
|
; cmp [list_start],0
|
2006-01-03 10:43:31 +01:00
|
|
|
|
jge still_end
|
|
|
|
|
mov [list_start],0
|
|
|
|
|
jmp still_end
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
pgup:
|
|
|
|
|
mov eax,[list_add] ;maximal displayed process slot
|
|
|
|
|
mov [list_start],eax
|
|
|
|
|
jmp still_end
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
program_start:
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov eax,70
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov ebx,file_start
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
jmp still_end
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
reboot:
|
2008-02-19 06:28:11 +01:00
|
|
|
|
mov eax,70
|
|
|
|
|
mov ebx,sys_reboot
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;close program if we going to reboot
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
close:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
or eax,-1 ; close this program
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_next_process:
|
|
|
|
|
;input:
|
|
|
|
|
; edi - current slot
|
|
|
|
|
; [curposy] - y position
|
|
|
|
|
;output:
|
|
|
|
|
; edi - next slot (or -1 if no next slot)
|
|
|
|
|
;registers corrupted!
|
|
|
|
|
|
|
|
|
|
;create button
|
|
|
|
|
test ebp,ebp
|
|
|
|
|
jnz .nodelete
|
|
|
|
|
;delete old button
|
|
|
|
|
mov eax,8
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
add edx,(1 shl 31)+11
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.nodelete:
|
|
|
|
|
;create terminate process button
|
|
|
|
|
mov eax,8
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(15-offset_x)*65536+100-offset_y
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov ecx,[curposy]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,10
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
add edx,11
|
|
|
|
|
mov esi,0xaabbcc
|
|
|
|
|
;contrast
|
|
|
|
|
test dword [index],1
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .change_color_button
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov esi,0x8899aa
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.change_color_button:
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;draw background for proccess information
|
|
|
|
|
mov eax,13
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(115-offset_x)*65536+395
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;ecx was already set
|
|
|
|
|
mov edx,0x88ff88
|
|
|
|
|
;contrast
|
|
|
|
|
test dword [index],1
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .change_color_info
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov edx,0xddffdd
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.change_color_info:
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;nothing else should be done
|
|
|
|
|
;if there is no process for this button
|
|
|
|
|
test edi,edi
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jl .ret
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;find process
|
2009-11-11 19:44:12 +01:00
|
|
|
|
.return_1:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
inc edi
|
|
|
|
|
;more comfortable register for next loop
|
|
|
|
|
mov ecx,edi
|
|
|
|
|
;precacluate pointer to process buffer
|
|
|
|
|
mov ebx,process_info_buffer
|
|
|
|
|
|
|
|
|
|
;find process loop
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.find_loop:
|
|
|
|
|
cmp ecx,256
|
|
|
|
|
jge .no_processes
|
|
|
|
|
|
|
|
|
|
;load process information in buffer
|
|
|
|
|
mov eax,9
|
|
|
|
|
; mov ebx,process_info_buffer
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;if current slot greater than maximal slot,
|
|
|
|
|
;there is no more proccesses.
|
|
|
|
|
cmp ecx,eax
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jg .no_processes
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;if slot state is equal to 9, it is empty.
|
|
|
|
|
cmp [process_info_buffer+process_information.slot_state],9
|
|
|
|
|
jnz .process_found
|
|
|
|
|
|
|
|
|
|
inc ecx
|
|
|
|
|
jmp .find_loop
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.no_processes:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
or edi,-1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
ret
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.process_found:
|
2009-11-11 19:44:12 +01:00
|
|
|
|
;check on/off check box
|
|
|
|
|
push edi
|
|
|
|
|
lea edi,[check1]
|
|
|
|
|
test dword ch_flags,ch_flag_en
|
|
|
|
|
pop edi
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10],'ICON'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .return_1
|
2009-11-11 19:44:12 +01:00
|
|
|
|
cmp dword [process_info_buffer+10],'OS/I'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .return_1
|
2009-11-11 19:44:12 +01:00
|
|
|
|
cmp byte [process_info_buffer+10],'@'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .return_1
|
2009-11-11 19:44:12 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@: mov edi,ecx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov [list_add],ecx
|
|
|
|
|
|
|
|
|
|
;get processor cpeed
|
|
|
|
|
;for percent calculating
|
|
|
|
|
mov eax,18
|
|
|
|
|
mov ebx,5
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mov ebx,100
|
2009-11-11 19:44:12 +01:00
|
|
|
|
div ebx
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;eax = number of operation for 1% now
|
|
|
|
|
;calculate process cpu usage percent
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
mov eax,[process_info_buffer+process_information.cpu_usage]
|
|
|
|
|
; cdq
|
2009-10-11 19:30:06 +02:00
|
|
|
|
xor edx,edx ; for CPU more 2 GHz - mike.dld
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
div ebx
|
|
|
|
|
mov [cpu_percent],eax
|
|
|
|
|
|
|
|
|
|
;set text color to display process information
|
|
|
|
|
;([tcolor] variable)
|
|
|
|
|
;0% : black
|
|
|
|
|
;1-80% : green
|
|
|
|
|
;81-100% : red
|
|
|
|
|
test eax,eax
|
2009-11-11 19:44:12 +01:00
|
|
|
|
jnz .no_black
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov [tcolor],eax
|
|
|
|
|
jmp .color_set
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.no_black:
|
|
|
|
|
cmp eax,80
|
2010-01-09 23:01:26 +01:00
|
|
|
|
ja .no_green
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov dword [tcolor],0x107a30
|
|
|
|
|
jmp .color_set
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.no_green:
|
|
|
|
|
mov dword [tcolor],0xac0000
|
|
|
|
|
.color_set:
|
|
|
|
|
|
|
|
|
|
;show slot number
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov eax,47
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov ebx,2*65536+1*256
|
|
|
|
|
;ecx haven't changed since .process_found
|
|
|
|
|
; mov ecx,edi
|
|
|
|
|
mov edx,[curposy]
|
2009-10-12 12:51:22 +02:00
|
|
|
|
add edx,(20-offset_x)*65536+1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov esi,[tcolor]
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show process name
|
|
|
|
|
mov eax,4
|
|
|
|
|
mov ebx,[curposy]
|
2009-10-12 12:51:22 +02:00
|
|
|
|
add ebx,(50-offset_x)*65536+1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov ecx,[tcolor]
|
|
|
|
|
mov edx,process_info_buffer.process_name
|
|
|
|
|
mov esi,11
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show pid
|
|
|
|
|
mov eax,47
|
|
|
|
|
mov ebx,8*65536+1*256
|
|
|
|
|
mov ecx,[process_info_buffer.PID]
|
|
|
|
|
mov edx,[curposy]
|
2009-10-12 12:51:22 +02:00
|
|
|
|
add edx,(130-offset_x)*65536+1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov esi,[tcolor]
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show cpu usage
|
|
|
|
|
mov ecx,[process_info_buffer.cpu_usage]
|
|
|
|
|
add edx,60*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show cpu percent
|
|
|
|
|
mov ebx,3*65536+0*256
|
|
|
|
|
mov ecx,[cpu_percent]
|
|
|
|
|
add edx,60*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show memory start - obsolete
|
|
|
|
|
mov ebx,8*65536+1*256
|
|
|
|
|
mov ecx,[process_info_buffer.memory_start]
|
|
|
|
|
add edx,30*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show memory usage
|
|
|
|
|
mov ecx,[process_info_buffer.used_memory]
|
|
|
|
|
inc ecx
|
|
|
|
|
add edx,60*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show window stack and value
|
|
|
|
|
mov ecx,dword [process_info_buffer.window_stack_position]
|
|
|
|
|
add edx,60*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;show window xy size
|
2007-05-10 15:48:35 +02:00
|
|
|
|
mov ecx,[process_info_buffer.box.left]
|
2006-01-03 10:43:31 +01:00
|
|
|
|
shl ecx,16
|
2007-05-10 15:48:35 +02:00
|
|
|
|
add ecx,[process_info_buffer.box.top]
|
2006-01-03 10:43:31 +01:00
|
|
|
|
add edx,60*65536
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.ret:
|
|
|
|
|
;build index->slot map for terminating processes.
|
|
|
|
|
mov eax,[index]
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov [tasklist+4*eax],edi
|
2006-01-03 10:43:31 +01:00
|
|
|
|
ret
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;read_string:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;clean string
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov edi,start_application
|
|
|
|
|
; xor eax,eax
|
|
|
|
|
; mov ecx,60
|
|
|
|
|
; cld
|
|
|
|
|
; rep stosb
|
|
|
|
|
; call print_text
|
|
|
|
|
|
|
|
|
|
; mov edi,start_application
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;edi now contains pointer to last symbol
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; jmp still1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;read string main loop
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
f11:
|
|
|
|
|
;full update
|
|
|
|
|
push edi
|
2009-10-12 12:51:22 +02:00
|
|
|
|
xor ebp,ebp
|
|
|
|
|
inc ebp
|
|
|
|
|
; mov ebp,1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
call draw_window
|
|
|
|
|
pop edi
|
2009-10-13 10:08:10 +02:00
|
|
|
|
;
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; still1:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;wait for message
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,23
|
|
|
|
|
; mov ebx,100
|
|
|
|
|
; mcall
|
|
|
|
|
; cmp eax,1
|
|
|
|
|
; je f11
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;if no message - update process information
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; cmp eax,0
|
|
|
|
|
; jnz .message_received
|
|
|
|
|
; push edi ;edi should be saved since draw_window
|
|
|
|
|
; xor ebp,ebp ;corrupt registers
|
|
|
|
|
; call draw_window
|
|
|
|
|
; pop edi
|
|
|
|
|
; jmp still1
|
2009-10-13 10:08:10 +02:00
|
|
|
|
;
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;.message_received:
|
|
|
|
|
; cmp eax,2
|
|
|
|
|
; jne read_done ;buttons message
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;read char
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,2
|
|
|
|
|
; mcall
|
|
|
|
|
; shr eax,8
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;if enter pressed, exit read string loop
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; cmp eax,13
|
|
|
|
|
; je read_done
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;if backslash pressed?
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; cmp eax,8
|
|
|
|
|
; jnz nobsl
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;decrease pointer to last symbol
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; cmp edi,start_application
|
|
|
|
|
; jz still1
|
|
|
|
|
; dec edi
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;fill last symbol with space because
|
|
|
|
|
;print_text show all symbols
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov [edi],byte 32
|
|
|
|
|
; call print_text
|
|
|
|
|
; jmp still1
|
2009-10-13 10:08:10 +02:00
|
|
|
|
;
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; nobsl:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;write new symbol
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov [edi],al
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;display new text
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; call print_text
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;increment pointer to last symbol
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; inc edi
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;compare with end of string
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov esi,start_application
|
|
|
|
|
; add esi,60
|
|
|
|
|
; cmp esi,edi
|
|
|
|
|
; jnz still1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;exiting from read string loop
|
2009-10-13 10:08:10 +02:00
|
|
|
|
;
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; read_done:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;terminate string for file functions
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov [edi],byte 0
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; call print_text
|
|
|
|
|
; jmp still
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2009-10-13 10:08:10 +02:00
|
|
|
|
;
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;print_text:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
;display start_application string
|
|
|
|
|
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; pushad
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;display text background
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,13
|
|
|
|
|
; mov ebx,64*65536+62*6
|
|
|
|
|
; mov ecx,400*65536+12
|
|
|
|
|
; mov edx,0xffffcc ;0xeeeeee
|
|
|
|
|
; mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;display text
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,4
|
|
|
|
|
; mov edx,start_application ;from start_application string
|
|
|
|
|
; mov ebx,70*65536+402 ;text center-aligned
|
|
|
|
|
; xor ecx,ecx ;black text
|
|
|
|
|
; mov esi,60 ;60 symbols
|
|
|
|
|
; mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; popad
|
|
|
|
|
; ret
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
window_x_size=524
|
|
|
|
|
window_y_size=430
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
calculate_window_pos:
|
|
|
|
|
;set window size and position for 0 function
|
|
|
|
|
;to [winxpos] and [winypos] variables
|
|
|
|
|
|
|
|
|
|
;get screen size
|
|
|
|
|
mov eax,14
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov ebx,eax
|
|
|
|
|
|
|
|
|
|
;calculate (x_screen-window_x_size)/2
|
|
|
|
|
shr ebx,16+1
|
|
|
|
|
sub ebx,window_x_size/2
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,window_x_size
|
|
|
|
|
;winxpos=xcoord*65536+xsize
|
|
|
|
|
mov [winxpos],ebx
|
|
|
|
|
|
|
|
|
|
;calculate (y_screen-window_y_size)/2
|
|
|
|
|
and eax,0xffff
|
|
|
|
|
shr eax,1
|
|
|
|
|
sub eax,window_y_size/2
|
|
|
|
|
shl eax,16
|
|
|
|
|
mov ax,window_y_size
|
|
|
|
|
;winypos=ycoord*65536+ysize
|
|
|
|
|
mov [winypos],eax
|
|
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
; *********************************************
|
|
|
|
|
; ******* WINDOW DEFINITIONS AND DRAW ********
|
|
|
|
|
; *********************************************
|
|
|
|
|
|
2009-10-13 10:08:10 +02:00
|
|
|
|
align 16
|
2006-01-03 10:43:31 +01:00
|
|
|
|
draw_window:
|
|
|
|
|
;ebp=1 - redraw all
|
|
|
|
|
;ebp=0 - redraw only process information
|
|
|
|
|
|
|
|
|
|
test ebp,ebp
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .show_process_info
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov eax,12 ; function 12:tell os about windowdraw
|
2009-10-11 19:30:06 +02:00
|
|
|
|
; mov ebx,1 ; 1, start of draw
|
2010-01-09 23:01:26 +01:00
|
|
|
|
xor ebx,ebx
|
2009-10-11 19:30:06 +02:00
|
|
|
|
inc ebx
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
; DRAW WINDOW
|
|
|
|
|
xor eax,eax ; function 0 : define and draw window
|
|
|
|
|
mov ebx,[winxpos] ; [x start] *65536 + [x size]
|
|
|
|
|
mov ecx,[winypos] ; [y start] *65536 + [y size]
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov edx,0x34ddffdd ;ffffff ; color of work area RRGGBB,8->color
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov edi,title ; WINDOW CAPTION;
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
|
|
|
|
add eax,4 ; function 4 : write text to window
|
|
|
|
|
mov ebx,(22-offset_x)*65536+35-offset_y ; draw info text with function 4
|
2006-01-03 10:43:31 +01:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov edx,text
|
2006-11-02 15:18:23 +01:00
|
|
|
|
mov esi,text_len
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_draw]
|
|
|
|
|
push dword check1
|
2009-11-11 19:44:12 +01:00
|
|
|
|
call [check_box_draw]
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2009-10-13 10:08:10 +02:00
|
|
|
|
align 16
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.show_process_info:
|
|
|
|
|
mov edi,[list_start]
|
|
|
|
|
mov [list_add],edi
|
|
|
|
|
mov dword [index],0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov dword [curposy],54-offset_y
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.loop_draw:
|
|
|
|
|
call draw_next_process
|
|
|
|
|
inc dword [index]
|
|
|
|
|
add dword [curposy],10
|
|
|
|
|
cmp [index],display_processes
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jl .loop_draw
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
test ebp,ebp
|
2010-01-09 23:01:26 +01:00
|
|
|
|
jz .end_redraw
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov eax,8
|
|
|
|
|
mov esi,0xaabbcc
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; previous page button
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(30-offset_x)*65536+96
|
|
|
|
|
mov ecx,(380-offset_y)*65536+10
|
2006-01-03 10:43:31 +01:00
|
|
|
|
mov edx,51
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
2009-10-12 19:32:30 +02:00
|
|
|
|
; next page button 52
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(130-offset_x)*65536+96
|
2006-01-03 10:43:31 +01:00
|
|
|
|
inc edx
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
; ">" (text enter) button
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov ebx,30*65536+20
|
2006-01-03 10:43:31 +01:00
|
|
|
|
add ecx,20 shl 16
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; inc edx
|
|
|
|
|
; mcall
|
2010-01-09 23:01:26 +01:00
|
|
|
|
|
2009-10-12 19:32:30 +02:00
|
|
|
|
; run button 53
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(456-offset_x)*65536+50
|
2006-01-03 10:43:31 +01:00
|
|
|
|
inc edx
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
; reboot button
|
2010-01-09 23:01:26 +01:00
|
|
|
|
sub ebx,120*65536
|
2006-01-03 10:43:31 +01:00
|
|
|
|
add ebx,60
|
|
|
|
|
sub ecx,20 shl 16
|
|
|
|
|
inc edx
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;"PREV PAGE", "NEXT PAGE" and "REBOOT" labels
|
|
|
|
|
mov eax,4
|
2009-10-12 12:51:22 +02:00
|
|
|
|
mov ebx,(50-offset_x)*65536+382-offset_y
|
2006-01-03 10:43:31 +01:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov edx,tbts
|
|
|
|
|
mov esi,tbte-tbts
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;">" labels
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,4
|
|
|
|
|
; mov ebx,40*65536+402
|
|
|
|
|
; xor ecx,ecx
|
|
|
|
|
; mov edx,tbts_2
|
|
|
|
|
; mov esi,1
|
|
|
|
|
; mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;"RUN" labels
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; mov eax,4
|
|
|
|
|
mov ebx,(475-offset_x)*65536+402-offset_y
|
2006-01-03 10:43:31 +01:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mov edx,tbts_3
|
|
|
|
|
mov esi,tbte_2-tbts_3
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
|
|
|
|
;print application name in text box
|
2009-10-12 12:51:22 +02:00
|
|
|
|
; call print_text
|
2006-01-03 10:43:31 +01:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
mov eax,12 ; function 12:tell os about windowdraw
|
|
|
|
|
mov ebx,2 ; 2, end of draw
|
2009-10-11 19:30:06 +02:00
|
|
|
|
mcall
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
.end_redraw:
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; DATA AREA
|
2010-01-09 23:01:26 +01:00
|
|
|
|
system_path db '/sys/lib/'
|
|
|
|
|
library_name db 'box_lib.obj',0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
err_message_found_lib db 'Sorry I cannot load library box_lib.obj',0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
head_f_i:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
head_f_l db 'System error',0
|
|
|
|
|
err_message_import db 'Error on load import library box_lib.obj',0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
|
|
|
|
myimport:
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
edit_box_draw dd aEdit_box_draw
|
|
|
|
|
edit_box_key dd aEdit_box_key
|
|
|
|
|
edit_box_mouse dd aEdit_box_mouse
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;version_ed dd aVersion_ed
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
check_box_draw dd aCheck_box_draw
|
|
|
|
|
check_box_mouse dd aCheck_box_mouse
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;version_ch dd aVersion_ch
|
|
|
|
|
|
|
|
|
|
;option_box_draw dd aOption_box_draw
|
|
|
|
|
;option_box_mouse dd aOption_box_mouse
|
|
|
|
|
;version_op dd aVersion_op
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
aEdit_box_draw db 'edit_box',0
|
|
|
|
|
aEdit_box_key db 'edit_box_key',0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
aEdit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
;aVersion_ed db 'version_ed',0
|
|
|
|
|
|
2009-11-11 19:44:12 +01:00
|
|
|
|
aCheck_box_draw db 'check_box_draw',0
|
|
|
|
|
aCheck_box_mouse db 'check_box_mouse',0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;aVersion_ch db 'version_ch',0
|
|
|
|
|
|
|
|
|
|
;aOption_box_draw db 'option_box_draw',0
|
|
|
|
|
;aOption_box_mouse db 'option_box_mouse',0
|
|
|
|
|
;aVersion_op db 'version_op',0
|
2010-02-01 00:21:13 +01:00
|
|
|
|
check1 check_box 10,(400-offset_y),6,11,0x80AABBCC,0,0,check_text,check_t_e,0;ch_flag_en
|
2009-11-11 19:44:12 +01:00
|
|
|
|
check1_end:
|
|
|
|
|
edit1 edit_box 350,(100-offset_x),(398-offset_y),0xffffff,0x6f9480,0,0xAABBCC,0,start_application_c,start_application,mouse_dd,ed_focus,start_application_e,start_application_e
|
2009-10-23 16:36:21 +02:00
|
|
|
|
edit1_end:
|
2006-01-03 10:43:31 +01:00
|
|
|
|
list_start dd 0
|
|
|
|
|
|
2008-02-19 06:28:11 +01:00
|
|
|
|
sys_reboot:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
dd 7
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
db '/sys/end',0
|
2008-02-19 06:28:11 +01:00
|
|
|
|
|
2007-02-12 02:06:46 +01:00
|
|
|
|
if lang eq de
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
text:
|
2009-10-12 12:51:22 +02:00
|
|
|
|
db 'NAME/BEENDEN PID CPU-LAST % '
|
2006-11-02 15:18:23 +01:00
|
|
|
|
db 'SPEICHER START/NUTZUNG W-STACK W-SIZE'
|
|
|
|
|
text_len = $-text
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
tbts: db 'SEITE ZURUECK SEITE VOR REBOOT SYSTEM'
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
tbte:
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;tbts_2 db '>'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
tbts_3 db 'START'
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
tbte_2:
|
2009-11-11 19:44:12 +01:00
|
|
|
|
check_text db '@ gehoren/aus'
|
|
|
|
|
check_t_e=$-check_text
|
2007-05-10 15:48:35 +02:00
|
|
|
|
title db 'Prozesse - Ctrl/Alt/Del',0
|
2007-02-12 02:06:46 +01:00
|
|
|
|
|
2007-01-10 17:01:54 +01:00
|
|
|
|
else if lang eq et
|
|
|
|
|
text:
|
2009-10-12 12:51:22 +02:00
|
|
|
|
db 'NIMI/L<>PETA PID CPU-KASUTUS % '
|
2007-01-10 17:01:54 +01:00
|
|
|
|
db 'M<>LU ALGUS/KASUTUS W-PUHVER W-SUURUS'
|
|
|
|
|
text_len = $-text
|
|
|
|
|
|
|
|
|
|
tbts: db 'EELMINE LEHT J<>RGMINE LEHT REBOODI S<>STEEM'
|
|
|
|
|
tbte:
|
2010-01-09 23:01:26 +01:00
|
|
|
|
;tbts_2 db '>'
|
2007-01-10 17:01:54 +01:00
|
|
|
|
tbts_3 db 'START'
|
|
|
|
|
tbte_2:
|
2009-11-11 19:44:12 +01:00
|
|
|
|
check_text db '@ on/off'
|
|
|
|
|
check_t_e=$-check_text
|
|
|
|
|
title db 'Protsessid - Ctrl/Alt/Del'
|
2007-02-12 02:06:46 +01:00
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
text:
|
2009-10-12 12:51:22 +02:00
|
|
|
|
db 'NAME/TERMINATE PID CPU-USAGE % '
|
2007-02-12 02:06:46 +01:00
|
|
|
|
db 'MEMORY START/USAGE W-STACK W-SIZE'
|
|
|
|
|
text_len = $-text
|
|
|
|
|
|
2010-01-09 23:01:26 +01:00
|
|
|
|
tbts: db 'PREV PAGE NEXT PAGE REBOOT SYSTEM'
|
2007-02-12 02:06:46 +01:00
|
|
|
|
tbte:
|
2009-10-12 12:51:22 +02:00
|
|
|
|
;tbts_2 db '>'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
tbts_3 db 'RUN'
|
2007-02-12 02:06:46 +01:00
|
|
|
|
tbte_2:
|
2009-11-11 19:44:12 +01:00
|
|
|
|
check_text db '@ on/off'
|
|
|
|
|
check_t_e=$-check_text
|
2007-05-10 15:48:35 +02:00
|
|
|
|
title db 'Processes - Ctrl/Alt/Del',0
|
2007-02-12 02:06:46 +01:00
|
|
|
|
|
mv, gifview, jpegview: modified to use function 70
tinypad2: modified for new sysxtree
kernel, mv, board, calendar, cmd, copy2, cpu, end, icon, mhc, pcidev:
german translation from derPENGUIN
git-svn-id: svn://kolibrios.org@135 a494cfbc-eb01-0410-851d-a64ba20cac60
2006-08-25 15:06:57 +02:00
|
|
|
|
end if
|
2009-10-12 19:32:30 +02:00
|
|
|
|
file_start: dd 7
|
2010-01-09 23:01:26 +01:00
|
|
|
|
dd 0,0,0,0
|
2009-10-12 12:51:22 +02:00
|
|
|
|
start_application: db '/sys/LAUNCHER',0
|
|
|
|
|
start_application_e=$-start_application-1
|
|
|
|
|
; times 60 db 0
|
|
|
|
|
rb 60
|
|
|
|
|
start_application_c=$-start_application-1
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
I_END:
|
2009-10-23 16:36:21 +02:00
|
|
|
|
sc system_colors
|
2006-01-03 10:43:31 +01:00
|
|
|
|
winxpos rd 1
|
|
|
|
|
winypos rd 1
|
2009-10-13 20:29:41 +02:00
|
|
|
|
mouse_dd rd 1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
cpu_percent rd 1
|
2010-01-09 23:01:26 +01:00
|
|
|
|
tcolor rd 1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
list_add rd 1
|
|
|
|
|
curposy rd 1
|
2010-01-09 23:01:26 +01:00
|
|
|
|
index rd 1
|
2006-01-03 10:43:31 +01:00
|
|
|
|
tasklist rd display_processes
|
|
|
|
|
process_info_buffer process_information
|
2010-01-09 23:01:26 +01:00
|
|
|
|
cur_dir_path rb 1024
|
|
|
|
|
library_path rb 1024
|
2009-10-13 10:08:10 +02:00
|
|
|
|
|
2006-01-03 10:43:31 +01:00
|
|
|
|
U_END:
|