Re: Sending/returning values to MFC/Microsoft functions



On Wed, 18 Oct 2006 05:02:04 GMT, Tim Roberts <spamtrap@xxxxxxxxxx>
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.

Gee, and here I thought that they were all StdCall, as shown in the
Documentation and the C headers.

(except for an odd 2 or 3 which are actually cdecl)
--
ArarghMail610 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the garbage from the reply address.

.



Relevant Pages