Windows Dev Center

EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

IMbnConnectionProfileManager interface

Provides access to connection profiles and connection notifications.

Members

The IMbnConnectionProfileManager interface inherits from the IUnknown interface. IMbnConnectionProfileManager also has these types of members:

Methods

The IMbnConnectionProfileManager interface has these methods.

MethodDescription
CreateConnectionProfile

Creates a new connection profile.

GetConnectionProfile

Gets a specific connection profile.

GetConnectionProfiles

Gets a list of connection profiles.

 

Remarks

This interface can be used to access the following notification interfaces.

Notification Sink to Register IID
IMbnConnectionProfileManagerEvents IID_IMbnConnectionProfileManagerEvents
MbnConnectionProfileEvents IID_IMbnConnectionProfileEvents

 

An application can obtain this interface by calling CoCreateInstance with a class id of CLSID_IMbnConnectionProfileManager.

The following procedure describes how to register for notifications.

  1. Get an IConnectionPointContainer interface by calling QueryInterface on an IMbnConnectionProfileManager object.
  2. For each notification sink to register, call FindConnectionPoint on the returned interface and pass IID corresponding to the notification sink to riid.

  3. For each connection point returned by step 2, call Advise on the returned connection point and pass a pointer to an IUnknown interface on an object that implements the matching notification interface to pUnk.

Notifications can be terminated by calling Unadvise on the connection point returned in step 2.

To view some code that registers for COM notifications, see the Client section of the COM Connection Points article.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

IDL

Mbnapi.idl

 

 

Aggiunte alla community

AGGIUNGI
Mostra:
© 2015 Microsoft