Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMbnPinManager::GetPin method

Gets a specific type of PIN.

Syntax


HRESULT GetPin(
  [in]          MBN_PIN_TYPE pinType,
  [out, retval] IMbnPin      **pin
);

Parameters

pinType [in]

An MBN_PIN_TYPE value that represents the requested PIN type.

pin [out, retval]

Pointer to the address of the IMbnPin for the requested PIN type. If this method returns any value other than S_OK, this parameter is NULL. Otherwise, the calling application must release this interface when it is done using it.

Return value

This method can return one of these values.

Return codeDescription
S_OK

The method completed successfully.

E_PENDING

The PIN type is not available. The Mobile Broadband service is currently probing the device to retrieve this information. When the PIN type is available, the Mobile Broadband service will call the OnPinListAvailable method of IMbnPinManagerEvents.

E_MBN_PIN_REQUIRED

A PIN is required for the operation to complete. The calling Application can retry this operation when device is PIN unlocked

E_MBN_SIM_NOT_INSERTED

There is no SIM in the device.

E_MBN_BAD_SIM

There is a bad SIM in the device.

HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)

The requested PIN type is not supported by the device.

 

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported

IDL

Mbnapi.idl

See also

IMbnPinManager

 

 

Show:
© 2017 Microsoft