IMbnInterface::InEmergencyMode 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.

Determines whether the device is in emergency mode.

Syntax

HRESULT InEmergencyMode(
  [out] VARIANT_BOOL *emergencyMode
);

Parameters

[out] emergencyMode

Points to VARIANT_TRUE if the device is in emergency mode, and VARIANT_FALSE if it is not.

Return value

This method can return one of these values.

Return code Description
S_OK
The method completed successfully.
E_PENDING
The information is not available. The Mobile Broadband service is currently probing for this information. The calling application can be notified when the data is available by registering for the OnEmergencyModeChange method of IMbnInterfaceEvents.

Remarks

If a device cannot register on the network for any reason, then the device may automatically register onto a network in emergency mode. For example, a device cannot register on the network if the SIM is not inserted, user subscription validity expired, or roaming is not enabled for user. In emergency mode, device can be used in limited mode for voice calls to emergency numbers.

Requirements

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

See also

IMbnInterface