diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-12 11:57:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 11:57:44 -0700 |
commit | a6fb11e34ccc13e9cfd6ec37030c0634d1bee830 (patch) | |
tree | bb39ecb86553bc1e0ee8a83b20e6cb48da93dab3 /vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go | |
parent | d40c3076ac664b2510f4097d1ece7bca50ca3f83 (diff) | |
parent | 986cd2a6a4b3e9f6ac54f96237bc1c9d1cea497b (diff) | |
download | podman-a6fb11e34ccc13e9cfd6ec37030c0634d1bee830.tar.gz podman-a6fb11e34ccc13e9cfd6ec37030c0634d1bee830.tar.bz2 podman-a6fb11e34ccc13e9cfd6ec37030c0634d1bee830.zip |
Merge pull request #9998 from rhatdan/VENDOR
vendor in containers/storage v1.29.0
Diffstat (limited to 'vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go')
-rw-r--r-- | vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go b/vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go index ccaf5a624..83f704064 100644 --- a/vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go +++ b/vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go @@ -9,3 +9,19 @@ package winapi //sys LocalAlloc(flags uint32, size int) (ptr uintptr) = kernel32.LocalAlloc //sys LocalFree(ptr uintptr) = kernel32.LocalFree + +// BOOL QueryWorkingSet( +// HANDLE hProcess, +// PVOID pv, +// DWORD cb +// ); +//sys QueryWorkingSet(handle windows.Handle, pv uintptr, cb uint32) (err error) = psapi.QueryWorkingSet + +type PSAPI_WORKING_SET_INFORMATION struct { + NumberOfEntries uintptr + WorkingSetInfo [1]PSAPI_WORKING_SET_BLOCK +} + +type PSAPI_WORKING_SET_BLOCK struct { + Flags uintptr +} |