Example #1
0
        void ISdpService.AddAttribute(ushort id, DESC_TYPE dt, int valLen, byte[] val)
        {
            Debug.Assert(id != 0, "Can't add ServiceRecordHandle...");
            SDP_RETURN_CODE ret = NativeMethods.SdpService_AddAttribute(m_pSdpService,
                                                                        id, dt, checked ((uint)valLen), val);

            if (ret != SDP_RETURN_CODE.OK)
            {
                throw WidcommSocketExceptions.Create_SDP_RETURN_CODE(ret, "AddAttribute");
            }
        }
Example #2
0
 internal static extern SDP_RETURN_CODE SdpService_AddAttribute(
     IntPtr pObj, UInt16 attrId, DESC_TYPE attrType, UInt32 attrLen,
     byte[] val);