Versions in this module Expand all Collapse all v0 v0.12.4 May 16, 2024 Changes in this version + const ALL_PROCESSOR_GROUPS + const BINDFLT_FLAG_MERGED_BIND_MAPPING + const BINDFLT_FLAG_READ_ONLY_MAPPING + const BINDFLT_FLAG_USE_CURRENT_SILO_MAPPING + const DELETE — windows/amd64 + const ERROR_MORE_DATA — windows/amd64 + const ERROR_NO_MORE_ITEMS — windows/amd64 + const FILE_CREATE — windows/amd64 + const FILE_DIRECTORY_FILE — windows/amd64 + const FILE_DISPOSITION_DELETE — windows/amd64 + const FILE_LIST_DIRECTORY — windows/amd64 + const FILE_OPEN — windows/amd64 + const FILE_OPEN_FOR_BACKUP_INTENT — windows/amd64 + const FILE_OPEN_REPARSE_POINT — windows/amd64 + const FILE_READ_ATTRIBUTES — windows/amd64 + const FILE_SYNCHRONOUS_IO_NONALERT — windows/amd64 + const FILE_WRITE_ATTRIBUTES — windows/amd64 + const FileDispositionInformationExClass — windows/amd64 + const FileIdInfo — windows/amd64 + const FileLinkInformationClass — windows/amd64 + const JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE — windows/amd64 + const JOB_OBJECT_ALL_ACCESS — windows/amd64 + const JOB_OBJECT_CPU_RATE_CONTROL_ENABLE — windows/amd64 + const JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP — windows/amd64 + const JOB_OBJECT_CPU_RATE_CONTROL_MIN_MAX_RATE — windows/amd64 + const JOB_OBJECT_CPU_RATE_CONTROL_NOTIFY — windows/amd64 + const JOB_OBJECT_CPU_RATE_CONTROL_WEIGHT_BASED — windows/amd64 + const JOB_OBJECT_IO_RATE_CONTROL_ENABLE — windows/amd64 + const JOB_OBJECT_MSG_ABNORMAL_EXIT_PROCESS — windows/amd64 + const JOB_OBJECT_MSG_ACTIVE_PROCESS_LIMIT — windows/amd64 + const JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO — windows/amd64 + const JOB_OBJECT_MSG_END_OF_JOB_TIME — windows/amd64 + const JOB_OBJECT_MSG_END_OF_PROCESS_TIME — windows/amd64 + const JOB_OBJECT_MSG_EXIT_PROCESS — windows/amd64 + const JOB_OBJECT_MSG_JOB_MEMORY_LIMIT — windows/amd64 + const JOB_OBJECT_MSG_NEW_PROCESS — windows/amd64 + const JOB_OBJECT_MSG_NOTIFICATION_LIMIT — windows/amd64 + const JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT — windows/amd64 + const JOB_OBJECT_QUERY — windows/amd64 + const JobObjectBasicAccountingInformation — windows/amd64 + const JobObjectBasicAndIoAccountingInformation — windows/amd64 + const JobObjectBasicProcessIdList — windows/amd64 + const JobObjectCreateSilo — windows/amd64 + const JobObjectIoAttribution — windows/amd64 + const JobObjectLimitViolationInformation — windows/amd64 + const JobObjectMemoryUsageInformation — windows/amd64 + const JobObjectNotificationLimitInformation2 — windows/amd64 + const JobObjectSiloBasicInformation — windows/amd64 + const LOGON32_LOGON_BATCH + const LOGON32_LOGON_INTERACTIVE + const LOGON32_LOGON_NETWORK + const LOGON32_LOGON_NETWORK_CLEARTEXT + const LOGON32_LOGON_NEW_CREDENTIALS + const LOGON32_LOGON_SERVICE + const LOGON32_LOGON_UNLOCK + const LOGON32_PROVIDER_DEFAULT + const LOGON32_PROVIDER_WINNT40 + const LOGON32_PROVIDER_WINNT50 + const NERR_UserNotFound — windows/amd64 + const NTSTRSAFE_UNICODE_STRING_MAX_CCH — windows/amd64 + const OBJ_DONT_REPARSE — windows/amd64 + const PROCESS_ALL_ACCESS + const PROC_THREAD_ATTRIBUTE_JOB_LIST + const PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE + const PSEUDOCONSOLE_INHERIT_CURSOR — windows/amd64 + const ProcessVmCounters + const STATUS_INFO_LENGTH_MISMATCH — windows/amd64 + const STATUS_MORE_ENTRIES — windows/amd64 + const STATUS_NO_MORE_ENTRIES — windows/amd64 + const STATUS_REPARSE_POINT_ENCOUNTERED — windows/amd64 + const SystemProcessInformation — windows/amd64 + const UF_DONT_EXPIRE_PASSWD — windows/amd64 + const UF_NORMAL_ACCOUNT — windows/amd64 + const USER_PRIV_ADMIN — windows/amd64 + const USER_PRIV_GUEST — windows/amd64 + const USER_PRIV_USER — windows/amd64 + const UserNameCharLimit — windows/amd64 + func BfSetupFilter(jobHandle windows.Handle, flags uint32, virtRootPath *uint16, ...) (hr error) — windows/amd64 + func CMGetDevNodeProperty(dnDevInst uint32, propertyKey *DevPropKey, propertyType *uint32, ...) (hr error) — windows/amd64 + func CMGetDeviceIDList(pszFilter *byte, buffer *byte, bufferLen uint32, uFlags uint32) (hr error) — windows/amd64 + func CMGetDeviceIDListSize(pulLen *uint32, pszFilter *byte, uFlags uint32) (hr error) — windows/amd64 + func CMLocateDevNode(pdnDevInst *uint32, pDeviceID string, uFlags uint32) (hr error) — windows/amd64 + func CimCloseImage(cimFSHandle FsHandle) (err error) — windows/amd64 + func CimCloseStream(cimStreamHandle StreamHandle) (hr error) — windows/amd64 + func CimCommitImage(cimFSHandle FsHandle) (hr error) — windows/amd64 + func CimCreateAlternateStream(cimFSHandle FsHandle, path string, size uint64, cimStreamHandle *StreamHandle) (hr error) — windows/amd64 + func CimCreateFile(cimFSHandle FsHandle, path string, file *CimFsFileMetadata, ...) (hr error) — windows/amd64 + func CimCreateHardLink(cimFSHandle FsHandle, newPath string, oldPath string) (hr error) — windows/amd64 + func CimCreateImage(imagePath string, oldFSName *uint16, newFSName *uint16, cimFSHandle *FsHandle) (hr error) — windows/amd64 + func CimDeletePath(cimFSHandle FsHandle, path string) (hr error) — windows/amd64 + func CimDismountImage(volumeID *g) (hr error) — windows/amd64 + func CimMountImage(imagePath string, fsName string, flags uint32, volumeID *g) (hr error) — windows/amd64 + func CimWriteStream(cimStreamHandle StreamHandle, buffer uintptr, bufferSize uint32) (hr error) — windows/amd64 + func ClosePseudoConsole(hpc windows.Handle) — windows/amd64 + func ConvertStringSetToSlice(buf []byte) ([]string, error) — windows/amd64 + func CopyFileW(existingFileName *uint16, newFileName *uint16, failIfExists int32) (err error) — windows/amd64 + func CreatePseudoConsole(size windows.Coord, hInput windows.Handle, hOutput windows.Handle, ...) error — windows/amd64 + func CreateRemoteThread(process windows.Handle, sa *windows.SecurityAttributes, stackSize uint32, ...) (handle windows.Handle, err error) — windows/amd64 + func GetActiveProcessorCount(groupNumber uint16) (amount uint32) — windows/amd64 + func IsElevated() bool — windows/amd64 + func IsProcessInJob(procHandle windows.Handle, jobHandle windows.Handle, result *int32) (err error) — windows/amd64 + func LocalAlloc(flags uint32, size int) (ptr uintptr) — windows/amd64 + func LocalFree(ptr uintptr) — windows/amd64 + func LogonUser(username *uint16, domain *uint16, password *uint16, logonType uint32, ...) (err error) — windows/amd64 + func NTSuccess(status uint32) bool — windows/amd64 + func NetLocalGroupAddMembers(serverName, groupName string, level uint32, buf *byte, totalEntries uint32) (err error) — windows/amd64 + func NetLocalGroupGetInfo(serverName, groupName string, level uint32, bufPtr **byte) (err error) — windows/amd64 + func NetUserAdd(serverName string, level uint32, buf *byte, parm_err *uint32) (err error) — windows/amd64 + func NetUserDel(serverName, userName string) (err error) — windows/amd64 + func NtCreateFile(handle *uintptr, accessMask uint32, oa *ObjectAttributes, iosb *IOStatusBlock, ...) (status uint32) — windows/amd64 + func NtCreateJobObject(jobHandle *windows.Handle, desiredAccess uint32, ...) (status uint32) — windows/amd64 + func NtOpenDirectoryObject(handle *uintptr, accessMask uint32, oa *ObjectAttributes) (status uint32) — windows/amd64 + func NtOpenJobObject(jobHandle *windows.Handle, desiredAccess uint32, ...) (status uint32) — windows/amd64 + func NtQueryDirectoryObject(handle uintptr, buffer *byte, length uint32, singleEntry bool, ...) (status uint32) — windows/amd64 + func NtQueryInformationProcess(processHandle windows.Handle, processInfoClass uint32, ...) (status uint32) — windows/amd64 + func NtQuerySystemInformation(systemInfoClass int, systemInformation unsafe.Pointer, systemInfoLength uint32, ...) (status uint32) — windows/amd64 + func NtSetInformationFile(handle uintptr, iosb *IOStatusBlock, information uintptr, length uint32, ...) (status uint32) — windows/amd64 + func ORCloseHive(handle ORHKey) (win32err error) — windows/amd64 + func ORCloseKey(handle ORHKey) (win32err error) — windows/amd64 + func ORCreateHive(key *ORHKey) (win32err error) — windows/amd64 + func ORCreateKey(handle ORHKey, subKey string, class uintptr, options uint32, ...) (win32err error) — windows/amd64 + func ORDeleteKey(handle ORHKey, subKey string) (win32err error) — windows/amd64 + func ORGetValue(handle ORHKey, subKey string, value string, valueType *uint32, data *byte, ...) (win32err error) — windows/amd64 + func ORMergeHives(hiveHandles []ORHKey, result *ORHKey) (win32err error) — windows/amd64 + func OROpenHive(hivePath string, result *ORHKey) (win32err error) — windows/amd64 + func OROpenKey(handle ORHKey, subKey string, result *ORHKey) (win32err error) — windows/amd64 + func ORSaveHive(handle ORHKey, hivePath string, osMajorVersion uint32, osMinorVersion uint32) (win32err error) — windows/amd64 + func ORSetValue(handle ORHKey, valueName string, valueType uint32, data *byte, dataLen uint32) (win32err error) — windows/amd64 + func OpenJobObject(desiredAccess uint32, inheritHandle bool, lpName *uint16) (handle windows.Handle, err error) — windows/amd64 + func ParseUtf16LE(b []byte) string — windows/amd64 + func QueryInformationJobObject(jobHandle windows.Handle, infoClass uint32, jobObjectInfo unsafe.Pointer, ...) (err error) — windows/amd64 + func QueryIoRateControlInformationJobObject(jobHandle windows.Handle, volumeName *uint16, ...) (ret uint32, err error) — windows/amd64 + func ResizePseudoConsole(hpcon windows.Handle, size windows.Coord) error — windows/amd64 + func RtlNtStatusToDosError(status uint32) (winerr error) — windows/amd64 + func SearchPath(lpPath *uint16, lpFileName *uint16, lpExtension *uint16, nBufferLength uint32, ...) (size uint32, err error) — windows/amd64 + func SetIoRateControlInformationJobObject(jobHandle windows.Handle, ...) (ret uint32, err error) — windows/amd64 + func SetJobCompartmentId(handle windows.Handle, compartmentId uint32) (win32Err error) — windows/amd64 + func Uint16BufferToSlice(buffer *uint16, bufferLength int) (result []uint16) — windows/amd64 + type CimFsFileMetadata struct — windows/amd64 + Attributes uint32 + ChangeTime windows.Filetime + CreationTime windows.Filetime + EACount uint32 + ExtendedAttributes unsafe.Pointer + FileSize int64 + LastAccessTime windows.Filetime + LastWriteTime windows.Filetime + ReparseDataBuffer unsafe.Pointer + ReparseDataSize uint32 + SecurityDescriptorBuffer unsafe.Pointer + SecurityDescriptorSize uint32 + type DevPropKey struct — windows/amd64 + Fmtid guid.GUID + Pid uint32 + type FILE_ID_INFO struct — windows/amd64 + FileID [16]byte + VolumeSerialNumber uint64 + type FileDispositionInformationEx struct — windows/amd64 + Flags uintptr + type FileLinkInformation struct — windows/amd64 + FileName [1]uint16 + FileNameLength uint32 + ReplaceIfExists bool + RootDirectory uintptr + type FsHandle uintptr — windows/amd64 + type IOStatusBlock struct — windows/amd64 + Information uintptr + Status uintptr + type JOBOBJECT_ASSOCIATE_COMPLETION_PORT struct — windows/amd64 + CompletionKey windows.Handle + CompletionPort windows.Handle + type JOBOBJECT_BASIC_ACCOUNTING_INFORMATION struct — windows/amd64 + ActiveProcesses uint32 + ThisPeriodTotalKernelTime int64 + ThisPeriodTotalUserTime int64 + TotalKernelTime int64 + TotalPageFaultCount uint32 + TotalProcesses uint32 + TotalTerminateProcesses uint32 + TotalUserTime int64 + type JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION struct — windows/amd64 + BasicInfo JOBOBJECT_BASIC_ACCOUNTING_INFORMATION + IoInfo windows.IO_COUNTERS + type JOBOBJECT_BASIC_LIMIT_INFORMATION struct — windows/amd64 + ActiveProcessLimit uint32 + Affinity uintptr + LimitFlags uint32 + MaximumWorkingSetSize uintptr + MinimumWorkingSetSize uintptr + PerJobUserTimeLimit int64 + PerProcessUserTimeLimit int64 + PriorityClass uint32 + SchedulingClass uint32 + type JOBOBJECT_BASIC_PROCESS_ID_LIST struct — windows/amd64 + NumberOfAssignedProcesses uint32 + NumberOfProcessIdsInList uint32 + ProcessIdList [1]uintptr + func (p *JOBOBJECT_BASIC_PROCESS_ID_LIST) AllPids() []uintptr + type JOBOBJECT_CPU_RATE_CONTROL_INFORMATION struct — windows/amd64 + ControlFlags uint32 + Value uint32 + type JOBOBJECT_IO_ATTRIBUTION_INFORMATION struct — windows/amd64 + ControlFlags uint32 + ReadStats JOBOBJECT_IO_ATTRIBUTION_STATS + WriteStats JOBOBJECT_IO_ATTRIBUTION_STATS + type JOBOBJECT_IO_ATTRIBUTION_STATS struct — windows/amd64 + IoCount uintptr + TotalNonOverlappedQueueTime uint64 + TotalNonOverlappedServiceTime uint64 + TotalSize uint64 + type JOBOBJECT_IO_RATE_CONTROL_INFORMATION struct — windows/amd64 + BaseIOSize uint32 + ControlFlags uint32 + MaxBandwidth int64 + MaxIops int64 + ReservationIops int64 + VolumeName string + type JOBOBJECT_MEMORY_USAGE_INFORMATION struct — windows/amd64 + JobMemory uint64 + PeakJobMemoryUsed uint64 + type LocalGroupInfo1 struct — windows/amd64 + Comment *uint16 + Name *uint16 + type LocalGroupMembersInfo0 struct — windows/amd64 + Sid *windows.SID + type ORHKey uintptr + type ObjectAttributes struct — windows/amd64 + Attributes uintptr + Length uintptr + ObjectName *UnicodeString + RootDirectory uintptr + SecurityDescriptor uintptr + SecurityQoS uintptr + type ObjectDirectoryInformation struct — windows/amd64 + Name UnicodeString + TypeName UnicodeString + type RegType uint32 + const REG_TYPE_BINARY + const REG_TYPE_DWORD + const REG_TYPE_DWORD_BIG_ENDIAN + const REG_TYPE_DWORD_LITTLE_ENDIAN + const REG_TYPE_EXPAND_SZ + const REG_TYPE_FULL_RESOURCE_DESCRIPTOR + const REG_TYPE_LINK + const REG_TYPE_MULTI_SZ + const REG_TYPE_NONE + const REG_TYPE_QWORD + const REG_TYPE_QWORD_LITTLE_ENDIAN + const REG_TYPE_RESOURCE_LIST + const REG_TYPE_RESOURCE_REQUIREMENTS_LIST + const REG_TYPE_SZ + type SILOOBJECT_BASIC_INFORMATION struct — windows/amd64 + IsInServerSilo bool + NumberOfProcesses uint32 + Reserved [3]uint8 + SiloID uint32 + SiloParentID uint32 + type SYSTEM_PROCESS_INFORMATION struct — windows/amd64 + BasePriority int32 + CreateTime int64 + CycleTime uint64 + HandleCount uint32 + HardFaultCount uint32 + ImageName UnicodeString + InheritedFromUniqueProcessID windows.Handle + KernelTime int64 + NextEntryOffset uint32 + NumberOfThreads uint32 + NumberOfThreadsHighWatermark uint32 + OtherOperationCount int64 + OtherTransferCount int64 + PageFaultCount uint32 + PagefileUsage uintptr + PeakPagefileUsage uintptr + PeakVirtualSize uintptr + PeakWorkingSetSize uintptr + PrivatePageCount uintptr + QuotaNonPagedPoolUsage uintptr + QuotaPagedPoolUsage uintptr + QuotaPeakNonPagedPoolUsage uintptr + QuotaPeakPagedPoolUsage uintptr + ReadOperationCount int64 + ReadTransferCount int64 + SessionID uint32 + UniqueProcessID windows.Handle + UniqueProcessKey *uint32 + UserTime int64 + VirtualSize uintptr + WorkingSetPrivateSize int64 + WorkingSetSize uintptr + WriteOperationCount int64 + WriteTransferCount int64 + type StreamHandle uintptr — windows/amd64 + type UnicodeString struct — windows/amd64 + Buffer *uint16 + Length uint16 + MaximumLength uint16 + func NewUnicodeString(s string) (*UnicodeString, error) + func (uni UnicodeString) String() string + type UserInfo1 struct — windows/amd64 + Comment *uint16 + Flags uint32 + HomeDir *uint16 + Name *uint16 + Password *uint16 + PasswordAge uint32 + Priv uint32 + ScriptPath *uint16 + type VM_COUNTERS_EX struct + PageFaultCount uint32 + PagefileUsage uintptr + PeakPagefileUsage uintptr + PeakVirtualSize uintptr + PeakWorkingSetSize uintptr + PrivateUsage uintptr + QuotaNonPagedPoolUsage uintptr + QuotaPagedPoolUsage uintptr + QuotaPeakNonPagedPoolUsage uintptr + QuotaPeakPagedPoolUsage uintptr + VirtualSize uintptr + WorkingSetSize uintptr + type VM_COUNTERS_EX2 struct + CountersEx VM_COUNTERS_EX + PrivateWorkingSetSize uintptr + SharedCommitUsage uintptr