Introduced APPDATA, TASKDATA, WNDDATA, RECT, BOX structures.

git-svn-id: svn://kolibrios.org@115 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Poddubny
2006-08-06 10:29:45 +00:00
parent 9a27b206b3
commit 3e2bc5b35f
29 changed files with 534 additions and 561 deletions

View File

@@ -27,7 +27,7 @@ start_wait=$
ok=$
push eax
mov eax,dword [0x3010+second_base_address]
mov eax,[eax+0x4]
mov eax,[eax+TASKDATA.pid]
mov [name],eax
pop eax
sti
@@ -61,7 +61,7 @@ macro WaitSimpleCriticalSection name
local start_wait,first_wait,inc_counter,end_wait
push eax
mov eax,[0x3010+second_base_address]
mov eax,[eax+0x4]
mov eax,[eax+TASKDATA.pid]
start_wait=$
cli
cmp [name],dword 0
@@ -93,7 +93,7 @@ macro TryWaitSimpleCriticalSection name ;result in eax and in flags
{
local ok,try_end
mov eax,[0x3000+second_base_address]
mov eax,[eax+0x4]
mov eax,[eax+TASKDATA.pid]
cmp [name],eax
jz ok
cmp [name],0