The call back runs in the thread/process of the called program. 

A message is sent to the window where the callback function resides, this
is message includes the necessary parameters and is processed by the
Thread/Process of the callback function and the result is passed back in a
message.
 
This means a process alway executes it own code at it own priority, in it
own environment etc.

-----Original Message-----
From: INTERNET:[EMAIL PROTECTED] 
Sent: Sunday, 18 April 1999 21:59
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Call backs


I suspect differently because of the SendMessageCallback
From Win32 help :
The SendMessageCallback function sends the specified message to a window or
windows. The function calls the window procedure for the specified window
and returns immediately. After the window procedure processes the message,
the system calls the specified callback function, passing the result of the
message processing and an application-defined value to the callback
function. 

-----Original Message-----
From: INTERNET:[EMAIL PROTECTED] 
Sent: Sunday, 18 April 1999 19:43
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Call backs




It would have to be the caller wouldn't it?  The callee can't see the
callers stack...






Maurice Butler <[EMAIL PROTECTED]> on 19/04/99 12:31:15

Please respond to [EMAIL PROTECTED]

To:   Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc:    (bcc: Peter Jones/Logistics&Information
      Technology/Christchurch/Foodstuffs)
Subject:  [DUG]:  Call backs




Hi all,
Something I couldn't find in the win95 api help. Short of writing a small
test program, does a call back execute using the thread of the calling
program or the thread of called program.

Thanks
Maurice Butler
Like Magic Ltd



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz






---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz




----------------------- Internet Header --------------------------------
Sender: [EMAIL PROTECTED]
Received: from mail.corporate.co.nz (corporate.co.nz [202.37.181.1])
        by hpamgaaa.compuserve.com (8.8.8/8.8.8/HP-1.3) with ESMTP id
TAA21738
        for <[EMAIL PROTECTED]>; Sun, 18 Apr 1999 19:43:05 -0400
(EDT)
Received: by mail.corporate.co.nz from localhost
    (router,SLMail V3.2); Mon, 19 Apr 1999 12:53:12 +1200
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
X-Lotus-FromDomain:  FOODSTUFFS
From: [EMAIL PROTECTED]
Message-ID:  <[EMAIL PROTECTED]>
Date:  Mon, 19 Apr 1999 11:40:05 +1200
Subject:  Re: [DUG]: Call backs
X-SLUIDL: 01AB1B8D-F5E711D2-8F3F0000-E853E28F





----------------------- Internet Header --------------------------------
Sender: [EMAIL PROTECTED]
Received: from mail.corporate.co.nz (corporate.co.nz [202.37.181.1])
        by arl-img-11.compuserve.com (8.8.6/8.8.6/2.18) with ESMTP id
VAA16824
        for <[EMAIL PROTECTED]>; Sun, 18 Apr 1999 21:59:54 -0400
(EDT)
Received: by mail.corporate.co.nz from localhost
    (router,SLMail V3.2); Mon, 19 Apr 1999 15:10:13 +1200
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Message-ID:  <[EMAIL PROTECTED]>
From: Maurice Butler <[EMAIL PROTECTED]>
Subject:  RE: [DUG]: Call backs
Date:  Mon, 19 Apr 1999 13:54:28 +1200
X-MS-TNEF-Correlator: 
<[EMAIL PROTECTED]>
MIME-Version:  1.0
X-Mailer:  Internet Mail Service (5.5.2448.0)
Content-Type:  multipart/mixed;
        boundary="----_=_NextPart_000_01BE8A07.8F88DF8E"
X-SLUIDL: 01AB210B-F5E711D2-8F3F0000-E853E28F


Additional information for :  
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to