Пример #1
0
 public static void plist_get_data_val(PlistHandle node, out string val, ref ulong length)
 {
     System.Runtime.InteropServices.ICustomMarshaler valMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr valNative = System.IntPtr.Zero;
     PlistNativeMethods.plist_get_data_val(node, out valNative, ref length);
     val = ((string)valMarshaler.MarshalNativeToManaged(valNative));
     valMarshaler.CleanUpNativeData(valNative);
 }
Пример #2
0
 public static void debugserver_decode_string(string encodedBuffer, uint encodedLength, out string buffer)
 {
     System.Runtime.InteropServices.ICustomMarshaler bufferMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr bufferNative = System.IntPtr.Zero;
     DebugServerNativeMethods.debugserver_decode_string(encodedBuffer, encodedLength, out bufferNative);
     buffer = ((string)bufferMarshaler.MarshalNativeToManaged(bufferNative));
     bufferMarshaler.CleanUpNativeData(bufferNative);
 }
Пример #3
0
 public static void plist_to_bin(PlistHandle plist, out string plistBin, ref uint length)
 {
     System.Runtime.InteropServices.ICustomMarshaler plistBinMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr plistBinNative = System.IntPtr.Zero;
     PlistNativeMethods.plist_to_bin(plist, out plistBinNative, ref length);
     plistBin = ((string)plistBinMarshaler.MarshalNativeToManaged(plistBinNative));
     plistBinMarshaler.CleanUpNativeData(plistBinNative);
 }
Пример #4
0
 public static void idevice_activation_response_get_description(iDeviceActivationResponseHandle response, out string description)
 {
     System.Runtime.InteropServices.ICustomMarshaler descriptionMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr descriptionNative = System.IntPtr.Zero;
     iDeviceActivationNativeMethods.idevice_activation_response_get_description(response, out descriptionNative);
     description = ((string)descriptionMarshaler.MarshalNativeToManaged(descriptionNative));
     descriptionMarshaler.CleanUpNativeData(descriptionNative);
 }
Пример #5
0
 public static void plist_dict_get_item_key(PlistHandle node, out string key)
 {
     System.Runtime.InteropServices.ICustomMarshaler keyMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr keyNative = System.IntPtr.Zero;
     PlistNativeMethods.plist_dict_get_item_key(node, out keyNative);
     key = ((string)keyMarshaler.MarshalNativeToManaged(keyNative));
     keyMarshaler.CleanUpNativeData(keyNative);
 }
Пример #6
0
 public static void idevice_activation_response_get_placeholder(iDeviceActivationResponseHandle response, string key, out string value)
 {
     System.Runtime.InteropServices.ICustomMarshaler valueMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr valueNative = System.IntPtr.Zero;
     iDeviceActivationNativeMethods.idevice_activation_response_get_placeholder(response, key, out valueNative);
     value = ((string)valueMarshaler.MarshalNativeToManaged(valueNative));
     valueMarshaler.CleanUpNativeData(valueNative);
 }
Пример #7
0
 public static void idevice_activation_request_get_url(iDeviceActivationRequestHandle request, out string url)
 {
     System.Runtime.InteropServices.ICustomMarshaler urlMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr urlNative = System.IntPtr.Zero;
     iDeviceActivationNativeMethods.idevice_activation_request_get_url(request, out urlNative);
     url = ((string)urlMarshaler.MarshalNativeToManaged(urlNative));
     urlMarshaler.CleanUpNativeData(urlNative);
 }
Пример #8
0
 public static void instproxy_status_get_name(PlistHandle status, out string name)
 {
     System.Runtime.InteropServices.ICustomMarshaler nameMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr nameNative = System.IntPtr.Zero;
     InstallationProxyNativeMethods.instproxy_status_get_name(status, out nameNative);
     name = ((string)nameMarshaler.MarshalNativeToManaged(nameNative));
     nameMarshaler.CleanUpNativeData(nameNative);
 }
