Exemple #1
0
 /// <summary>
 /// Starts a new service on the specified device with given name and
 /// connects to it.
 /// </summary>
 /// <param name="device">
 /// The device to connect to.
 /// </param>
 /// <param name="service_name">
 /// The name of the service to start.
 /// </param>
 /// <param name="client">
 /// Pointer that will point to a newly allocated service_client_t
 /// upon successful return. Must be freed using service_client_free() after
 /// use.
 /// </param>
 /// <param name="label">
 /// The label to use for communication. Usually the program name.
 /// Pass NULL to disable sending the label in requests to lockdownd.
 /// </param>
 /// <returns>
 /// SERVICE_E_SUCCESS on success, or a SERVICE_E_* error code
 /// otherwise.
 /// </returns>
 public virtual ServiceError service_client_factory_start_service(iDeviceHandle device, string serviceName, ref System.IntPtr client, string label, ref ConstructorFunc constructorFunc, ref int errorCode)
 {
     return(ServiceNativeMethods.service_client_factory_start_service(device, serviceName, ref client, label, ref constructorFunc, ref errorCode));
 }
Exemple #2
0
 public static extern ServiceError service_client_factory_start_service(iDeviceHandle device, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string serviceName, ref System.IntPtr client, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string label, ref ConstructorFunc constructorFunc, ref int errorCode);