Example #1
0
        /// <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);
        }
Example #2
0
 protected DvDevice()
 {
     iCallbackDisabled = new DisabledCallback(Disabled);
 }
Example #3
0
 /// <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);
 }
Example #4
0
 static extern void DvDeviceSetDisabled(IntPtr aDevice, DisabledCallback aCompleted, IntPtr aPtr);
Example #5
0
 protected DvDevice()
 {
     iCallbackDisabled = new DisabledCallback(Disabled);
 }
Example #6
0
 static extern void DvDeviceSetDisabled(IntPtr aDevice, DisabledCallback aCompleted, IntPtr aPtr);