Edit

Share via


Software Device API Functions

This section describes Software Device API functions that a client app calls and a callback function that a client app implements.

In this section

Topic Description
SwDeviceClose
Closes the software device handle. When the handle is closed, PnP will initiate the process of removing the device.
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.
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.

Send comments about this topic to Microsoft