| 1 | # WslcGetProcessState |
| 2 | |
| 3 | ```c |
| 4 | STDAPI WslcGetProcessState(_In_ WslcProcess process, _Out_ WslcProcessState* state); |
| 5 | ``` |
| 6 | |
| 7 | | Parameter | Type | Direction | |
| 8 | |---|---|---| |
| 9 | | `process` | `WslcProcess` | in | |
| 10 | | `state` | `WslcProcessState*` | out | |
| 11 | |
| 12 | Return value: `HRESULT`. |
| 13 | |
| 14 | Example: |
| 15 | |
| 16 | ```c |
| 17 | WslcProcessState state = WSLC_PROCESS_STATE_UNKNOWN; |
| 18 | HRESULT hr = WslcGetProcessState(process, &state); |
| 19 | ``` |