public static string GetConfigSetting(string name) { IntPtr name_mem = CustomMarshal.MakeUTF8String(name); string ret = CustomMarshal.PtrToStringUTF8(RENDERDOC_GetConfigSetting(name_mem)); CustomMarshal.Free(name_mem); return(ret); }
public RemoteAccess(IntPtr real) { m_Real = real; if (real == IntPtr.Zero) { m_Connected = false; Target = ""; API = ""; BusyClient = ""; } else { m_Connected = true; Target = CustomMarshal.PtrToStringUTF8(RemoteAccess_GetTarget(m_Real)); API = CustomMarshal.PtrToStringUTF8(RemoteAccess_GetAPI(m_Real)); PID = RemoteAccess_GetPID(m_Real); BusyClient = CustomMarshal.PtrToStringUTF8(RemoteAccess_GetBusyClient(m_Real)); } CaptureExists = false; CaptureCopied = false; InfoUpdated = false; }
public static string GetVersionString() { return(CustomMarshal.PtrToStringUTF8(RENDERDOC_GetVersionString())); }
public static string GetLogFilename() { return(CustomMarshal.PtrToStringUTF8(RENDERDOC_GetLogFile())); }