enable network DTC access in Visual Basic

From: Stephanie (stephanie.lewis_at_abridean.com)
Date: 10/17/03


Date: Fri, 17 Oct 2003 06:35:26 -0700

Hello all,

I need to programmatically enable network DTC access in
Visual Basic (not my choice of languages).

        If you navigate to Component Services -> My
Computer -> Right click and select "Properties" -> and
click the "Security Configuration" button, the dialog that
appears has a checkbox for enabling/disabling "Network DTC

Access" option. This is waht I'm after.

        I had found the
IDtcNetworkAccessConfig::SetAnyNetworkAccess interface but
am confused as to how to get a

handle on the object. I am trying to figure out how to use
this interface, that seems to be intended for C++, in

Visual Basic (agian, not MY choice). Also, I am
traditionally a Java programmer new to Windows
programming, COM+ etc,

so am having lots of fun.

        If you go to

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/cossdk/htm/whatsnewcomplus_350z.asp,
under the

Network Access section, about half way down appears
a "Note" that states "You can also enable network DTC
access by

using the Component Services administrative tool or
programmatically through the COM+ Administration
Library.". I've

searched extensively through the COM+ Administration
Library and cannot find where I can accomplish this. The

LocalComputer COMAdminCatalogCollection seemed the most
logical place to look, but it does not have the property
I'm

after. I looked at the other COMAdminCatalogCollections ,
but still to no avail. Did I miss it?
        Also, is there any way to ask the COMAdminCatalog
what COMAdminCatalogCollections it has? It seems as though

the only way to get a COMAdminCatalogCollection is by
explictely stating which one you're after. In the same
vein,

once you get a COMAdminCatalogObject, you have to
explictely state which property you're after to get it.
It's a

frustrating interface when you cannot do things like "Give
all you're properties".

        In summary, is there anyway to programmatically
enable network DTC access in Visual Basic, either by
using

the IDtcNetworkAccessConfig interface, or the COM+
Administration Library? Is there another way I have missed?

Thank you for your time.

Stephanie


Quantcast