Пример #9
0
 public static void idevice_activation_response_get_title(iDeviceActivationResponseHandle response, out string title)
 {
     System.Runtime.InteropServices.ICustomMarshaler titleMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr titleNative = System.IntPtr.Zero;
     iDeviceActivationNativeMethods.idevice_activation_response_get_title(response, out titleNative);
     title = ((string)titleMarshaler.MarshalNativeToManaged(titleNative));
     titleMarshaler.CleanUpNativeData(titleNative);
 }
Пример #10
0
        public static MobileSyncError mobilesync_start(MobileSyncClientHandle client, byte[] dataClass, MobileSyncAnchorsHandle anchors, ulong computerDataClassVersion, ref MobileSyncSyncType syncType, ref ulong deviceDataClassVersion, out string errorDescription)
        {
            System.Runtime.InteropServices.ICustomMarshaler errorDescriptionMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr   errorDescriptionNative = System.IntPtr.Zero;
            MobileSyncError returnValue            = MobileSyncNativeMethods.mobilesync_start(client, dataClass, anchors, computerDataClassVersion, ref syncType, ref deviceDataClassVersion, out errorDescriptionNative);

            errorDescription = ((string)errorDescriptionMarshaler.MarshalNativeToManaged(errorDescriptionNative));
            errorDescriptionMarshaler.CleanUpNativeData(errorDescriptionNative);
            return(returnValue);
        }
Пример #11
0
        public static int usbmuxd_read_pair_record(string recordId, out string recordData, ref uint recordSize)
        {
            System.Runtime.InteropServices.ICustomMarshaler recordDataMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr recordDataNative = System.IntPtr.Zero;
            int           returnValue      = UsbmuxdNativeMethods.usbmuxd_read_pair_record(recordId, out recordDataNative, ref recordSize);

            recordData = ((string)recordDataMarshaler.MarshalNativeToManaged(recordDataNative));
            recordDataMarshaler.CleanUpNativeData(recordDataNative);
            return(returnValue);
        }
Пример #12
0
        public static int usbmuxd_read_buid(out string buid)
        {
            System.Runtime.InteropServices.ICustomMarshaler buidMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr buidNative  = System.IntPtr.Zero;
            int           returnValue = UsbmuxdNativeMethods.usbmuxd_read_buid(out buidNative);

            buid = ((string)buidMarshaler.MarshalNativeToManaged(buidNative));
            buidMarshaler.CleanUpNativeData(buidNative);
            return(returnValue);
        }
Пример #13
0
        public static int usbmuxd_get_tcp_endpoint(out string host, ref ushort port)
        {
            System.Runtime.InteropServices.ICustomMarshaler hostMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr hostNative  = System.IntPtr.Zero;
            int           returnValue = UsbmuxdNativeMethods.usbmuxd_get_tcp_endpoint(out hostNative, ref port);

            host = ((string)hostMarshaler.MarshalNativeToManaged(hostNative));
            hostMarshaler.CleanUpNativeData(hostNative);
            return(returnValue);
        }
        public static AfcError afc_get_device_info_key(AfcClientHandle client, string key, out string value)
        {
            System.Runtime.InteropServices.ICustomMarshaler valueMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr valueNative = System.IntPtr.Zero;
            AfcError      returnValue = AfcNativeMethods.afc_get_device_info_key(client, key, out valueNative);

            value = ((string)valueMarshaler.MarshalNativeToManaged(valueNative));
            valueMarshaler.CleanUpNativeData(valueNative);
            return(returnValue);
        }
Пример #15
0
        public static MobileBackup2Error mobilebackup2_receive_message(MobileBackup2ClientHandle client, out PlistHandle msgPlist, out string dlmessage)
        {
            System.Runtime.InteropServices.ICustomMarshaler dlmessageMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr      dlmessageNative = System.IntPtr.Zero;
            MobileBackup2Error returnValue     = MobileBackup2NativeMethods.mobilebackup2_receive_message(client, out msgPlist, out dlmessageNative);

            dlmessage = ((string)dlmessageMarshaler.MarshalNativeToManaged(dlmessageNative));
            dlmessageMarshaler.CleanUpNativeData(dlmessageNative);
            return(returnValue);
        }
        public static FileRelayError file_relay_request_sources_timeout(FileRelayClientHandle client, out string sources, out iDeviceConnectionHandle connection, uint timeout)
        {
            System.Runtime.InteropServices.ICustomMarshaler sourcesMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr  sourcesNative = System.IntPtr.Zero;
            FileRelayError returnValue   = FileRelayNativeMethods.file_relay_request_sources_timeout(client, out sourcesNative, out connection, timeout);

            sources = ((string)sourcesMarshaler.MarshalNativeToManaged(sourcesNative));
            sourcesMarshaler.CleanUpNativeData(sourcesNative);
            return(returnValue);
        }
