1// Shim for the Host Compute Service (HCS) to manage Windows Server
2// containers and Hyper-V containers.
3
4package hcsshim
5
6import (
7	"syscall"
8
9	"github.com/Microsoft/hcsshim/internal/hcserror"
10)
11
12//go:generate go run mksyscall_windows.go -output zsyscall_windows.go hcsshim.go
13
14//sys SetCurrentThreadCompartmentId(compartmentId uint32) (hr error) = iphlpapi.SetCurrentThreadCompartmentId
15
16const (
17	// Specific user-visible exit codes
18	WaitErrExecFailed = 32767
19
20	ERROR_GEN_FAILURE          = hcserror.ERROR_GEN_FAILURE
21	ERROR_SHUTDOWN_IN_PROGRESS = syscall.Errno(1115)
22	WSAEINVAL                  = syscall.Errno(10022)
23
24	// Timeout on wait calls
25	TimeoutInfinite = 0xFFFFFFFF
26)
27
28type HcsError = hcserror.HcsError
29