/// <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); }
protected DvDevice() { iCallbackDisabled = new DisabledCallback(Disabled); }
/// <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); }
static extern void DvDeviceSetDisabled(IntPtr aDevice, DisabledCallback aCompleted, IntPtr aPtr);