Skip to content

Commit

Permalink
Profiler API to modify environment variables (#23383)
Browse files Browse the repository at this point in the history
  • Loading branch information
k15tfu committed Oct 12, 2019
1 parent fd0ca99 commit 14a8863
Show file tree
Hide file tree
Showing 2 changed files with 2,874 additions and 1,871 deletions.
24 changes: 24 additions & 0 deletions src/inc/corprof.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3982,6 +3982,30 @@ interface ICorProfilerInfo10 : ICorProfilerInfo9
HRESULT ResumeRuntime();
}

[
object,
uuid(DBCED7DD-C08F-4591-BCBF-0B6E4629030E),
pointer_default(unique),
local
]
interface ICorProfilerInfo11 : ICorProfilerInfo10
{
/*
* Set environment variable for the running managed code.
*
* The code profiler calls this function to modify environment variables of the
* current managed process. For example, it can be used in the profiler's Initialize()
* or InitializeForAttach() callbacks.
*
* szName is the name of the environment variable, should not be NULL.
*
* szValue is the contents of the environment variable, or NULL if the variable should be deleted.
*/
HRESULT SetEnvironmentVariable(
[in, string] const WCHAR *szName,
[in, string] const WCHAR *szValue);
}

/*
* This interface lets you iterate over methods in the runtime.
*/
Expand Down
Loading

0 comments on commit 14a8863

Please sign in to comment.