Example #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 = "/";
        }