13.2.1.2 - 2


call GetStdHandle

mov [din], eax

push STD_OUTPUT_HANDLE

call GetStdHandle

mov [dout], eax

push 0 offset siz 22 offset mystr [dout]

call WriteConsoleA

push 0 offset siz 80 offset buf [din]

call ReadConsoleA

push 0 offset siz [siz] offset buf [dout]

call WriteConsoleA

call ExitProcess

end begin

- 'Input string, please', .

, , . :

       

       

       

       

       

.

1. , :

        ;

        ;

       

Hello

world.

1.     , win.inc, :

2.    

:

MB_OK equ 0

STD_INPUT_HANDLE equ -10

STD_OUTPUT_HANDLE equ -11

STD_ERROR_HANDLE equ -12

macro ShowMessage str1, tit, button

push button

push tit