Пример #17
0
        public static InstallationProxyError instproxy_client_get_path_for_bundle_identifier(InstallationProxyClientHandle client, string bundleId, out string path)
        {
            System.Runtime.InteropServices.ICustomMarshaler pathMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr          pathNative  = System.IntPtr.Zero;
            InstallationProxyError returnValue = InstallationProxyNativeMethods.instproxy_client_get_path_for_bundle_identifier(client, bundleId, out pathNative);

            path = ((string)pathMarshaler.MarshalNativeToManaged(pathNative));
            pathMarshaler.CleanUpNativeData(pathNative);
            return(returnValue);
        }
Пример #18
0
        public static InstallationProxyError instproxy_check_capabilities_match(InstallationProxyClientHandle client, out string capabilities, PlistHandle clientOptions, out PlistHandle result)
        {
            System.Runtime.InteropServices.ICustomMarshaler capabilitiesMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr          capabilitiesNative = System.IntPtr.Zero;
            InstallationProxyError returnValue        = InstallationProxyNativeMethods.instproxy_check_capabilities_match(client, out capabilitiesNative, clientOptions, out result);

            capabilities = ((string)capabilitiesMarshaler.MarshalNativeToManaged(capabilitiesNative));
            capabilitiesMarshaler.CleanUpNativeData(capabilitiesNative);
            return(returnValue);
        }
        public static NotificationProxyError np_observe_notifications(NotificationProxyClientHandle client, out string notificationSpec)
        {
            System.Runtime.InteropServices.ICustomMarshaler notificationSpecMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr          notificationSpecNative = System.IntPtr.Zero;
            NotificationProxyError returnValue            = NotificationProxyNativeMethods.np_observe_notifications(client, out notificationSpecNative);

            notificationSpec = ((string)notificationSpecMarshaler.MarshalNativeToManaged(notificationSpecNative));
            notificationSpecMarshaler.CleanUpNativeData(notificationSpecNative);
            return(returnValue);
        }
        public static RestoreError restored_query_type(RestoreClientHandle client, out string type, ref ulong version)
        {
            System.Runtime.InteropServices.ICustomMarshaler typeMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr typeNative  = System.IntPtr.Zero;
            RestoreError  returnValue = RestoreNativeMethods.restored_query_type(client, out typeNative, ref version);

            type = ((string)typeMarshaler.MarshalNativeToManaged(typeNative));
            typeMarshaler.CleanUpNativeData(typeNative);
            return(returnValue);
        }
