[Guid("2A07407E-6497-4A18-9787-32F79BD0D98F"),
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IDeviceTopology
{
int GetConnectorCount([Out] out int pConnectorCount);
int GetConnector(int nIndex, out IConnector ppConnector);
int GetSubunitCount([Out] out int pCount);
int GetSubunit(int nIndex, out ISubunit ppSubunit);
int GetPartById(int nId, out IPart ppPart);
int GetDeviceId([Out, MarshalAs(UnmanagedType.LPWStr)] out string ppwstrDeviceId);
int GetSignalPath(IPart pIPartFrom, IPart pIPartTo, bool bRejectMixedPaths, IPartsList ppParts);
}
<ComImport> _
<Guid("TODO")> _
'TODO: Insert <InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ if this doesn't derive from IDispatch
Interface IDeviceTopology
TODO
End Interface
None.
Starting point only - I only got as far as making getconnectorcount and getconnector return valid information on my machine. The other functions may or may not work!