| 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); |