public static LockdownError lockdownd_query_type(LockdownClientHandle client, out string type) { System.Runtime.InteropServices.ICustomMarshaler typeMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr typeNative = System.IntPtr.Zero; LockdownError returnValue = LockdownNativeMethods.lockdownd_query_type(client, out typeNative); type = ((string)typeMarshaler.MarshalNativeToManaged(typeNative)); typeMarshaler.CleanUpNativeData(typeNative); return(returnValue); }
/// <summary> /// Query the type of the service daemon. Depending on whether the device is /// queried in normal mode or restore mode, different types will be returned. /// </summary> /// <param name="client"> /// The lockdownd client /// </param> /// <param name="type"> /// The type returned by the service daemon. Pass NULL to ignore. /// </param> /// <returns> /// LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL /// </returns> public virtual LockdownError lockdownd_query_type(LockdownClientHandle client, out string type) { return(LockdownNativeMethods.lockdownd_query_type(client, out type)); }