Software Device API

Overview of the Software Device API technology.

To develop Software Device API, you need these headers:

For programming guidance for this technology, see:

Functions

Title Description
SW_DEVICE_CREATE_CALLBACK Provides a device with backing in the registry and allows the caller to then make calls to Software Device API functions with the hSwDevice handle.
SwDeviceClose Closes the software device handle. When the handle is closed, PnP will initiate the process of removing the device.
SwDeviceCreate Initiates the enumeration of a software device.
SwDeviceGetLifetime Gets the lifetime of a software device.
SwDeviceInterfacePropertySet Sets properties on a software device interface.
SwDeviceInterfaceRegister Registers a device interface for a software device and optionally sets properties on that interface.
SwDeviceInterfaceSetState Enables or disables a device interface for a software device.
SwDevicePropertySet Sets properties on a software device.
SwDeviceSetLifetime Manages the lifetime of a software device.
SwMemFree Frees memory that other Software Device API functions allocated.

Structures

Title Description
SW_DEVICE_CREATE_INFO Describes info that PnP uses to create the software device.