# Windows: Support directory handle for cwd instead of string for Child.process · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/83abd73801a6ab3125c1b0b8ba432be188c9e7ca)

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

Visibility: public

Requested revision: 83abd73801a6ab3125c1b0b8ba432be188c9e7ca

Requested commit: 83abd73801a6ab3125c1b0b8ba432be188c9e7ca

Commit: 83abd73801a6ab3125c1b0b8ba432be188c9e7ca

Tree: 3dae948af47e654a894de3881f8d3df9aa1d1be3

Author: Tom Winter

Committer: Ryan Liptak

## Message

```
Windows: Support directory handle for cwd instead of string for Child.process

This implementation is a bit of a hacky workaround, as we use a ntdll
API to grab the full path of the directory handle. As far as I can tell
this might be the only solution to the problem, as
kernel32.CreateProcessW takes a directory path as a string only.

I might be wrong though as haven't researched the problem thoroughly.

```

## Parents

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

[Source at this commit](https://git.cafe/gitcafe/zig/tree/83abd73801a6ab3125c1b0b8ba432be188c9e7ca?format=markdown)
