Share via


SmsClose (Compact 2013)

3/26/2014

Use this function to close an existing Short Message Service (SMS) Messaging handle.

Syntax

HRESULT SmsClose (
    const SMS_HANDLE smshHandle
);

Parameters

  • smshHandle
    The SMS handle to close.

Return Value

  • E_FAIL
    Indicates an unspecified failure.
  • E_INVALIDARG
    Indicates one or more invalid arguments.
  • E_OUTOFMEMORY
    Indicates an out-of-memory error.
  • E_UNEXPECTED
    Unexpected failure.
  • S_OK
    The method completed successfully.

For information about additional return values, see SMS General Errors.

Requirements

Header

sms.h

Library

sms.lib

See Also

Reference

Short Message Service Functions
SMS General Errors
SmsOpen