[DUG] Apartment model - identifying calling process

Conor Boyd Conor.Boyd at trimble.co.nz
Wed May 31 10:24:44 NZST 2006


I'd be interested to see if anybody comes up with one.

We've gone down the extra parameter route, and use that to locate some
client-specific state/context that we maintain on the server.

C.

-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss
Sent: Wednesday, 31 May 2006 10:17 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Apartment model - identifying calling process

I'm using the Apartment threading model for an out-of-process automation
object.

Say the automation object has a method called AddLayer - is there any
way, without requiring extra parameters to be passed, to identify which
process is calling that method? That is, are there any COM methods to
ask for an ID for the current caller using the COM object's thread?

Phil.



More information about the Delphi mailing list