public static RecoveryError irecv_getenv(RecoveryClientHandle client, string variable, out string value) { System.Runtime.InteropServices.ICustomMarshaler valueMarshaler = NativeStringMarshaler.GetInstance(null); System.IntPtr valueNative = System.IntPtr.Zero; RecoveryError returnValue = RecoveryNativeMethods.irecv_getenv(client, variable, out valueNative); value = ((string)valueMarshaler.MarshalNativeToManaged(valueNative)); valueMarshaler.CleanUpNativeData(valueNative); return(returnValue); }
public virtual RecoveryError irecv_getenv(RecoveryClientHandle client, string variable, out string value) { return(RecoveryNativeMethods.irecv_getenv(client, variable, out value)); }