示例#1
0
文件: DvDevice.cs 项目: fuzzy01/ohNet
        /// <summary>
        /// Constructor.  Creates a device without support for any protocol but capable of adding services or attributes.
        /// This should only be used with CpDeviceDv.
        /// </summary>
        /// <param name="aUdn">Universally unique identifier.  The caller is responsible for calculating/assigning this</param>
        public unsafe DvDevice(string aUdn)
        {
            IntPtr udn = InteropUtils.StringToHGlobalUtf8(aUdn);

            iHandle = DvDeviceCreate(udn);
            Marshal.FreeHGlobal(udn);
            iCallbackDisabled = new DisabledCallback(Disabled);
        }
示例#2
0
文件: DvDevice.cs 项目: Wodath/ohNet
 protected DvDevice()
 {
     iCallbackDisabled = new DisabledCallback(Disabled);
 }
示例#3
0
文件: DvDevice.cs 项目: Wodath/ohNet
 /// <summary>
 /// Constructor.  Creates a device without support for any protocol but capable of adding services or attributes.
 /// This should only be used with CpDeviceDv.
 /// </summary>
 /// <param name="aUdn">Universally unique identifier.  The caller is responsible for calculating/assigning this</param>
 public DvDevice(string aUdn)
 {
     IntPtr udn = InteropUtils.StringToHGlobalUtf8(aUdn);
     iHandle = DvDeviceCreate(udn);
     Marshal.FreeHGlobal(udn);
     iCallbackDisabled = new DisabledCallback(Disabled);
 }
示例#4
0
文件: DvDevice.cs 项目: Wodath/ohNet
 static extern void DvDeviceSetDisabled(IntPtr aDevice, DisabledCallback aCompleted, IntPtr aPtr);
示例#5
0
文件: DvDevice.cs 项目: fuzzy01/ohNet
 protected DvDevice()
 {
     iCallbackDisabled = new DisabledCallback(Disabled);
 }
示例#6
0
文件: DvDevice.cs 项目: fuzzy01/ohNet
 static extern void DvDeviceSetDisabled(IntPtr aDevice, DisabledCallback aCompleted, IntPtr aPtr);