예제 #1
0
        public virtual RecoveryError irecv_open_with_ecid(out RecoveryClientHandle client, ulong ecid)
        {
            RecoveryError returnValue;

            returnValue = RecoveryNativeMethods.irecv_open_with_ecid(out client, ecid);
            client.Api  = this.Parent;
            return(returnValue);
        }
예제 #2
0
        public virtual RecoveryClientHandle irecv_reconnect(RecoveryClientHandle client, int initialPause)
        {
            RecoveryClientHandle returnValue;

            returnValue     = RecoveryNativeMethods.irecv_reconnect(client, initialPause);
            returnValue.Api = this.Parent;
            return(returnValue);
        }
예제 #3
0
        public virtual RecoveryError irecv_open_with_ecid_and_attempts(out RecoveryClientHandle pclient, ulong ecid, int attempts)
        {
            RecoveryError returnValue;

            returnValue = RecoveryNativeMethods.irecv_open_with_ecid_and_attempts(out pclient, ecid, attempts);
            pclient.Api = this.Parent;
            return(returnValue);
        }
예제 #4
0
        public virtual RecoveryError irecv_devices_get_device_by_client(RecoveryClientHandle client, out RecoveryDeviceHandle device)
        {
            RecoveryError returnValue;

            returnValue = RecoveryNativeMethods.irecv_devices_get_device_by_client(client, out device);
            device.Api  = this.Parent;
            return(returnValue);
        }
        public static RecoveryError irecv_getenv(RecoveryClientHandle client, string variable, out string value)
        {
            System.Runtime.InteropServices.ICustomMarshaler valueMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr valueNative = System.IntPtr.Zero;
            RecoveryError returnValue = RecoveryNativeMethods.irecv_getenv(client, variable, out valueNative);

            value = ((string)valueMarshaler.MarshalNativeToManaged(valueNative));
            valueMarshaler.CleanUpNativeData(valueNative);
            return(returnValue);
        }
 public static extern RecoveryError irecv_send_file(RecoveryClientHandle client, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string filename, int dfuNotifyFinished);
 /// <summary>
 /// Creates a new <see cref="RecoveryClientHandle"/> from a <see cref="IntPtr"/>.
 /// </summary>
 /// <param name="unsafeHandle">
 /// The underlying <see cref="IntPtr"/>
 /// </param>
 /// <returns>
 /// </returns>
 public static RecoveryClientHandle DangerousCreate(System.IntPtr unsafeHandle)
 {
     return(RecoveryClientHandle.DangerousCreate(unsafeHandle, true));
 }
예제 #8
0
 public virtual System.IntPtr irecv_get_device_info(RecoveryClientHandle client)
 {
     return(RecoveryNativeMethods.irecv_get_device_info(client));
 }
예제 #9
0
 public virtual RecoveryError irecv_getret(RecoveryClientHandle client, ref uint value)
 {
     return(RecoveryNativeMethods.irecv_getret(client, ref value));
 }
예제 #10
0
 public virtual RecoveryError irecv_recv_buffer(RecoveryClientHandle client, System.IntPtr buffer, int length)
 {
     return(RecoveryNativeMethods.irecv_recv_buffer(client, buffer, length));
 }
예제 #11
0
 public virtual RecoveryError irecv_send_command(RecoveryClientHandle client, string command)
 {
     return(RecoveryNativeMethods.irecv_send_command(client, command));
 }
예제 #12
0
 public virtual RecoveryError irecv_event_unsubscribe(RecoveryClientHandle client, RecoveryEventType type)
 {
     return(RecoveryNativeMethods.irecv_event_unsubscribe(client, type));
 }
예제 #13
0
 public object MarshalNativeToManaged(System.IntPtr nativeData)
 {
     return(RecoveryClientHandle.DangerousCreate(nativeData, false));
 }
 public static extern RecoveryError irecv_send_buffer(RecoveryClientHandle client, ref char buffer, int length, int dfuNotifyFinished);
 public static extern RecoveryError irecv_send_command(RecoveryClientHandle client, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string command);
예제 #16
0
 public virtual int irecv_usb_bulk_transfer(RecoveryClientHandle client, char endpoint, ref char data, int length, ref int transferred, uint timeout)
 {
     return(RecoveryNativeMethods.irecv_usb_bulk_transfer(client, endpoint, ref data, length, ref transferred, timeout));
 }
예제 #17
0
 public virtual RecoveryError irecv_event_subscribe(RecoveryClientHandle client, RecoveryEventType type, RecoveryEventCallBack callback, System.IntPtr userData)
 {
     return(RecoveryNativeMethods.irecv_event_subscribe(client, type, callback, userData));
 }
예제 #18
0
 public virtual RecoveryError irecv_execute_script(RecoveryClientHandle client, string script)
 {
     return(RecoveryNativeMethods.irecv_execute_script(client, script));
 }
예제 #19
0
 public virtual RecoveryError irecv_send_file(RecoveryClientHandle client, string filename, int dfuNotifyFinished)
 {
     return(RecoveryNativeMethods.irecv_send_file(client, filename, dfuNotifyFinished));
 }
예제 #20
0
 public virtual RecoveryError irecv_reset_counters(RecoveryClientHandle client)
 {
     return(RecoveryNativeMethods.irecv_reset_counters(client));
 }
예제 #21
0
 public virtual RecoveryError irecv_send_buffer(RecoveryClientHandle client, ref char buffer, int length, int dfuNotifyFinished)
 {
     return(RecoveryNativeMethods.irecv_send_buffer(client, ref buffer, length, dfuNotifyFinished));
 }
예제 #22
0
 public virtual RecoveryError irecv_finish_transfer(RecoveryClientHandle client)
 {
     return(RecoveryNativeMethods.irecv_finish_transfer(client));
 }
예제 #23
0
 public virtual RecoveryError irecv_setenv(RecoveryClientHandle client, string variable, string value)
 {
     return(RecoveryNativeMethods.irecv_setenv(client, variable, value));
 }
예제 #24
0
 public virtual RecoveryError irecv_trigger_limera1n_exploit(RecoveryClientHandle client)
 {
     return(RecoveryNativeMethods.irecv_trigger_limera1n_exploit(client));
 }
예제 #25
0
 public virtual RecoveryError irecv_get_mode(RecoveryClientHandle client, ref int mode)
 {
     return(RecoveryNativeMethods.irecv_get_mode(client, ref mode));
 }
예제 #26
0
 public virtual RecoveryError irecv_usb_set_configuration(RecoveryClientHandle client, int configuration)
 {
     return(RecoveryNativeMethods.irecv_usb_set_configuration(client, configuration));
 }
예제 #27
0
 public virtual RecoveryError irecv_close(RecoveryClientHandle client)
 {
     return(RecoveryNativeMethods.irecv_close(client));
 }
예제 #28
0
 public virtual RecoveryError irecv_usb_set_interface(RecoveryClientHandle client, int usbInterface, int usbAltInterface)
 {
     return(RecoveryNativeMethods.irecv_usb_set_interface(client, usbInterface, usbAltInterface));
 }
예제 #29
0
 public virtual int irecv_usb_control_transfer(RecoveryClientHandle client, char bmRequestType, char bRequest, ushort wValue, ushort wIndex, ref char data, ushort wLength, uint timeout)
 {
     return(RecoveryNativeMethods.irecv_usb_control_transfer(client, bmRequestType, bRequest, wValue, wIndex, ref data, wLength, timeout));
 }
 public static extern RecoveryError irecv_event_unsubscribe(RecoveryClientHandle client, RecoveryEventType type);