Subversion Repositories Kolibri OS

Rev

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

Rev 87 Rev 114
Line 73... Line 73...
73
struc dt [a] { common . dt a
73
struc dt [a] { common . dt a
74
  if ~used .
74
  if ~used .
75
    display 'not used dt: ',`.,13,10
75
    display 'not used dt: ',`.,13,10
76
  end if }
76
  end if }
Line -... Line 77...
-
 
77
 
-
 
78
struc RECT {
-
 
79
  .left   dd ?
-
 
80
  .top    dd ?
-
 
81
  .right  dd ?
-
 
82
  .bottom dd ?
-
 
83
}
-
 
84
virtual at 0
-
 
85
 RECT RECT
-
 
86
end virtual
-
 
87
 
-
 
88
struc BOX {
-
 
89
  .left   dd ?
-
 
90
  .top    dd ?
-
 
91
  .width  dd ?
-
 
92
  .height dd ?
-
 
93
}
-
 
94
virtual at 0
-
 
95
 BOX BOX
-
 
96
end virtual
77
 
97
 
78
; constants definition
98
; constants definition
79
WSTATE_NORMAL    = 00000000b
99
WSTATE_NORMAL	 = 00000000b
80
WSTATE_MAXIMIZED = 00000001b
100
WSTATE_MAXIMIZED = 00000001b
81
WSTATE_MINIMIZED = 00000010b
101
WSTATE_MINIMIZED = 00000010b
Line -... Line 102...
-
 
102
WSTATE_ROLLEDUP  = 00000100b
-
 
103
 
-
 
104
WSTATE_REDRAW	 = 00000001b
-
 
105
WSTATE_WNDDRAWN  = 00000010b
-
 
106
 
-
 
107
WSTYLE_HASCAPTION     = 00010000b
-
 
108
WSTYLE_CLIENTRELATIVE = 00100000b
-
 
109
 
-
 
110
struc TASKLIST
-
 
111
{
-
 
112
  .event_mask  dd ?
-
 
113
  .pid	       dd ?
-
 
114
	       dw ?
-
 
115
  .state       dw ?
-
 
116
	       dw ?
-
 
117
  .wnd_number  db ?
-
 
118
	       db ?
-
 
119
  .mem_start   dd ?
-
 
120
  .counter_sum dd ?
-
 
121
  .counter_add dd ?
-
 
122
  .cpu_usage   dd ?
-
 
123
}
-
 
124
virtual at 0
-
 
125
 TASKLIST TASKLIST
82
WSTATE_ROLLEDUP  = 00000100b
126
end virtual
83
 
127
 
84
; structures definition
-
 
85
struc WDATA {
128
; structures definition
86
  .left        dd ?
-
 
87
  .top         dd ?
-
 
88
  .width       dd ?
129
struc WDATA {
89
  .height      dd ?
130
  .box		   BOX
90
  .cl_workarea dd ?
131
  .cl_workarea	   dd ?
91
  .cl_titlebar dd ?
132
  .cl_titlebar	   dd ?
92
  .cl_frames   dd ?
133
  .cl_frames	   dd ?
Line 96... Line 137...
96
  .fl_redraw   db ?
137
  .fl_redraw	   db ?
97
}
138
}
98
virtual at 0
139
virtual at 0
99
 WDATA WDATA
140
 WDATA WDATA
100
end virtual
141
end virtual
101
label WDATA.fl_wstyle byte at 0x13 ; WDATA.cl_workarea+3
142
label WDATA.fl_wstyle byte at 0x13
102
 
-
 
103
struc RECT {
-
 
104
  .left   dd ?
-
 
105
  .top    dd ?
-
 
106
  .right  dd ?
-
 
107
  .bottom dd ?
-
 
108
}
-
 
109
virtual at 0
-
 
110
 RECT RECT
-
 
111
end virtual
-
 
Line 112... Line 143...
112
 
143
 
-
 
144
struc APPDATA
-
 
145
{
-
 
146
  .app_name	   db 11  dup(?)
-
 
147
		   db 5   dup(?)
-
 
148
  .fpu_save_area   db 108 dup(?)
-
 
149
		   db 3   dup(?)
-
 
150
  .is_fpu_saved    db ?
-
 
151
  .wnd_shape	   dd ?
113
struc BOX {
152
  .wnd_shape_scale dd ?
-
 
153
  .gdt		   dd ?
-
 
154
  .mem_size	   dd ?
114
  .left   dd ?
155
  .saved_box	   BOX
115
  .top    dd ?
156
  .ipc_start	   dd ?
-
 
157
  .ipc_size	   dd ?
-
 
158
  .event_mask	   dd ?
-
 
159
  .debugger_slot   dd ?
-
 
160
  .int40_handler   dd ?
-
 
161
  .keyboard_mode   db ?
116
  .width  dd ?
162
		   db 3   dup(?)
-
 
163
  .dir_table	   dd ?
-
 
164
  .dbg_event_mem   dd ?
-
 
165
  .dbg_regs:
-
 
166
  .dbg_regs.dr0    dd ?
-
 
167
  .dbg_regs.dr1    dd ?
-
 
168
  .dbg_regs.dr2    dd ?
-
 
169
  .dbg_regs.dr3    dd ?
-
 
170
  .dbg_regs.dr7    dd ?
-
 
171
  .wnd_caption	   dd ?
117
  .height dd ?
172
  .wnd_clientbox   BOX
118
}
173
}
119
virtual at 0
174
virtual at 0
120
 BOX BOX
175
 APPDATA APPDATA
Line 121... Line 176...
121
end virtual
176
end virtual
Line 122... Line 177...
122
 
177
 
123
;// mike.dld, 2006-29-01 ]
178
;// mike.dld, 2006-29-01 ]
124
 
179
 
125
 
180
 
126
; Core functions
181
; Core functions
127
include "core/sync.inc"
182
include "core/sync.inc"     ; macros for synhronization objects
128
include "core/sys32.inc"    ; process management
183
include "core/sys32.inc"    ; process management
129
include "core/sched.inc"    ; process scheduling
184
include "core/sched.inc"    ; process scheduling
130
include "core/syscall.inc"  ; system call
-
 
Line 131... Line 185...
131
include "core/mem.inc"      ; high-level memory management
185
include "core/syscall.inc"  ; system call
132
include "core/newproce.inc" ;new process management
186
include "core/mem.inc"      ; high-level memory management
133
include "core/physmem.inc"  ; access to physical memory for applications
187
include "core/newproce.inc" ;new process management
134
include "core/sync.inc"     ; macros for synhronization objects
188
include "core/physmem.inc"  ; access to physical memory for applications