.486
.model flat, stdcall
option casemap :none ; case sensitive
include windows.inc
include kernel32.inc
include user32.inc
include gdi32.inc
includelib kernel32.lib
includelib user32.lib
includelib gdi32.lib
.data? ; ---
Desktop dd ?
Canvas dd ?
Razmer dd 4 dup (?);
x dd ?
X1 dd ?
Y1 dd ?
X2 dd ?
Y2 dd ?
.data
R dd 100
dva dd 2
.code
start:
call GetDesktopWindows
mov Desktop,eax
push offset Razmer
push Desktop
call GetWindowReact
mov Canva,eax
mov eax,Razmer
add eax,Razmer+8
div dva
mov X,eax
mov eax,Razmer+4
add eax,Razmer+12
mov edx,0
div dva
mov Y,eax
mov eax,X
add eax,R
mov X1,eax
mov eax,Y
sub eax,R
mov Y1,eax
mov X2,eax
mov eax, Y
add eax, R
mov Y2,eax
push Y2
push X2
push Y1
push X1
Push Canvas
call Ellipse
Push 0
call ExitPocess
end start