public static int usbmuxd_read_buid(out string buid) { System.Runtime.InteropServices.ICustomMarshaler buidMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr buidNative = System.IntPtr.Zero; int returnValue = UsbmuxdNativeMethods.usbmuxd_read_buid(out buidNative); buid = ((string)buidMarshaler.MarshalNativeToManaged(buidNative)); buidMarshaler.CleanUpNativeData(buidNative); return(returnValue); }
/// <summary> /// Reads the SystemBUID /// </summary> /// <param name="buid"> /// pointer to a variable that will be set to point to a newly /// allocated string with the System BUID returned by usbmuxd /// </param> /// <returns> /// 0 on success, a negative errno value otherwise. /// </returns> public virtual int usbmuxd_read_buid(out string buid) { return(UsbmuxdNativeMethods.usbmuxd_read_buid(out buid)); }