ISdpRecord.cs :  » Business-Application » 32feet.NET » InTheHand » Net » Bluetooth » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Business Application » 32feet.NET 
32feet.NET » InTheHand » Net » Bluetooth » ISdpRecord.cs
// 32feet.NET - Personal Area Networking for .NET
//
// InTheHand.Net.Bluetooth.ISdpRecord
// 
// Copyright (c) 2003-2008 In The Hand Ltd, All rights reserved.
// This source code is licensed under the In The Hand Community License - see License.txt

using System;
using System.Runtime.InteropServices;

#if NETCF && V2
namespace InTheHand.Net.Bluetooth{
#if ! V2
        /*
#endif
#pragma warning disable 1591
#if ! V2
        */
#endif

    [Guid("10276714-1456-46D7-B526-8B1E83D5116E"), ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [CLSCompliant(false)]
    internal interface ISdpRecord
    {
        void  CreateFromStream(byte[] pStream, int size);
        
        void WriteToStream(out IntPtr ppStream, out uint pStreamSize, uint preSize, uint postSize);
        
        void SetAttribute(ushort attribute, ref NodeData pNode);
        
        void SetAttributeFromStream(ushort attribute, byte[] pStream, uint size);
        
        void GetAttribute(ushort attribute, ref NodeData pNode);
        
        void GetAttributeAsStream(ushort attribute, out byte[] ppStream, out uint pSize);
        
        void Walk(ISdpWalk pWalk);
        
        void GetAttributeList(out IntPtr ppList, out int pListSize);
        
        void GetString(ushort offset, ref ushort pLangId, out string ppString);
        
        void GetIcon(int cxRes, int cyRes, out IntPtr phIcon);
        
        void GetServiceClass(out Guid pServiceClass);      
    }

    [ComImport(), Guid("ACD02BA7-9667-4085-A100-CC6ACA9621D6")]
    [CLSCompliant(false)]
    public class SdpRecord : ISdpRecord
    {
#region ISdpRecord Members

        public extern void  CreateFromStream(byte[] pStream, int size);

        public extern void  WriteToStream(out IntPtr ppStream, out uint pStreamSize, uint preSize, uint postSize);

        public extern void  SetAttribute(ushort attribute, ref NodeData pNode);

        public extern void  SetAttributeFromStream(ushort attribute, byte[] pStream, uint size);

        public extern void GetAttribute(ushort attribute, ref NodeData pNode);

        public extern void  GetAttributeAsStream(ushort attribute, out byte[] ppStream, out uint pSize);

        public extern void  Walk(ISdpWalk pWalk);

        public extern void  GetAttributeList(out IntPtr ppList, out int pListSize);

        public extern void  GetString(ushort offset, ref ushort pLangId, out string ppString);

        public extern void  GetIcon(int cxRes, int cyRes, out IntPtr phIcon);

        public extern void  GetServiceClass(out Guid pServiceClass);

#endregion
    }
}
#endif
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.