次の方法で共有


SmsGetPhoneNumber (Compact 2013)

3/26/2014

Use this function to get the phone number of the device associated with the Short Message Service (SMS) bearer.

Syntax

HRESULT SmsGetPhoneNumber (
SMS_ADDRESS* const psmsaAddress
);

Parameters

  • psmsaAddress
    The device phone number.

Return Value

HRESULT is S_OK for success, a standard error value, or one of the error constants defined in SMS Specific Errors.

Remarks

This function queries for the available subscriber numbers, and returns the first available entry with a service type of VOICE. Note that for devices with Alternate Line Service, this value may not reflect the currently selected line.

Requirements

Header

sms.h

Library

sms.lib

See Also

Reference

Short Message Service Functions
SmsGetProfile
SMS Specific Errors