>>An example would be the ADsDSOObject. It does not support the IDispatch interface; however, I would like to use it in VFP.
>
>Now that I've had a chance to wipe the sleep out of my eyes and grab a latte, I'm unclear on what you're wanting to do here. ADSDSOObject is just the provider you use to access a directory service via ADO, and hence one should be able to use the ADO IDispatch interfaces to access the service. What am I missing?
>
>> Could I create an instance of this specifying something like the IDBCreateSession or IDBInitialize interface?
>
>This should still work, BTW. (Disclaimer: haven't tried it yet.)
Mike,
This was a bad example because I was looking at the available ADSI objects and I thought this was something else.
A better example for this would be to get a different interface other than the default. If you use GetObject('WinNT://MyDomain/MyComputer'), you will get the IADsComputer interface. The Shutdown method is not available for this interface but it is availbel if you use the IADsComputerOperations interface.
FWIW, I tried specifying the keyword "computeroperations" with MyComputer to get that interface but it threw an Unknown COM status error.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao