Obtaining a Machine SDO

The first step in using the SDO API is to create an SDO machine object.

Use the CLSIDFromProgID function to obtain the class identifier (CLSID) for the SDO machine object. The programmatic identifier (ProgID) to use for the object is "IAS.SdoMachine".

Once you have the CLSID, call CoCreateInstance with this CLSID. Specify ISdoMachine as the interface for which to return a pointer.

See Attaching to an SDO-Enabled Computer for sample code that demonstrates how to obtain a machine SDO.