Answer the question
In order to leave comments, you need to log in
What parameters should be passed to ReadConsole?
format PE console 5.0
include 'win32ax.inc'
entry start
section '.data' data readable writeable
caption db 'First Win32 program',0
Message db 'Hello World!',0
section '.code' code readable executable
start:
stdcall [ReadConsole],GENERIC_READ,Message,13,0,0
stdcall [ExitProcess],0
section '.relocs' fixups readable writeable
section '.idata' import data readable writeable
library kernel,'KERNEL32.DLL'
import kernel,\
ReadConsole,'ReadConsoleA',\
ExitProcess,'ExitProcess'
BOOL ReadConsole(
HANDLE hConsoleInput , // дескриптор буфера ввода консоли
LPVOID lpBuffer, // буфер данных
DWORD nNumberOfCharsToRead, // число символов для чтения
LPDWORD lpNumberOfCharsRead , // число прочитанных символов
LPVOID lpReserved // зарезервировано
);
Answer the question
In order to leave comments, you need to log in
stdcall[ReadConsole],GENERIC_READ,Message,13,0,0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question