IMbnPin::Enable method
Enables a PIN.
Syntax
HRESULT Enable(
[in] LPCWSTR pin,
[out] ULONG *requestID
);
Parameters
- pin [in]
-
The PIN value for the PIN type to be enabled.
- requestID [out]
-
A request ID set by the Mobile Broadband service to identify this asynchronous request.
Return value
This method can return one of these values.
| Return code | Description |
|---|---|
|
The method completed successfully. |
|
The Mobile Broadband service is not running on this system. |
|
Invalid interface. The Mobile Broadband device has probably been removed from the system. |
|
Invalid interface. Most likely the Mobile Broadband device has been removed from the system. |
Remarks
The Enable method enables the PIN type for the Mobile Broadband device. The PinType property of IMbnPin represents the type of PIN to be activated. pin contains the current value of the PIN for the PIN type.
This is an asynchronous operation. If the method returns with success, then upon completion of the operation, the Mobile Broadband service will call the OnEnableComplete method of IMbnPinEvents.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
IDL |
|
See also