/// <summary> /// Requests to start a service and retrieve it's port on success. /// </summary> /// <param name="client"> /// The lockdownd client /// </param> /// <param name="identifier"> /// The identifier of the service to start /// </param> /// <param name="service"> /// The service descriptor on success or NULL on failure /// </param> /// <returns> /// LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG if a parameter /// is NULL, LOCKDOWN_E_INVALID_SERVICE if the requested service is not known /// by the device, LOCKDOWN_E_START_SERVICE_FAILED if the service could not be /// started by the device /// </returns> public virtual LockdownError lockdownd_start_service(LockdownClientHandle client, string identifier, out LockdownServiceDescriptorHandle service) { LockdownError returnValue; returnValue = LockdownNativeMethods.lockdownd_start_service(client, identifier, out service); service.Api = this.Parent; return(returnValue); }