Skip to content

Conversation

@fuguiKz
Copy link
Contributor

@fuguiKz fuguiKz commented Dec 28, 2025

Adds the missing Process SetEnvironmentVariable command section (0x0403) to documentation/design-docs/ipc-protocol.md.

Fixes #5664.


Header: `{ Magic; size; 0xFF00; 0x0000; }`

There is no payload.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
There is no payload.
`SetEnvironmentVariable` returns:
* `int32 hresult`: The result of setting the environment variable (`0` indicates success)

@fuguiKz
Copy link
Contributor Author

fuguiKz commented Dec 29, 2025

Thanks for the review! I applied both suggestions: the SetEnvironmentVariable docs now describe the returned int32 hresult (and added a Details "Returns" payload snippet) in commit 3b5b3aa.

@tommcdon
Copy link
Member

Thanks for the review! I applied both suggestions: the SetEnvironmentVariable docs now describe the returned int32 hresult (and added a Details "Returns" payload snippet) in commit 3b5b3aa.

Thanks @fuguiKz! I have added one more suggestion then I think this change is ready!

@fuguiKz
Copy link
Contributor Author

fuguiKz commented Jan 1, 2026

Applied the remaining suggestion (add > Available since .NET 6.0 for SetEnvironmentVariable) in commit 345fcea. Thanks again — would appreciate a re-review when you have a chance.

Copy link
Member

@tommcdon tommcdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tommcdon tommcdon merged commit 6efc893 into dotnet:main Jan 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IPC Protocol Specification missing Process SetEnvironmentVariable section

2 participants