# Make windows.DeviceIoControl return NTSTATUS instead of a Zig error · gitcafe/zig

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

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

Visibility: public

Requested revision: ea7512084bc6f0f18b9dc3d1ecd23599640b3363

Requested commit: ea7512084bc6f0f18b9dc3d1ecd23599640b3363

Commit: ea7512084bc6f0f18b9dc3d1ecd23599640b3363

Tree: 87257ccd9ea9505b21dd954fe910537ee9c0a6d6

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
Make windows.DeviceIoControl return NTSTATUS instead of a Zig error

The number of possible errors in the theoretical error set of this function is very large, while each individual call to the function is only concerned with a (potentially small) subset of those errors that are specific to the control code being used. This commit makes the callers determine which statuses they are interested in to avoid an ever-ballooning error set and ever-growing switch cases at each call site that throw away most of those errors.

```

## Parents

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

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