OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Steve Swartz (steveswMICROSOFT.COM)
Date: Mon Jan 07 2002 - 12:56:06 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    You impersonate the client using CoImpersonateClient(), and then you use
    the standard Windows APIs to fetch the current SID from the environment.

    -----Original Message-----
    From: Simon Gregory [mailto:simon.gregoryEQOS.COM]
    Sent: Sunday, January 06, 2002 12:14 AM
    To: DCOMDISCUSS.MICROSOFT.COM
    Subject: Discovering the Identity in COM+

    Hi,

    Is there a way in VB to discover the Windows Account under which a COM+
    object is running? I've looked at "Callers" from the
    SecurityCallContext
    i/f but this seems to cover all those upstream of the component in which
    this object is.

    I had thought about using the COM+ Catalog, but am told it's a little
    slow.

    I'm running 2000 and XP.

    Thanks for any help.

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM