IMbnDeviceServicesEvents::OnInterfaceStateChange method (mbnapi.h)

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

Notification method that signals a change in the state of device services on the system.

Syntax

HRESULT OnInterfaceStateChange(
  [in] BSTR                                interfaceID,
  [in] MBN_DEVICE_SERVICES_INTERFACE_STATE stateChange
);

Parameters

[in] interfaceID

The InterfaceID of the device for which the device services state change notification is sent.

[in] stateChange

A MBN_DEVICE_SERVICES_INTERFACE_STATE enumeration that specifies whether the device service capable device is available or unavailable.

Return value

The method must return the following value.

Return code Description
S_OK
The method completed successfully.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header mbnapi.h

See also

IMbnDeviceServicesEvents