Answer the question
In order to leave comments, you need to log in
What is lpNumberOfBytesWritten in the WINAPI WriteFile function and why?
BOOL WriteFile(
[in] HANDLE hFile,
[in] LPCVOID lpBuffer,
[in] DWORD nNumberOfBytesToWrite,
[out, optional] LPDWORD lpNumberOfBytesWritten,
[in, out, optional] LPOVERLAPPED lpOverlapped
);
; DWORD bytes;
mov ebp, esp
sub esp, 4
; hStdOut = GetstdHandle( STD_OUTPUT_HANDLE)
push -11
call [email protected]
mov ebx, eax
; WriteFile( hstdOut, message, length(message), &bytes, 0);
push 0
lea eax, [ebp-4] ; ВОТ ЭТА СТРОКА ЭТО ЧТО? ПОЧЕМУ ТАК?
push eax ; и тут он передаёт как четвёртый аргумент.
push (message_end - message)
push message
push ebx
call [email protected]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question