IOemCellular::RegisterForOemModemExistenceChanges
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 modems and to receive notification when modems are added or removed.
Syntax
HRESULT RegisterForOemModemExistenceChanges(IOemCellularModemExistenceChange *pCallback);
Parameters
pCallback
A IOemCellularModemExistenceChange callback through which notification of changes to the current list of modems is received.Call IOemCellular::UnregisterForOemModemExistenceChanges to unregister this callback.
Return values
Returns S_OK if the method was successful.
Remarks
After calling this method you will receive a snapshot of the existing available modems via IOemCellularModemExistenceChange::OnOemModemAdded. Once the initial list of modems has been given, you will receive IOemCellularModemExistenceChange::OnOemModemExistenceDone. This indicates that all known modems have been announced.
Requirements
Header: Generated from CellularAPI_OEM.idl
Related topics