Exemplo n.º 1
0
        private unsafe void doConstruction()
        {
            void *voidPtr;

            this.dnc = new ITMDDeviceNotificationCallback(this.NotifyCallback);
            int num = MobileDevice.AMDeviceNotificationSubscribe(this.dnc, 0, 0, 0, out voidPtr);

            if (num != 0)
            {
                throw new Exception("AMDeviceNotificationSubscribe failed with error " + num);
            }

            this.current_directory = "/";
        }
Exemplo n.º 2
0
        private unsafe void doConstruction()
        {
            void *voidPtr;

            this.dnc  = new ITMDDeviceNotificationCallback(this.NotifyCallback);
            this.drn1 = new DeviceRestoreNotificationCallback(this.DfuConnectCallback);
            this.drn2 = new DeviceRestoreNotificationCallback(this.RecoveryConnectCallback);
            this.drn3 = new DeviceRestoreNotificationCallback(this.DfuDisconnectCallback);
            this.drn4 = new DeviceRestoreNotificationCallback(this.RecoveryDisconnectCallback);
            int num = MobileDevice.AMDeviceNotificationSubscribe(this.dnc, 0, 0, 0, out voidPtr);

            if (num != 0)
            {
                throw new Exception("AMDeviceNotificationSubscribe failed with error " + num);
            }
            num = MobileDevice.AMRestoreRegisterForDeviceNotifications(this.drn1, this.drn2, this.drn3, this.drn4, 0, null);
            if (num != 0)
            {
                throw new Exception("AMRestoreRegisterForDeviceNotifications failed with error " + num);
            }
            this.current_directory = "/";
        }
Exemplo n.º 3
0
 public static extern unsafe int AMDeviceNotificationSubscribe(ITMDDeviceNotificationCallback callback, uint unused1, uint unused2, uint unused3, out void *am_device_notification_ptr);
Exemplo n.º 4
0
 private unsafe void doConstruction()
 {
     void* voidPtr;
     this.dnc = new ITMDDeviceNotificationCallback(this.NotifyCallback);
     int num = MobileDevice.AMDeviceNotificationSubscribe(this.dnc, 0, 0, 0, out voidPtr);
     
     if (num != 0)
     {
         throw new Exception("AMDeviceNotificationSubscribe failed with error " + num);
     }
     
     this.current_directory = "/";
 }
Exemplo n.º 5
0
 public static extern unsafe int AMDeviceNotificationSubscribe(ITMDDeviceNotificationCallback callback, uint unused1, uint unused2, uint unused3, out void* am_device_notification_ptr);
Exemplo n.º 6
0
 private unsafe void doConstruction()
 {
     void* voidPtr;
     this.dnc = new ITMDDeviceNotificationCallback(this.NotifyCallback);
     this.drn1 = new DeviceRestoreNotificationCallback(this.DfuConnectCallback);
     this.drn2 = new DeviceRestoreNotificationCallback(this.RecoveryConnectCallback);
     this.drn3 = new DeviceRestoreNotificationCallback(this.DfuDisconnectCallback);
     this.drn4 = new DeviceRestoreNotificationCallback(this.RecoveryDisconnectCallback);
     int num = MobileDevice.AMDeviceNotificationSubscribe(this.dnc, 0, 0, 0, out voidPtr);
     
     if (num != 0)
     {
         throw new Exception("AMDeviceNotificationSubscribe failed with error " + num);
     }
     num = MobileDevice.AMRestoreRegisterForDeviceNotifications(this.drn1, this.drn2, this.drn3, this.drn4, 0, null);
     if (num != 0)
     {
         throw new Exception("AMRestoreRegisterForDeviceNotifications failed with error " + num);
     }
     this.current_directory = "/";
 }