master
md 20 lines 556 Bytes
Rendered Raw
1 # WslcSetProcessSettingsEnvVariables
2
3 ```c
4 STDAPI WslcSetProcessSettingsEnvVariables(_In_ WslcProcessSettings* processSettings, _In_reads_(argc) PCSTR const* key_value, size_t argc);
5 ```
6
7 | Parameter | Type | Direction |
8 |---|---|---|
9 | `processSettings` | `WslcProcessSettings*` | in |
10 | `key_value` | `PCSTR const*` | in |
11 | `argc` | `size_t` | in |
12
13 Return value: `HRESULT`.
14
15 Example:
16
17 ```c
18 PCSTR const key_value[] = { "HOME=/root", "DEMO_FLAG=1" };
19 HRESULT hr = WslcSetProcessSettingsEnvVariables(&processSettings, key_value, _countof(key_value));
20 ```