2006-01-03 12:43:31 +03:00
|
|
|
|
;
|
2012-04-04 05:08:20 +04:00
|
|
|
|
; CPU -process Manager
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
; version: 1.80
|
2012-04-07 17:33:23 +04:00
|
|
|
|
; last update: 07/04/2012
|
|
|
|
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
|
; changes: Complete elimination of flicker.
|
|
|
|
|
; Using f.0 C = 1 - don't fill working area on window draw.
|
|
|
|
|
; Increasing the size of buttons and a bright color.
|
2012-04-07 18:21:53 +04:00
|
|
|
|
; Processing "window is rolled up" and "window is minimized"
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
; version: 1.70
|
2012-04-04 05:08:20 +04:00
|
|
|
|
; last update: 04/04/2012
|
|
|
|
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
|
; changes: Code refactoring and optimization.
|
|
|
|
|
; Added russian language support.
|
|
|
|
|
; Fix - processes information showing not been updated during
|
|
|
|
|
; the processing of mouse events.
|
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
; Many fix's and changes created by:
|
|
|
|
|
; Diamond, Heavyiron, SPraid, <Lrz>,
|
|
|
|
|
; Leency, IgorA, kaitz
|
|
|
|
|
;---------------------------------------------------------------------
|
2009-10-12 14:51:22 +04:00
|
|
|
|
; integrated with load_lib.obj by <Lrz>
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; additions by M.Lisovin lisovin@26.ru
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; original author - VTurjanmaa
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
format binary as ""
|
|
|
|
|
|
|
|
|
|
use32
|
|
|
|
|
org 0x0
|
|
|
|
|
db 'MENUET01' ; 8 byte id
|
|
|
|
|
dd 0x01 ; header version
|
|
|
|
|
dd START ; start of code
|
|
|
|
|
dd IM_END ; size of image
|
|
|
|
|
dd U_END ; memory for app
|
|
|
|
|
dd stack_area ; esp
|
|
|
|
|
dd 0x0 ; boot parameters
|
|
|
|
|
dd 0x0 ; path
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2006-01-03 12:43:31 +03:00
|
|
|
|
include 'lang.inc'
|
2009-10-13 02:12:21 +04:00
|
|
|
|
include '../../../macros.inc'
|
2010-01-10 01:01:26 +03:00
|
|
|
|
include '../../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2009-10-13 02:12:21 +04:00
|
|
|
|
include '../../../develop/libraries/box_lib/load_lib.mac'
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
display_processes=24 ;32 ; number of processes to show
|
2012-04-04 05:08:20 +04:00
|
|
|
|
window_x_size=524
|
|
|
|
|
window_y_size=430
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
@use_library ;use load lib macros
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
START: ; start of execution
|
|
|
|
|
mcall 68,11
|
2009-10-12 14:51:22 +04: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
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc eax
|
|
|
|
|
jz close
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-09-29 22:25:50 +04:00
|
|
|
|
mcall 40,0x80000027 ;set event
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
;set window size and position for 0 function
|
|
|
|
|
;to [winxpos] and [winypos] variables
|
|
|
|
|
;get screen size
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 14
|
|
|
|
|
mov ebx,eax
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;calculate (x_screen-window_x_size)/2
|
2013-03-24 01:10:34 +04:00
|
|
|
|
shr ebx,16+1
|
|
|
|
|
sub ebx,window_x_size/2
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,window_x_size
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;winxpos=xcoord*65536+xsize
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [winxpos],ebx
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;calculate (y_screen-window_y_size)/2
|
2013-03-24 01:10:34 +04:00
|
|
|
|
and eax,0xffff
|
|
|
|
|
shr eax,1
|
|
|
|
|
sub eax,window_y_size/2
|
|
|
|
|
shl eax,16
|
|
|
|
|
mov ax,window_y_size
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;winypos=ycoord*65536+ysize
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [winypos],eax
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
init_checkboxes2 check1,check1_end
|
|
|
|
|
mcall 48,3,sc,40
|
|
|
|
|
edit_boxes_set_sys_color edit1,edit1_end,sc ;set color
|
|
|
|
|
check_boxes_set_sys_color2 check1,check1_end,sc ;set color
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
;main loop when process name isn't edited.
|
|
|
|
|
red:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call draw_window ; redraw all window
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
still:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 23,100 ; wait here for event 1 sec.
|
2013-09-30 23:38:48 +04:00
|
|
|
|
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz still_end
|
2013-03-24 01:10:34 +04:00
|
|
|
|
|
|
|
|
|
dec eax ; redraw request ?
|
|
|
|
|
jz red
|
|
|
|
|
|
|
|
|
|
dec eax ; key in buffer ?
|
|
|
|
|
jz key
|
|
|
|
|
|
|
|
|
|
dec eax ; button in buffer ?
|
|
|
|
|
jz button
|
|
|
|
|
|
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_mouse]
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push dword[check1.flags]
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_mouse]
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
pop eax
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp eax, dword[check1.flags]
|
|
|
|
|
jz still_end
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_draw]
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
show_process_info_1:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 26,9
|
|
|
|
|
add eax,100
|
|
|
|
|
mov [time_counter],eax
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call show_process_info ; draw new state of processes
|
|
|
|
|
jmp still
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
still_end:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 26,9
|
|
|
|
|
cmp [time_counter],eax
|
|
|
|
|
ja still
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add eax,100
|
|
|
|
|
mov [time_counter],eax
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call show_process_info ; draw new state of processes
|
|
|
|
|
jmp still
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2013-03-24 01:10:34 +04:00
|
|
|
|
key: ; key
|
|
|
|
|
mcall 2
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp ah,184 ; PageUp
|
|
|
|
|
jz pgdn
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp ah,183
|
|
|
|
|
jz pgup ; PageDown
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp ah,27
|
|
|
|
|
jz close ; Esc
|
2009-10-12 14:51:22 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_key]
|
|
|
|
|
; Check ENTER with ed_focus edit_box
|
|
|
|
|
lea edi,[edit1]
|
|
|
|
|
test word ed_flags,ed_focus
|
2013-06-02 09:26:24 +04:00
|
|
|
|
jz still_end
|
2009-10-12 14:51:22 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
sub ah,13 ; ENTER?
|
|
|
|
|
jz program_start ; RUN a program
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
jmp still
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
button:
|
|
|
|
|
; get button id
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 17
|
2013-06-02 09:26:24 +04:00
|
|
|
|
shr eax,8
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;id in [10,50] corresponds to terminate buttons.
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp eax,10
|
2013-06-02 09:26:24 +04:00
|
|
|
|
jb noterm
|
2006-01-03 12:43:31 +03:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp eax,50
|
|
|
|
|
jg noterm
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;calculate button index
|
2013-03-24 01:10:34 +04:00
|
|
|
|
sub eax,11
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;calculate process slot
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ecx,[tasklist+4*eax]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;ignore empty buttons
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test ecx,ecx
|
|
|
|
|
jle still_end
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;terminate application
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 18,2
|
2013-06-02 09:26:24 +04:00
|
|
|
|
jmp show_process_info_1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
noterm:
|
|
|
|
|
;special buttons
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dec eax
|
|
|
|
|
jz close
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
sub eax,50
|
|
|
|
|
jz pgdn ;51
|
2006-01-03 12:43:31 +03:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dec eax
|
|
|
|
|
jz pgup ;52
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dec eax
|
|
|
|
|
jz program_start ;53
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dec eax
|
|
|
|
|
jz reboot ;54
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
jmp still_end
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;buttons handlers
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
pgdn:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
sub [list_start],display_processes
|
2013-06-02 09:26:24 +04:00
|
|
|
|
jge show_process_info_1
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [list_start],0
|
|
|
|
|
jmp show_process_info_1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
pgup:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov eax,[list_add] ;maximal displayed process slot
|
|
|
|
|
mov [list_start],eax
|
|
|
|
|
jmp show_process_info_1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
program_start:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 70,file_start
|
|
|
|
|
jmp show_process_info_1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
reboot:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 70,sys_reboot
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;close program if we going to reboot
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
close:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
or eax,-1 ; close this program
|
|
|
|
|
mcall
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
draw_empty_slot:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp [draw_window_flag],1
|
|
|
|
|
je @f
|
|
|
|
|
mov ecx,[curposy]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,10 ; button height
|
|
|
|
|
push ecx
|
|
|
|
|
add ecx,3 shl 16
|
|
|
|
|
mcall 13,<11,95>,,[btn_bacground_color]
|
|
|
|
|
pop ecx
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 13,<111,393>,,[bar_bacground_color]
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
@@:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
ret
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
draw_next_process:
|
|
|
|
|
;input:
|
|
|
|
|
; edi - current slot
|
|
|
|
|
; [curposy] - y position
|
|
|
|
|
;output:
|
|
|
|
|
; edi - next slot (or -1 if no next slot)
|
|
|
|
|
;registers corrupted!
|
|
|
|
|
;delete old button
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp [draw_window_flag],0
|
|
|
|
|
je @f
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
add edx,(1 shl 31)+11
|
|
|
|
|
mcall 8
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
@@:
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;create terminate process button
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ecx,[curposy]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,13 ; button height
|
|
|
|
|
mov edx,[index]
|
|
|
|
|
add edx,11
|
|
|
|
|
mov esi,0xccddee ; 0xaabbcc
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;contrast
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test dword [index],1
|
|
|
|
|
jz .change_color_button
|
|
|
|
|
mov esi,0xaabbcc ; 0x8899aa
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.change_color_button:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp [draw_window_flag],0
|
|
|
|
|
je @f
|
|
|
|
|
mcall 8,<10,99>
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
@@:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [btn_bacground_color],esi
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;draw background for proccess information
|
2012-04-04 05:08:20 +04:00
|
|
|
|
; ecx was already set
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov edx,0xddffdd ; 0x88ff88
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;contrast
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test dword [index],1
|
|
|
|
|
jz .change_color_info
|
|
|
|
|
mov edx,0xffffff ; 0xddffdd
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.change_color_info:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc cx
|
|
|
|
|
cmp [draw_window_flag],0
|
|
|
|
|
je @f
|
|
|
|
|
mcall 13,<110,395>
|
2012-04-07 17:33:23 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
@@:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [bar_bacground_color],edx
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;nothing else should be done
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;if there is no process for this button
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp edi,-1
|
|
|
|
|
jne .return_1
|
2012-04-07 17:33:23 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call draw_empty_slot
|
|
|
|
|
or edi,-1
|
|
|
|
|
jmp .ret
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2009-11-11 21:44:12 +03:00
|
|
|
|
.return_1:
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;find process
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc edi
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;more comfortable register for next loop
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ecx,edi
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;precacluate pointer to process buffer
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ebx,process_info_buffer
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.find_loop:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp ecx,256
|
|
|
|
|
jge .no_processes
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;load process information in buffer
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 9
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;if current slot greater than maximal slot,
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;there is no more proccesses.
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp ecx,eax
|
|
|
|
|
jg .no_processes
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;if slot state is equal to 9, it is empty.
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp [process_info_buffer+process_information.slot_state],9
|
|
|
|
|
jnz .process_found
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc ecx
|
|
|
|
|
jmp .find_loop
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.no_processes:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call draw_empty_slot
|
|
|
|
|
or edi,-1
|
|
|
|
|
ret
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.process_found:
|
2009-11-11 21:44:12 +03:00
|
|
|
|
;check on/off check box
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push edi
|
|
|
|
|
lea edi,[check1]
|
|
|
|
|
test dword ch_flags,ch_flag_en
|
|
|
|
|
pop edi
|
2013-07-08 09:59:43 +04:00
|
|
|
|
jnz .no_filter
|
2012-04-04 05:08:20 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp dword [process_info_buffer+10],'ICON'
|
2013-07-08 09:59:43 +04:00
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+4],0
|
2013-06-02 09:26:24 +04:00
|
|
|
|
jz .return_1
|
2013-07-08 09:59:43 +04:00
|
|
|
|
@@:
|
|
|
|
|
cmp dword [process_info_buffer+10],'IDLE'
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+4],0
|
2013-03-24 01:10:34 +04:00
|
|
|
|
jz .return_1
|
2013-07-08 09:59:43 +04:00
|
|
|
|
@@:
|
|
|
|
|
cmp word [process_info_buffer+10],'OS'
|
|
|
|
|
jnz @f
|
|
|
|
|
cmp dword [process_info_buffer+10+2],0
|
|
|
|
|
jz .return_1
|
|
|
|
|
@@:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp byte [process_info_buffer+10],'@'
|
|
|
|
|
jz .return_1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2013-07-08 09:59:43 +04:00
|
|
|
|
.no_filter:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov edi,ecx
|
|
|
|
|
mov [list_add],ecx
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;get processor cpeed
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;for percent calculating
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 18,5
|
|
|
|
|
xor edx,edx
|
|
|
|
|
mov ebx,100
|
|
|
|
|
div ebx
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;eax = number of operation for 1% now
|
|
|
|
|
;calculate process cpu usage percent
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ebx,eax
|
|
|
|
|
mov eax,[process_info_buffer+process_information.cpu_usage]
|
|
|
|
|
; cdq
|
2013-06-02 09:26:24 +04:00
|
|
|
|
xor edx,edx ; for CPU more 2 GHz - mike.dld
|
2013-03-24 01:10:34 +04:00
|
|
|
|
div ebx
|
|
|
|
|
mov [cpu_percent],eax
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;set text color to display process information
|
|
|
|
|
;([tcolor] variable)
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;0% : black
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;1-80% : green
|
|
|
|
|
;81-100% : red
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test eax,eax
|
|
|
|
|
jnz .no_black
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov [tcolor],eax
|
|
|
|
|
jmp .color_set
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2013-06-02 09:26:24 +04:00
|
|
|
|
.no_black:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
cmp eax,80
|
|
|
|
|
ja .no_green
|
2009-10-13 12:08:10 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov dword [tcolor],0x107a30
|
|
|
|
|
jmp .color_set
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.no_green:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov dword [tcolor],0xac0000
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.color_set:
|
|
|
|
|
;show slot number
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;ecx haven't changed since .process_found
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push edi
|
|
|
|
|
mov edx,[curposy]
|
|
|
|
|
add edx,15*65536+3
|
|
|
|
|
mov esi,[tcolor]
|
|
|
|
|
and esi,0xffffff
|
|
|
|
|
or esi,0x40000000
|
|
|
|
|
mcall 47,<2,256>,,,,[btn_bacground_color]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show process name
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ebx,[curposy]
|
|
|
|
|
add ebx,40*65536+3
|
|
|
|
|
mov ecx,[tcolor]
|
|
|
|
|
and ecx,0xffffff
|
|
|
|
|
or ecx,0x40000000
|
|
|
|
|
mcall 4,,,process_info_buffer.process_name,11,[btn_bacground_color]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show pid
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov edx,[curposy]
|
|
|
|
|
add edx,125*65536+3
|
|
|
|
|
mov esi,[tcolor]
|
|
|
|
|
and esi,0xffffff
|
|
|
|
|
or esi,0x40000000
|
|
|
|
|
mcall 47,<8,256>,[process_info_buffer.PID],,,[bar_bacground_color]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show cpu usage
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add edx,60*65536
|
|
|
|
|
mcall ,,[process_info_buffer.cpu_usage]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show cpu percent
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add edx,60*65536
|
|
|
|
|
mcall ,<3,0>,[cpu_percent]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show memory start - obsolete
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add edx,30*65536
|
|
|
|
|
mcall ,<8,256>,[process_info_buffer.memory_start]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show memory usage
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ecx,[process_info_buffer.used_memory]
|
|
|
|
|
inc ecx
|
|
|
|
|
add edx,60*65536
|
|
|
|
|
mcall
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show window stack and value
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add edx,60*65536
|
|
|
|
|
mcall ,,dword [process_info_buffer.window_stack_position]
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;show window xy size
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ecx,[process_info_buffer.box.left]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
add ecx,[process_info_buffer.box.top]
|
|
|
|
|
add edx,60*65536
|
2013-06-02 09:26:24 +04:00
|
|
|
|
mcall
|
2013-03-24 01:10:34 +04:00
|
|
|
|
pop edi
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
.ret:
|
|
|
|
|
;build index->slot map for terminating processes.
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov eax,[index]
|
2013-06-02 09:26:24 +04:00
|
|
|
|
mov [tasklist+4*eax],edi
|
2013-03-24 01:10:34 +04:00
|
|
|
|
ret
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
f11:
|
2013-06-02 09:26:24 +04:00
|
|
|
|
;full update
|
2013-03-24 01:10:34 +04:00
|
|
|
|
push edi
|
|
|
|
|
call draw_window
|
|
|
|
|
pop edi
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2006-01-03 12:43:31 +03:00
|
|
|
|
; *********************************************
|
|
|
|
|
; ******* WINDOW DEFINITIONS AND DRAW ********
|
|
|
|
|
; *********************************************
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2006-01-03 12:43:31 +03:00
|
|
|
|
draw_window:
|
2013-06-02 09:26:24 +04:00
|
|
|
|
mcall 12, 1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
; DRAW WINDOW
|
2013-03-24 01:10:34 +04:00
|
|
|
|
xor eax,eax ; function 0 : define and draw window
|
|
|
|
|
xor esi,esi
|
|
|
|
|
mcall ,[winxpos],[winypos],0x74ffffff,,title ;0x34ddffdd
|
|
|
|
|
|
|
|
|
|
mcall 9,process_info_buffer,-1
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov eax,[ebx+70]
|
|
|
|
|
mov [window_status],eax
|
|
|
|
|
test [window_status],100b ; window is rolled up
|
|
|
|
|
jnz .exit
|
|
|
|
|
|
|
|
|
|
test [window_status],10b ; window is minimized to panel
|
|
|
|
|
jnz .exit
|
|
|
|
|
|
|
|
|
|
mov eax,[ebx+62]
|
|
|
|
|
inc eax
|
|
|
|
|
mov [client_area_x_size],eax
|
|
|
|
|
mov eax,[ebx+66]
|
|
|
|
|
inc eax
|
|
|
|
|
mov [client_area_y_size],eax
|
|
|
|
|
|
|
|
|
|
mov ebx,[client_area_x_size]
|
|
|
|
|
mcall 13,,<0,20>,0xffffff
|
2012-04-07 17:33:23 +04:00
|
|
|
|
; function 4 : write text to window
|
2013-03-24 01:10:34 +04:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mcall 4,<17,8>,,text,text_len
|
|
|
|
|
|
|
|
|
|
mcall 13,<0,10>,<20,336>,0xffffff
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ebx,[client_area_x_size]
|
|
|
|
|
sub ebx,10+100+395
|
|
|
|
|
add ebx,(10+100+395) shl 16
|
|
|
|
|
mcall
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 26,9
|
|
|
|
|
add eax,100
|
|
|
|
|
mov [time_counter],eax
|
|
|
|
|
|
|
|
|
|
mov [draw_window_flag],1
|
|
|
|
|
call show_process_info
|
|
|
|
|
mov [draw_window_flag],0
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov ebx,[client_area_x_size]
|
|
|
|
|
mov ecx,[client_area_y_size]
|
|
|
|
|
sub ecx,20+336
|
|
|
|
|
add ecx,(20+336) shl 16
|
|
|
|
|
mcall 13,,,0xffffff
|
|
|
|
|
|
|
|
|
|
push dword edit1
|
|
|
|
|
call [edit_box_draw]
|
|
|
|
|
|
|
|
|
|
push dword check1
|
|
|
|
|
call [check_box_draw]
|
2013-06-02 09:26:24 +04:00
|
|
|
|
|
2006-01-03 12:43:31 +03:00
|
|
|
|
; previous page button
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 8,<25,96>,<361,14>,51,0xccddee ;0xaabbcc
|
2009-10-12 21:32:30 +04:00
|
|
|
|
; next page button 52
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<125,96>
|
2006-01-03 12:43:31 +03:00
|
|
|
|
; ">" (text enter) button
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add ecx,20 shl 16
|
2009-10-12 21:32:30 +04:00
|
|
|
|
; run button 53
|
2013-03-24 01:10:34 +04:00
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<456,50>
|
2013-06-02 09:26:24 +04:00
|
|
|
|
; reboot button
|
|
|
|
|
sub ebx,120*65536
|
2013-03-24 01:10:34 +04:00
|
|
|
|
add ebx,60
|
|
|
|
|
sub ecx,20 shl 16
|
|
|
|
|
inc edx
|
|
|
|
|
mcall
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;"PREV PAGE", "NEXT PAGE" and "REBOOT" labels
|
2013-03-24 01:10:34 +04:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
mcall 4,<45,365>,,tbts,tbte-tbts
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;"RUN" labels
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall ,<464,385>,,tbts_3,tbte_2-tbts_3
|
2006-01-03 12:43:31 +03:00
|
|
|
|
;print application name in text box
|
2012-04-07 18:21:53 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
.exit:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mcall 12, 2
|
|
|
|
|
ret
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
show_process_info:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test [window_status],100b ; window is rolled up
|
|
|
|
|
jnz .exit
|
2012-04-07 18:21:53 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
test [window_status],10b ; window is minimized to panel
|
|
|
|
|
jnz .exit
|
2012-04-07 18:21:53 +04:00
|
|
|
|
|
2013-09-29 15:05:02 +04:00
|
|
|
|
mov ecx,display_processes
|
|
|
|
|
mov edi,tasklist
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cld
|
|
|
|
|
rep stosd
|
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
mov edi,[list_start]
|
|
|
|
|
mov [list_add],edi
|
|
|
|
|
mov dword [index],0
|
|
|
|
|
mov dword [curposy],20
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
.loop_draw:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
call draw_next_process
|
|
|
|
|
inc dword [index]
|
|
|
|
|
add dword [curposy],14
|
|
|
|
|
cmp [index],display_processes
|
|
|
|
|
jl .loop_draw
|
2012-04-07 18:21:53 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
.exit:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
ret
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2006-01-03 12:43:31 +03:00
|
|
|
|
; DATA AREA
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-03-24 01:10:34 +04:00
|
|
|
|
system_path db '/sys/lib/'
|
|
|
|
|
library_name db 'box_lib.obj',0
|
2009-10-12 14:51:22 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
err_message_found_lib db 'Sorry I cannot load library box_lib.obj',0
|
2009-10-12 14:51:22 +04:00
|
|
|
|
head_f_i:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
head_f_l db 'System error',0
|
|
|
|
|
err_message_import db 'Error on load import library box_lib.obj',0
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
|
|
|
|
myimport:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
edit_box_draw dd aEdit_box_draw
|
|
|
|
|
edit_box_key dd aEdit_box_key
|
|
|
|
|
edit_box_mouse dd aEdit_box_mouse
|
|
|
|
|
;version_ed dd aVersion_ed
|
|
|
|
|
|
|
|
|
|
init_checkbox dd aInit_checkbox
|
|
|
|
|
check_box_draw dd aCheck_box_draw
|
|
|
|
|
check_box_mouse dd aCheck_box_mouse
|
|
|
|
|
;version_ch dd aVersion_ch
|
|
|
|
|
|
|
|
|
|
;option_box_draw dd aOption_box_draw
|
|
|
|
|
;option_box_mouse dd aOption_box_mouse
|
|
|
|
|
;version_op dd aVersion_op
|
|
|
|
|
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
|
|
|
|
|
aEdit_box_draw db 'edit_box',0
|
|
|
|
|
aEdit_box_key db 'edit_box_key',0
|
|
|
|
|
aEdit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
;aVersion_ed db 'version_ed',0
|
|
|
|
|
|
|
|
|
|
aInit_checkbox db 'init_checkbox2',0
|
|
|
|
|
aCheck_box_draw db 'check_box_draw2',0
|
|
|
|
|
aCheck_box_mouse db 'check_box_mouse2',0
|
|
|
|
|
;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
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2013-01-17 23:25:01 +04:00
|
|
|
|
check1 check_box2 (10 shl 16)+11,(383 shl 16)+11,6, 0x80AABBCC,0,0,check_text, ch_flag_bottom ;ch_flag_en
|
2009-11-11 21:44:12 +03:00
|
|
|
|
check1_end:
|
2012-04-07 17:33:23 +04:00
|
|
|
|
edit1 edit_box 350,95,381,0xffffff,0x6f9480,0,0xAABBCC,0,start_application_c,\
|
2012-04-04 05:08:20 +04:00
|
|
|
|
start_application,mouse_dd,ed_focus,start_application_e,start_application_e
|
2009-10-23 18:36:21 +04:00
|
|
|
|
edit1_end:
|
2006-01-03 12:43:31 +03:00
|
|
|
|
list_start dd 0
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2008-02-19 08:28:11 +03:00
|
|
|
|
sys_reboot:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dd 7
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
db '/sys/end',0
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2007-02-12 04:06:46 +03: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 17:06:57 +04:00
|
|
|
|
text:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
db 'NAME/BEENDEN PID CPU-LAST % '
|
|
|
|
|
db 'SPEICHER START/NUTZUNG W-STACK W-POS'
|
2006-11-02 17:18:23 +03:00
|
|
|
|
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 17:06:57 +04:00
|
|
|
|
|
2013-03-24 01:10:34 +04: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 17:06:57 +04:00
|
|
|
|
tbte:
|
2013-03-24 01:10:34 +04: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 17:06:57 +04:00
|
|
|
|
tbte_2:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
check_text db '@ on/off',0
|
|
|
|
|
title db 'Prozesse - Ctrl/Alt/Del',0
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
2007-01-10 19:01:54 +03:00
|
|
|
|
else if lang eq et
|
|
|
|
|
text:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
db 'NIMI/L<>PETA PID CPU-KASUTUS % '
|
|
|
|
|
db 'M<>LU ALGUS/KASUTUS W-PUHVER W-SUURUS'
|
2007-01-10 19:01:54 +03:00
|
|
|
|
text_len = $-text
|
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts: db 'EELMINE LEHT J<>RGMINE LEHT REBOODI S<>STEEM'
|
2007-01-10 19:01:54 +03:00
|
|
|
|
tbte:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts_3 db 'START'
|
2007-01-10 19:01:54 +03:00
|
|
|
|
tbte_2:
|
2013-09-22 00:26:44 +04:00
|
|
|
|
check_text db '@ sees/v<>l.',0
|
2013-03-24 01:10:34 +04:00
|
|
|
|
title db 'Protsessid - Ctrl/Alt/Del'
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
|
|
|
|
else if lang eq ru
|
|
|
|
|
text:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
db '<27><><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> PID CPU-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> % '
|
|
|
|
|
db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD> W-STACK W-POS'
|
2012-04-04 05:08:20 +04:00
|
|
|
|
text_len = $-text
|
2007-02-12 04:06:46 +03:00
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts: db '<27><><EFBFBD><EFBFBD>.<2E><><EFBFBD> <20><><EFBFBD><EFBFBD>.<2E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
|
2012-04-04 05:08:20 +04:00
|
|
|
|
tbte:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts_3 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
|
2012-04-04 05:08:20 +04:00
|
|
|
|
tbte_2:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
check_text db '@ <20><><EFBFBD>/<2F>몫',0
|
|
|
|
|
title db '<27><>ᯥ<EFBFBD><E1AFA5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ - Ctrl/Alt/Del',0
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;--------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
else if lang eq it
|
|
|
|
|
text:
|
|
|
|
|
db 'NOME-PROGRAMMA PID USO CPU % '
|
|
|
|
|
db 'MEMORY START/USAGE W-STACK W-POS'
|
|
|
|
|
text_len = $-text
|
|
|
|
|
|
|
|
|
|
tbts: db 'INDIETRO AVANTI RIAVVIA SISTEMA'
|
|
|
|
|
tbte:
|
|
|
|
|
tbts_3 db 'START'
|
|
|
|
|
tbte_2:
|
|
|
|
|
check_text db '@ on/off',0
|
|
|
|
|
title db 'Gestore processi - Ctrl/Alt/Del',0
|
|
|
|
|
;--------------------------------------
|
2007-02-12 04:06:46 +03:00
|
|
|
|
else
|
|
|
|
|
text:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
db 'NAME/TERMINATE PID CPU-USAGE % '
|
|
|
|
|
db 'MEMORY START/USAGE W-STACK W-POS'
|
2007-02-12 04:06:46 +03:00
|
|
|
|
text_len = $-text
|
|
|
|
|
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts: db 'PREV PAGE NEXT PAGE REBOOT SYSTEM'
|
2007-02-12 04:06:46 +03:00
|
|
|
|
tbte:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
tbts_3 db ' RUN'
|
2007-02-12 04:06:46 +03:00
|
|
|
|
tbte_2:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
check_text db '@ on/off',0
|
|
|
|
|
title db 'Process manager - Ctrl/Alt/Del',0
|
2007-02-12 04:06:46 +03: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 17:06:57 +04:00
|
|
|
|
end if
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
file_start:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
dd 7
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
2009-10-12 14:51:22 +04:00
|
|
|
|
start_application: db '/sys/LAUNCHER',0
|
|
|
|
|
start_application_e=$-start_application-1
|
|
|
|
|
; times 60 db 0
|
2013-03-24 01:10:34 +04:00
|
|
|
|
rb 60
|
2009-10-12 14:51:22 +04:00
|
|
|
|
start_application_c=$-start_application-1
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
IM_END:
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2009-10-23 18:36:21 +04:00
|
|
|
|
sc system_colors
|
2013-03-24 01:10:34 +04:00
|
|
|
|
winxpos rd 1
|
|
|
|
|
winypos rd 1
|
|
|
|
|
mouse_dd rd 1
|
|
|
|
|
cpu_percent rd 1
|
|
|
|
|
tcolor rd 1
|
|
|
|
|
list_add rd 1
|
|
|
|
|
curposy rd 1
|
|
|
|
|
index rd 1
|
|
|
|
|
tasklist rd display_processes
|
|
|
|
|
time_counter rd 1
|
|
|
|
|
|
|
|
|
|
window_status rd 1
|
|
|
|
|
client_area_x_size rd 1
|
|
|
|
|
client_area_y_size rd 1
|
|
|
|
|
bar_bacground_color rd 1
|
|
|
|
|
btn_bacground_color rd 1
|
|
|
|
|
draw_window_flag rd 1
|
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
library_path:
|
2006-01-03 12:43:31 +03:00
|
|
|
|
process_info_buffer process_information
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2012-04-04 05:08:20 +04:00
|
|
|
|
cur_dir_path:
|
2013-03-24 01:10:34 +04:00
|
|
|
|
rb 1024
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
2013-06-02 09:26:24 +04:00
|
|
|
|
align 4
|
2013-03-24 01:10:34 +04:00
|
|
|
|
rb 1024
|
2012-04-04 05:08:20 +04:00
|
|
|
|
stack_area:
|
|
|
|
|
;------------------------------------------------------------------------------
|
2006-01-03 12:43:31 +03:00
|
|
|
|
U_END:
|
2012-04-04 05:08:20 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|