master
md 24 lines 535 Bytes
Rendered Raw
1 # WslcStopContainer
2
3 ```c
4 STDAPI WslcStopContainer(_In_ WslcContainer container, _In_ WslcSignal signal, _In_ uint32_t timeoutSeconds, _Outptr_opt_result_z_ PWSTR* errorMessage);
5 ```
6
7 | Parameter | Type | Direction |
8 |---|---|---|
9 | `container` | `WslcContainer` | in |
10 | `signal` | `WslcSignal` | in |
11 | `timeoutSeconds` | `uint32_t` | in |
12 | `errorMessage` | `PWSTR*` | out, optional |
13
14 Return value: `HRESULT`.
15
16 Example:
17
18 ```c
19 HRESULT hr = WslcStopContainer(
20 container,
21 WSLC_SIGNAL_SIGTERM,
22 (uint32_t)30,
23 NULL);
24 ```