aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go
blob: 83f7040644655ab95e1366c260a278e1ee47b3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package winapi

// VOID RtlMoveMemory(
// 	_Out_       VOID UNALIGNED *Destination,
// 	_In_  const VOID UNALIGNED *Source,
// 	_In_        SIZE_T         Length
// );
//sys RtlMoveMemory(destination *byte, source *byte, length uintptr) (err error) = kernel32.RtlMoveMemory

//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
}