# windows: get pid with win32 api \(\#8785\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/36d9b3d48364e7423a3c660ba5dc00633c33cfa6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 36d9b3d48364e7423a3c660ba5dc00633c33cfa6

Requested commit: 36d9b3d48364e7423a3c660ba5dc00633c33cfa6

Commit: 36d9b3d48364e7423a3c660ba5dc00633c33cfa6

Tree: a0dbc8bc06defa598181c6a91b8c0e40f4fba371

Author: Ezekiel Warren

Committer: GitHub

## Message

```
windows: get pid with win32 api (#8785)

While trying to get mouse/keyboard support in for Windows I ran into a
stack overflow issue related to the pid being `-1`. Getting the proper
process ID seems to fix it.

Release Notes:

- Fixed stack overflow on Windows
```

## Parents

- [a5eab29662e82458115841b10d1e7c7322644ba7](https://git.cafe/gitcafe/zed/commit/a5eab29662e82458115841b10d1e7c7322644ba7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/36d9b3d48364e7423a3c660ba5dc00633c33cfa6?format=markdown)
