master
md 19 lines 327 Bytes
Rendered Raw
1 # WslcGetProcessPid
2
3 ```c
4 STDAPI WslcGetProcessPid(_In_ WslcProcess process, _Out_ uint32_t* pid);
5 ```
6
7 | Parameter | Type | Direction |
8 |---|---|---|
9 | `process` | `WslcProcess` | in |
10 | `pid` | `uint32_t*` | out |
11
12 Return value: `HRESULT`.
13
14 Example:
15
16 ```c
17 uint32_t pid = 0;
18 HRESULT hr = WslcGetProcessPid(process, &pid);
19 ```