public static DebugServerError debugserver_client_set_environment_hex_encoded(DebugServerClientHandle client, string env, out string response) { System.Runtime.InteropServices.ICustomMarshaler responseMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr responseNative = System.IntPtr.Zero; DebugServerError returnValue = DebugServerNativeMethods.debugserver_client_set_environment_hex_encoded(client, env, out responseNative); response = ((string)responseMarshaler.MarshalNativeToManaged(responseNative)); responseMarshaler.CleanUpNativeData(responseNative); return(returnValue); }
/// <summary> /// Adds or sets an environment variable. /// </summary> /// <param name="client"> /// The debugserver client /// </param> /// <param name="env"> /// The environment variable in "KEY=VALUE" notation /// </param> /// <param name="response"> /// Response received for the command (can be NULL to ignore) /// </param> /// <returns> /// DEBUGSERVER_E_SUCCESS on success, /// DEBUGSERVER_E_INVALID_ARG when client is NULL /// </returns> public virtual DebugServerError debugserver_client_set_environment_hex_encoded(DebugServerClientHandle client, string env, out string response) { return(DebugServerNativeMethods.debugserver_client_set_environment_hex_encoded(client, env, out response)); }