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); }
/// <summary> /// Queries the device for the path of an application. /// </summary> /// <param name="client"> /// The connected installation proxy client. /// </param> /// <param name="appid"> /// ApplicationIdentifier of app to retrieve the path for. /// </param> /// <param name="path"> /// Pointer to store the device path for the application /// which is set to NULL if it could not be determined. /// </param> /// <returns> /// INSTPROXY_E_SUCCESS on success, INSTPROXY_E_OP_FAILED if /// the path could not be determined or an INSTPROXY_E_* error /// value if an error occured. /// </returns> public virtual InstallationProxyError instproxy_client_get_path_for_bundle_identifier(InstallationProxyClientHandle client, string bundleId, out string path) { return(InstallationProxyNativeMethods.instproxy_client_get_path_for_bundle_identifier(client, bundleId, out path)); }