# Windows: Replace CreatePipe with ntdll implementation · gitcafe/zig

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

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

Visibility: public

Requested revision: 9532f729371d8142fb65c61794b7bd765cd82396

Requested commit: 9532f729371d8142fb65c61794b7bd765cd82396

Commit: 9532f729371d8142fb65c61794b7bd765cd82396

Tree: 5097f26a389fddaab9a63e0a2c68e17034cb7f22

Author: Stephen Gregoratto

Committer: Stephen Gregoratto

## Message

```
Windows: Replace CreatePipe with ntdll implementation

This implementation is now a direct replacement for the `kernel32` one.
New bitflags for named pipes and other generic ones were added based on
browsing the ReactOS sources.

`UNICODE_STRING.Buffer` has also been changed to be nullable, as
this is what makes the implementation work.
This required some changes to places accesssing the buffer after a
`SUCCESS`ful return, most notably `QueryObjectName` which even referred
to it being nullable.

```

## Parents

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

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