Re: Sending/returning values to MFC/Microsoft functions
- From: NoSpam@xxxxxxxxxxx (Bob Masta)
- Date: Wed, 18 Oct 2006 12:30:22 GMT
On Wed, 18 Oct 2006 00:53:59 -0500, spamtrap@xxxxxxxxxx wrote:
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)
--
Plus, there are many API calls that use pointers
(passed on the stack) to structures that hold the
actual variables. You are (typically) responsible
for providing the structure in program or allocated
memory, and the API fills it in or reads it (or both).
Best regards,
Bob Masta
dqatechATdaqartaDOTcom
D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Home of DaqGen, the FREEWARE signal generator
.
- 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
- Re: Sending/returning values to MFC/Microsoft functions
- From: spamtrap
- Sending/returning values to MFC/Microsoft functions
- Prev by Date: Re: GCC inline assembly
- Next by Date: Are these the same?
- 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
|