IDSFBus Interface
The IDSFBus interface is a generic interface that all bus simulators implement. A bus simulator exposes this interface through the Object property of its IDSFDevice object that is qualified by the IDSFBus interface identifier (IID).
Members
The IDSFBus interface inherits from the IDispatch interface. IDSFBus also defines the following types of members:
- Methods
- Properties
Methods
The IDSFBus interface defines the following methods.
Method | Description |
---|---|
get_Name | Retrieves the name of the bus. |
get_GUID | Retrieves the GUID that uniquely identifies the bus simulator. |
HotPlug | Connects a simulated device to a simulated bus. |
Unplug | Disconnects a simulated device from a simulated bus. |
Properties
The IDSFBus interface defines the following properties. The preceding table includes access methods for these properties.
Property | Access type | Description |
---|---|---|
Read-only | Retrieves the GUID that uniquely identifies the bus simulator. |
|
Read-only | Retrieves the name of the bus. |
Examples
The following code examples show how to extract the IDSFBus bus interface from a bus simulator's DSFDevice object.
VBScript
const IID_IDSFBus = "{E927C266-5364-449E-AE52-D6A782AFDA9C}"
Dim DSFBus : Set DSFBus = DSFDevice.Object(IID_IDSFBus)
C++
IDSFBus *GetIDSFBus(IDSFDevice *piDSFDevice)
{
IDSFBus *piDSFBus = NULL;
if (piDSFDevice->HasObject(__uuidof(IDSFBus)))
{
piDSFDevice->GetObject(__uuidof(IDSFBus)),
reinterpret_cast<IUnknown **>(&piDSFBus));
}
return piDSFBus;
}
Requirements
Header |
DSFif.h |
Send comments about this topic to Microsoft
Build date: 9/21/2010