MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / LaunchInternalProcess

Method LaunchInternalProcess

headers/openvr_api.cs:2896–2906  ·  view source on GitHub ↗
(string pchBinaryPath,string pchArguments,string pchWorkingDirectory)

Source from the content-addressed store, hash-verified

2894 return Marshal.PtrToStringAnsi(result);
2895 }
2896 public EVRApplicationError LaunchInternalProcess(string pchBinaryPath,string pchArguments,string pchWorkingDirectory)
2897 {
2898 IntPtr pchBinaryPathUtf8 = Utils.ToUtf8(pchBinaryPath);
2899 IntPtr pchArgumentsUtf8 = Utils.ToUtf8(pchArguments);
2900 IntPtr pchWorkingDirectoryUtf8 = Utils.ToUtf8(pchWorkingDirectory);
2901 EVRApplicationError result = FnTable.LaunchInternalProcess(pchBinaryPathUtf8,pchArgumentsUtf8,pchWorkingDirectoryUtf8);
2902 Marshal.FreeHGlobal(pchBinaryPathUtf8);
2903 Marshal.FreeHGlobal(pchArgumentsUtf8);
2904 Marshal.FreeHGlobal(pchWorkingDirectoryUtf8);
2905 return result;
2906 }
2907 public EVRApplicationError RegisterSubprocess(uint nPid)
2908 {
2909 EVRApplicationError result = FnTable.RegisterSubprocess(nPid);

Callers

nothing calls this directly

Calls 1

ToUtf8Method · 0.80

Tested by

no test coverage detected