コード例 #1
0
        /// <summary>
        /// Creates a new <see cref="iDeviceActivationRequestHandle"/> from a <see cref="IntPtr"/>.
        /// </summary>
        /// <param name="unsafeHandle">
        /// The underlying <see cref="IntPtr"/>
        /// </param>
        /// <param name="ownsHandle">
        /// <see langword="true"/> to reliably release the handle during the finalization phase; <see langword="false"/> to prevent reliable release (not recommended).
        /// </param>
        /// <returns>
        /// </returns>
        public static iDeviceActivationRequestHandle DangerousCreate(System.IntPtr unsafeHandle, bool ownsHandle)
        {
            iDeviceActivationRequestHandle safeHandle = new iDeviceActivationRequestHandle(ownsHandle);

            safeHandle.SetHandle(unsafeHandle);
            return(safeHandle);
        }
コード例 #2
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);
 }
コード例 #3
0
        public virtual iDeviceActivationError idevice_activation_send_request(iDeviceActivationRequestHandle request, out iDeviceActivationResponseHandle response)
        {
            iDeviceActivationError returnValue;

            returnValue  = iDeviceActivationNativeMethods.idevice_activation_send_request(request, out response);
            response.Api = this.Parent;
            return(returnValue);
        }
コード例 #4
0
 public static void idevice_activation_request_get_field(iDeviceActivationRequestHandle request, string key, out string value)
 {
     System.Runtime.InteropServices.ICustomMarshaler valueMarshaler = NativeStringMarshaler.GetInstance(null);
     System.IntPtr valueNative = System.IntPtr.Zero;
     iDeviceActivationNativeMethods.idevice_activation_request_get_field(request, key, out valueNative);
     value = ((string)valueMarshaler.MarshalNativeToManaged(valueNative));
     valueMarshaler.CleanUpNativeData(valueNative);
 }
コード例 #5
0
 public virtual void idevice_activation_request_set_fields(iDeviceActivationRequestHandle request, PlistHandle fields)
 {
     iDeviceActivationNativeMethods.idevice_activation_request_set_fields(request, fields);
 }
コード例 #6
0
 public virtual void idevice_activation_request_get_fields(iDeviceActivationRequestHandle request, out PlistHandle fields)
 {
     iDeviceActivationNativeMethods.idevice_activation_request_get_fields(request, out fields);
     fields.Api = this.Parent;
 }
コード例 #7
0
        public virtual iDeviceActivationError idevice_activation_drm_handshake_request_new(iDeviceActivationClientType clientType, out iDeviceActivationRequestHandle request)
        {
            iDeviceActivationError returnValue;

            returnValue = iDeviceActivationNativeMethods.idevice_activation_drm_handshake_request_new(clientType, out request);
            request.Api = this.Parent;
            return(returnValue);
        }
コード例 #8
0
        public virtual iDeviceActivationError idevice_activation_request_new_from_lockdownd(iDeviceActivationClientType activationType, System.IntPtr lockdown, out iDeviceActivationRequestHandle request)
        {
            iDeviceActivationError returnValue;

            returnValue = iDeviceActivationNativeMethods.idevice_activation_request_new_from_lockdownd(activationType, lockdown, out request);
            request.Api = this.Parent;
            return(returnValue);
        }
コード例 #9
0
 public virtual void idevice_activation_request_set_url(iDeviceActivationRequestHandle request, string url)
 {
     iDeviceActivationNativeMethods.idevice_activation_request_set_url(request, url);
 }
コード例 #10
0
 public static extern iDeviceActivationError idevice_activation_request_new_from_lockdownd(iDeviceActivationClientType activationType, System.IntPtr lockdown, out iDeviceActivationRequestHandle request);
コード例 #11
0
 public static extern iDeviceActivationError idevice_activation_send_request(iDeviceActivationRequestHandle request, out iDeviceActivationResponseHandle response);
コード例 #12
0
 public static extern void idevice_activation_request_set_url(iDeviceActivationRequestHandle request, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string url);
コード例 #13
0
 public static extern void idevice_activation_request_get_url(iDeviceActivationRequestHandle request, out System.IntPtr url);
コード例 #14
0
 public static extern void idevice_activation_request_get_field(iDeviceActivationRequestHandle request, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string key, out System.IntPtr value);
コード例 #15
0
 public static extern void idevice_activation_request_set_fields_from_response(iDeviceActivationRequestHandle request, iDeviceActivationResponseHandle response);
コード例 #16
0
 public static extern void idevice_activation_request_set_fields(iDeviceActivationRequestHandle request, PlistHandle fields);
コード例 #17
0
 public static extern iDeviceActivationError idevice_activation_drm_handshake_request_new(iDeviceActivationClientType clientType, out iDeviceActivationRequestHandle request);
コード例 #18
0
 public virtual void idevice_activation_request_get_field(iDeviceActivationRequestHandle request, string key, out string value)
 {
     iDeviceActivationNativeMethods.idevice_activation_request_get_field(request, key, out value);
 }
コード例 #19
0
 public virtual void idevice_activation_request_set_fields_from_response(iDeviceActivationRequestHandle request, iDeviceActivationResponseHandle response)
 {
     iDeviceActivationNativeMethods.idevice_activation_request_set_fields_from_response(request, response);
 }
コード例 #20
0
 public static extern iDeviceActivationError idevice_activation_request_new(iDeviceActivationClientType activationType, out iDeviceActivationRequestHandle request);