locked
Use IMbnSms to send SMS

    Question

  • Dear all,

    I want to use IMbnSms interface to send SMS, but it doesn't have sample code.

    I use "Modern Win32COM mobile broadband pin, connection, and device management sample" to try this.

    But when i use

            private IConnectionPoint GetMbnPinManagerEventsConnectionPoint()
            {
                IConnectionPointContainer connectionPointContainer = (IConnectionPointContainer)m_MbnInterfaceManager;
                Guid iid_IMbnPinManagerEvents = typeof(IMbnPinManagerEvents).GetTypeInfo().GUID;

                IConnectionPoint connectionPoint;
                connectionPointContainer.FindConnectionPoint(ref iid_IMbnPinManagerEvents, out connectionPoint);

                return connectionPoint;
            }

    and to change IMbnPinManagerEvents to IMbnSms, it occurs Access is denied.

    I already add my metadata, but it also access denied.

    Have any information?

    B.R.

    Monday, May 14, 2012 6:44 AM

Answers

All replies