# Implemented Zig wrapper for \`GetProcessMemoryInfo\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 70469d428dd94693295b320a975b1ddf904dda3b

Requested commit: 70469d428dd94693295b320a975b1ddf904dda3b

Commit: 70469d428dd94693295b320a975b1ddf904dda3b

Tree: 30f2fd925f76db6ead489ab7e5eddf51320113e9

Author: xEgoist

Committer: xEgoist

## Message

```
Implemented Zig wrapper for `GetProcessMemoryInfo`

`GetProcessMemoryInfo` is implemented using `NtQueryInformationProcess`
with `ProcessVmCounters` to obtain `VM_COUNTERS`. The structs, enum
definitions are found in `winternl.h` or `ntddk.h` in the latest WDK.
This should give the same results as using `K32GetProcessMemoryInfo`

```

## Parents

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

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