Subversion Repositories Kolibri OS

Rev

Rev 593 | Rev 618 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 593 Rev 608
Line 53... Line 53...
53
;;
53
;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
54
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 55... Line 55...
55
 
55
 
Line 56... Line 56...
56
include 'macros.inc'
56
include 'macros.inc'
Line 57... Line 57...
57
 
57
 
Line 58... Line 58...
58
$Revision: 593 $
58
$Revision: 608 $
Line 2043... Line 2043...
2043
        dd      sysfn_getallmem         ; 17 = get total memory size
2043
        dd      sysfn_getallmem         ; 17 = get total memory size
2044
        dd      sysfn_terminate2        ; 18 = terminate thread using PID
2044
        dd      sysfn_terminate2        ; 18 = terminate thread using PID
2045
                                        ;                 instead of slot
2045
                                        ;                 instead of slot
2046
        dd      sysfn_mouse_acceleration; 19 = set/get mouse acceleration
2046
        dd      sysfn_mouse_acceleration; 19 = set/get mouse acceleration
2047
        dd      sysfn_meminfo           ; 20 = get extended memory info
2047
        dd      sysfn_meminfo           ; 20 = get extended memory info
-
 
2048
        dd      sysfn_pid_to_slot       ; 21 = get slot number for pid
-
 
2049
        dd      sysfn_min_rest_window   ; 22 = minimize and restore any window
2048
sysfn_num = ($ - sys_system_table)/4
2050
sysfn_num = ($ - sys_system_table)/4
2049
endg
2051
endg
Line 2050... Line 2052...
2050
 
2052
 
2051
sys_system:
2053
sys_system:
Line 2286... Line 2288...
2286
     mov  eax,[MEM_AMOUNT]
2288
     mov  eax,[MEM_AMOUNT]
2287
     shr eax, 10
2289
     shr eax, 10
2288
     mov  [esp+36],eax
2290
     mov  [esp+36],eax
2289
     ret
2291
     ret
Line -... Line 2292...
-
 
2292
 
-
 
2293
; // Alver, 2007-22-08 // {
-
 
2294
sysfn_pid_to_slot:
-
 
2295
     mov   eax, ebx
-
 
2296
     call  pid_to_slot
-
 
2297
     mov   [esp+36], eax
-
 
2298
     ret
-
 
2299
 
-
 
2300
sysfn_min_rest_window:
-
 
2301
     pushad
-
 
2302
     mov   eax, ecx      ; ebx - operating
-
 
2303
     shr   ebx, 1
-
 
2304
     jnc    @f
-
 
2305
     call  pid_to_slot
-
 
2306
@@:
-
 
2307
     or    eax, eax      ; eax - number of slot
-
 
2308
     jz    .error
-
 
2309
     cmp   eax, 255         ; varify maximal slot number
-
 
2310
     ja    .error
-
 
2311
     xor   ecx, ecx
-
 
2312
     mov   cx, [WIN_STACK + eax*2]  ; ecx - window number
-
 
2313
     mov   eax, ecx
-
 
2314
     shr   ebx, 1
-
 
2315
     jc    .restore
-
 
2316
 ; .minimize:
-
 
2317
     call  minimize_window
-
 
2318
     jmp   .exit
-
 
2319
.restore:
-
 
2320
     call  restore_minimized_window
-
 
2321
.exit:
-
 
2322
     popad
-
 
2323
     xor   eax, eax
-
 
2324
     mov   [esp+36], eax
-
 
2325
     ret
-
 
2326
.error:
-
 
2327
     popad
-
 
2328
     xor   eax, eax
-
 
2329
     dec   eax
-
 
2330
     mov   [esp+36], eax
-
 
2331
     ret
-
 
2332
; } \\ Alver, 2007-22-08 \\
2290
 
2333
 
2291
uglobal
2334
uglobal
2292
;// mike.dld, 2006-29-01 [
2335
;// mike.dld, 2006-29-01 [
2293
screen_workarea RECT
2336
screen_workarea RECT
2294
;// mike.dld, 2006-29-01 ]
2337
;// mike.dld, 2006-29-01 ]