|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Activation only, no launch, please
From: Peter Partch (peterpartch
PMCONSULT.COM)
Date: Wed Oct 26 2005 - 11:05:22 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Only way to do this with CoRegisterClassObject is to load the server (just
what the original post did not want to allow to happen).
As for the managed code, you can always PInvoke to CoCreateInstance so that
you can specify the CLSCTX flags, and then use the
Marshal.CreateWrapperOfType to wrap the IntPtr with a RCW of choice. (as an
aside, you need to do this if attempting to launch in a DLL surrogate for
inproc servers not configured for COM+)
Peter Partch
----- Original Message -----
From: "Lewis Jones" <Lewis.Jones
ONBASE.COM>
To: <DCOM
DISCUSS.MICROSOFT.COM>
Sent: Tuesday, October 25, 2005 2:25 PM
Subject: Re: [DCOM] Activation only, no launch, please
I don't really know for sure, but would passing CLSCTX_NO_FAILURE_LOG to
CoRegisterClassObject() in the server have the desired effect.
Granted, this means you'd have to roll your own COM object setup code (I'm
an ATL RegisterClassObjects weenie myself), but it might just work...
-----Original Message-----
From: Distributed COM-Based Code [mailto:DCOM
DISCUSS.MICROSOFT.COM]On
Behalf Of Kim Gräsman
Sent: Tuesday, October 25, 2005 5:16 PM
To: DCOM
DISCUSS.MICROSOFT.COM
Subject: Re: Activation only, no launch, please
Hi Yavor,
> Have you tried CoCreateInstance with CLSCTX = CLSCTX_NO_FAILURE_LOG ?
Cool! I've never heard of it.
Of course, there's another twist to this; I'm connecting to my server from
managed code, so I'm not sure I can specify CLSCTX flags, but I'll look into
it.
Ideally, though, I'd like to specify this on the server. I don't think
there's any reason to rely on DCOM security here, since I don't want launch
behavior.
Thanks, I'll post back with details on how CLSCTX_NO_FAILURE_LOG pans out!
- Kim
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
CONFIDENTIALITY NOTICE: This message and any attached documents may contain
confidential information from Hyland Software, Inc. The information is
intended only for the use of the individual or entity named above. If the
reader of this message is not the intended recipient, or an employee or
agent responsible for the delivery of this message to the intended
recipient, the reader is hereby notified that any dissemination,
distribution or copying of this message or of any attached documents, or the
taking of any action or omission to take any action in reliance on the
contents of this message or of any attached documents, is strictly
prohibited. If you have received this communication in error, please notify
the sender immediately by e-mail or telephone, at (440) 788-5000, and delete
the original message immediately. Thank you.
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]