Пример #21
0
        public static iDeviceActivationError idevice_activation_response_to_buffer(iDeviceActivationResponseHandle response, out string buffer, ref uint size)
        {
            System.Runtime.InteropServices.ICustomMarshaler bufferMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr          bufferNative = System.IntPtr.Zero;
            iDeviceActivationError returnValue  = iDeviceActivationNativeMethods.idevice_activation_response_to_buffer(response, out bufferNative, ref size);

            buffer = ((string)bufferMarshaler.MarshalNativeToManaged(bufferNative));
            bufferMarshaler.CleanUpNativeData(bufferNative);
            return(returnValue);
        }
        public static LockdownError lockdownd_get_device_name(LockdownClientHandle client, out string deviceName)
        {
            System.Runtime.InteropServices.ICustomMarshaler deviceNameMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr deviceNameNative = System.IntPtr.Zero;
            LockdownError returnValue      = LockdownNativeMethods.lockdownd_get_device_name(client, out deviceNameNative);

            deviceName = ((string)deviceNameMarshaler.MarshalNativeToManaged(deviceNameNative));
            deviceNameMarshaler.CleanUpNativeData(deviceNameNative);
            return(returnValue);
        }
        public static LockdownError lockdownd_start_session(LockdownClientHandle client, string hostId, out string sessionId, ref int sslEnabled)
        {
            System.Runtime.InteropServices.ICustomMarshaler sessionIdMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr sessionIdNative = System.IntPtr.Zero;
            LockdownError returnValue     = LockdownNativeMethods.lockdownd_start_session(client, hostId, out sessionIdNative, ref sslEnabled);

            sessionId = ((string)sessionIdMarshaler.MarshalNativeToManaged(sessionIdNative));
            sessionIdMarshaler.CleanUpNativeData(sessionIdNative);
            return(returnValue);
        }
        public static LockdownError lockdownd_get_sync_data_classes(LockdownClientHandle client, out System.Collections.ObjectModel.ReadOnlyCollection <string> classes, ref int count)
        {
            System.Runtime.InteropServices.ICustomMarshaler classesMarshaler = LockdownMarshaler.GetInstance(null);
            System.IntPtr classesNative = System.IntPtr.Zero;
            LockdownError returnValue   = LockdownNativeMethods.lockdownd_get_sync_data_classes(client, out classesNative, ref count);

            classes = ((System.Collections.ObjectModel.ReadOnlyCollection <string>)classesMarshaler.MarshalNativeToManaged(classesNative));
            classesMarshaler.CleanUpNativeData(classesNative);
            return(returnValue);
        }
        public static iDeviceError idevice_get_udid(iDeviceHandle device, out string udid)
        {
            System.Runtime.InteropServices.ICustomMarshaler udidMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr udidNative  = System.IntPtr.Zero;
            iDeviceError  returnValue = iDeviceNativeMethods.idevice_get_udid(device, out udidNative);

            udid = ((string)udidMarshaler.MarshalNativeToManaged(udidNative));
            udidMarshaler.CleanUpNativeData(udidNative);
            return(returnValue);
        }
        public static LockdownError lockdownd_get_device_udid(LockdownClientHandle client, out string udid)
        {
            System.Runtime.InteropServices.ICustomMarshaler udidMarshaler = NativeStringMarshaler.GetInstance(null);
            System.IntPtr udidNative  = System.IntPtr.Zero;
            LockdownError returnValue = LockdownNativeMethods.lockdownd_get_device_udid(client, out udidNative);

            udid = ((string)udidMarshaler.MarshalNativeToManaged(udidNative));
            udidMarshaler.CleanUpNativeData(udidNative);
            return(returnValue);
        }
        public static AfcError afc_read_directory(AfcClientHandle client, string path, out System.Collections.ObjectModel.ReadOnlyCollection <string> directoryInformation)
        {
            System.Runtime.InteropServices.ICustomMarshaler directoryInformationMarshaler = AfcDictionaryMarshaler.GetInstance(null);
            System.IntPtr directoryInformationNative = System.IntPtr.Zero;
            AfcError      returnValue = AfcNativeMethods.afc_read_directory(client, path, out directoryInformationNative);

            directoryInformation = ((System.Collections.ObjectModel.ReadOnlyCollection <string>)directoryInformationMarshaler.MarshalNativeToManaged(directoryInformationNative));
            directoryInformationMarshaler.CleanUpNativeData(directoryInformationNative);
            return(returnValue);
        }
        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);
        }
        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 AfcError afc_get_file_info(AfcClientHandle client, string filename, out System.Collections.ObjectModel.ReadOnlyCollection <string> fileInformation)
        {
            System.Runtime.InteropServices.ICustomMarshaler fileInformationMarshaler = AfcDictionaryMarshaler.GetInstance(null);
            System.IntPtr fileInformationNative = System.IntPtr.Zero;
            AfcError      returnValue           = AfcNativeMethods.afc_get_file_info(client, filename, out fileInformationNative);

            fileInformation = ((System.Collections.ObjectModel.ReadOnlyCollection <string>)fileInformationMarshaler.MarshalNativeToManaged(fileInformationNative));
            fileInformationMarshaler.CleanUpNativeData(fileInformationNative);
            return(returnValue);
        }