Re: Sending/returning values to MFC/Microsoft functions
- From: "Trev" <spamtrap@xxxxxxxxxx>
- Date: 18 Oct 2006 01:44:08 -0700
Ah, great!
Do I have to pass them in in reverse order? So, if I had a Kernel32
function with a prototype
YoureSoBlobby(int i1, int i2, int i3);
would I do something like
mov eax, i1
push eax
mov eax, i2
push eax
mov eax, i3
push eax
call YoureSoBlobby
TIA!
Tim Roberts wrote:
"Trev" <spamtrap@xxxxxxxxxx> wrote:
Sorry for a really stupid question, but how do I send and receive
values to/from Windows APIs? Is it via the stack, or via registers? If
the latter, is there a website that lists which registers contain which
return values?
All of the Windows APIs are C APIs. That means values are passed in on the
stack, and dword return values are returned in eax.
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.
- Follow-Ups:
- Re: Sending/returning values to MFC/Microsoft functions
- From: spamtrap
- Re: Sending/returning values to MFC/Microsoft functions
- References:
- Sending/returning values to MFC/Microsoft functions
- From: Trev
- Re: Sending/returning values to MFC/Microsoft functions
- From: Tim Roberts
- Sending/returning values to MFC/Microsoft functions
- Prev by Date: Having trouble posting?
- Next by Date: Re: GCC inline assembly
- Previous by thread: Re: Sending/returning values to MFC/Microsoft functions
- Next by thread: Re: Sending/returning values to MFC/Microsoft functions
- Index(es):
Relevant Pages
|