Bagikan melalui


IOemCellularModem::RegisterForOemCanAvailabilityChanges

Warning  The Cellular COM API is deprecated in Windows 10. This content is provided to support maintenance of OEM and mobile operator created Windows Phone 8.1 applications.

 

Call this method to register for an initial list of existing Cans on a modem and to receive notification when Cans are added to or removed from the modem.

Syntax

HRESULT RegisterForOemCanAvailabilityChanges(IOemCellularCanAvailabilityChange *pCallBack);

Parameters

  • pCallBack
    Pointer to the IOemCellularCanAvailabilityChange callback routine that provides notification of changes to the current list of Cans.

Return values

Returns S_OK if the method was successful.

Remarks

After calling this method you will receive a callback for each available Can in the system via the IOemCellularCanAvailabilityChange::OnOemCanAdded method. The IOemCellularCanAvailabilityChange::OnOemCanDone callback indicates that all Cans have been listed. Subsequent calls to OnOemCanAdded or IOemCellularCanAvailabilityChange::OnOemCanRemoved indicate the addition of removal of a Can.

Requirements

Header: Generated from CellularAPI_OEM.idl

IOemCellularModem

 

 

Send comments about this topic to Microsoft