コード例 #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);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
 public static extern RecoveryError irecv_send_file(RecoveryClientHandle client, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string filename, int dfuNotifyFinished);
コード例 #7
0
 /// <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));
 }
コード例 #14
0
 public static extern RecoveryError irecv_send_buffer(RecoveryClientHandle client, ref char buffer, int length, int dfuNotifyFinished);
コード例 #15
0
 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));
 }
コード例 #30
0
 public static extern RecoveryError irecv_event_unsubscribe(RecoveryClientHandle client, RecoveryEventType type);