Movatterモバイル変換


[0]ホーム

URL:


windows

packagestandard library
go1.25.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:7Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (O_DIRECTORY    = 0x100000// target must be a directoryO_NOFOLLOW_ANY = 0x20000000// disallow symlinks anywhere in the pathO_OPEN_REPARSE = 0x40000000// FILE_OPEN_REPARSE_POINT, used by LstatO_WRITE_ATTRS  = 0x80000000// FILE_WRITE_ATTRIBUTES, used by Chmod)

Openat flags not supported by syscall.Open.

These are invented values.

When adding a new flag here, add an unexported version tothe set of invented O_ values in syscall/types_windows.goto avoid overlap.

View Source
const (SYMLINKAT_DIRECTORY =SymlinkatFlags(1 <<iota)SYMLINKAT_RELATIVE)
View Source
const (SO_TYPE                                = 0x1008SIO_TCP_INITIAL_RTO                    =syscall.IOC_IN |syscall.IOC_VENDOR | 17TCP_INITIAL_RTO_UNSPECIFIED_RTT        = ^uint16(0)TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS = ^uint8(1))
View Source
const (FSCTL_SET_REPARSE_POINT    = 0x000900A4IO_REPARSE_TAG_MOUNT_POINT = 0xA0000003IO_REPARSE_TAG_DEDUP       = 0x80000013IO_REPARSE_TAG_AF_UNIX     = 0x80000023SYMLINK_FLAG_RELATIVE = 1)

Reparse tag values are taken fromhttps://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c8e77b37-3909-4fe6-a4ea-2b9d423b1ee4

View Source
const (SecurityAnonymous      = 0SecurityIdentification = 1SecurityImpersonation  = 2SecurityDelegation     = 3)
View Source
const (TOKEN_ADJUST_PRIVILEGES = 0x0020SE_PRIVILEGE_ENABLED    = 0x00000002)
View Source
const (LG_INCLUDE_INDIRECT  = 0x1MAX_PREFERRED_LENGTH = 0xFFFFFFFF)
View Source
const (NERR_UserNotFoundsyscall.Errno = 2221NERR_UserExistssyscall.Errno = 2224)
View Source
const (ERROR_INVALID_PARAMETERsyscall.Errno = 87FILE_SUPPORTS_OBJECT_IDS      = 0x00010000FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000// symlink support for CreateSymbolicLink() starting with Windows 10 (1703, v10.0.14972)SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE = 0x2// FileInformationClass valuesFileBasicInfo                  = 0// FILE_BASIC_INFOFileStandardInfo               = 1// FILE_STANDARD_INFOFileNameInfo                   = 2// FILE_NAME_INFOFileStreamInfo                 = 7// FILE_STREAM_INFOFileCompressionInfo            = 8// FILE_COMPRESSION_INFOFileAttributeTagInfo           = 9// FILE_ATTRIBUTE_TAG_INFOFileIdBothDirectoryInfo        = 0xa// FILE_ID_BOTH_DIR_INFOFileIdBothDirectoryRestartInfo = 0xb// FILE_ID_BOTH_DIR_INFOFileRemoteProtocolInfo         = 0xd// FILE_REMOTE_PROTOCOL_INFOFileFullDirectoryInfo          = 0xe// FILE_FULL_DIR_INFOFileFullDirectoryRestartInfo   = 0xf// FILE_FULL_DIR_INFOFileStorageInfo                = 0x10// FILE_STORAGE_INFOFileAlignmentInfo              = 0x11// FILE_ALIGNMENT_INFOFileIdInfo                     = 0x12// FILE_ID_INFOFileIdExtdDirectoryInfo        = 0x13// FILE_ID_EXTD_DIR_INFOFileIdExtdDirectoryRestartInfo = 0x14// FILE_ID_EXTD_DIR_INFO)
View Source
const (ERROR_INVALID_HANDLEsyscall.Errno = 6ERROR_BAD_LENGTHsyscall.Errno = 24ERROR_SHARING_VIOLATIONsyscall.Errno = 32ERROR_LOCK_VIOLATIONsyscall.Errno = 33ERROR_NOT_SUPPORTEDsyscall.Errno = 50ERROR_CALL_NOT_IMPLEMENTEDsyscall.Errno = 120ERROR_INVALID_NAMEsyscall.Errno = 123ERROR_LOCK_FAILEDsyscall.Errno = 167ERROR_IO_INCOMPLETEsyscall.Errno = 996ERROR_NO_TOKENsyscall.Errno = 1008ERROR_NO_UNICODE_TRANSLATIONsyscall.Errno = 1113ERROR_CANT_ACCESS_FILEsyscall.Errno = 1920)
View Source
const (GAA_FLAG_INCLUDE_PREFIX   = 0x00000010GAA_FLAG_INCLUDE_GATEWAYS = 0x0080)
View Source
const (IF_TYPE_OTHER              = 1IF_TYPE_ETHERNET_CSMACD    = 6IF_TYPE_ISO88025_TOKENRING = 9IF_TYPE_PPP                = 23IF_TYPE_SOFTWARE_LOOPBACK  = 24IF_TYPE_ATM                = 37IF_TYPE_IEEE80211          = 71IF_TYPE_TUNNEL             = 131IF_TYPE_IEEE1394           = 144)
View Source
const (IfOperStatusUp             = 1IfOperStatusDown           = 2IfOperStatusTesting        = 3IfOperStatusUnknown        = 4IfOperStatusDormant        = 5IfOperStatusNotPresent     = 6IfOperStatusLowerLayerDown = 7)
View Source
const (// flags for CreateToolhelp32SnapshotTH32CS_SNAPMODULE   = 0x08TH32CS_SNAPMODULE32 = 0x10)
View Source
const (WSA_FLAG_OVERLAPPED        = 0x01WSA_FLAG_NO_HANDLE_INHERIT = 0x80WSAEINVALsyscall.Errno = 10022WSAEMSGSIZEsyscall.Errno = 10040WSAEAFNOSUPPORTsyscall.Errno = 10047MSG_PEEK   = 0x2MSG_TRUNC  = 0x0100MSG_CTRUNC = 0x0200)
View Source
const (ComputerNameNetBIOS                   = 0ComputerNameDnsHostname               = 1ComputerNameDnsDomain                 = 2ComputerNameDnsFullyQualified         = 3ComputerNamePhysicalNetBIOS           = 4ComputerNamePhysicalDnsHostname       = 5ComputerNamePhysicalDnsDomain         = 6ComputerNamePhysicalDnsFullyQualified = 7ComputerNameMax                       = 8MOVEFILE_REPLACE_EXISTING      = 0x1MOVEFILE_COPY_ALLOWED          = 0x2MOVEFILE_DELAY_UNTIL_REBOOT    = 0x4MOVEFILE_WRITE_THROUGH         = 0x8MOVEFILE_CREATE_HARDLINK       = 0x10MOVEFILE_FAIL_IF_NOT_TRACKABLE = 0x20)
View Source
const (LOCKFILE_FAIL_IMMEDIATELY = 0x00000001LOCKFILE_EXCLUSIVE_LOCK   = 0x00000002)
View Source
const (STYPE_DISKTREE  = 0x00STYPE_TEMPORARY = 0x40000000)

Constants from lmshare.h

View Source
const (FILE_NAME_NORMALIZED = 0x0FILE_NAME_OPENED     = 0x8VOLUME_NAME_DOS  = 0x0VOLUME_NAME_GUID = 0x1VOLUME_NAME_NONE = 0x4VOLUME_NAME_NT   = 0x2)
View Source
const (SERVICE_RUNNING      = 4SERVICE_QUERY_STATUS = 4)
View Source
const (PIPE_ACCESS_INBOUND  = 0x00000001PIPE_ACCESS_OUTBOUND = 0x00000002PIPE_ACCESS_DUPLEX   = 0x00000003PIPE_TYPE_BYTE    = 0x00000000PIPE_TYPE_MESSAGE = 0x00000004PIPE_READMODE_BYTE    = 0x00000000PIPE_READMODE_MESSAGE = 0x00000002)
View Source
const (TCP_KEEPIDLE  = 0x03TCP_KEEPCNT   = 0x10TCP_KEEPINTVL = 0x11SIO_UDP_NETRESET =syscall.IOC_IN |syscall.IOC_VENDOR | 15)

Socket related.

View Source
const (FILE_READ_DATA        = 0x00000001FILE_READ_ATTRIBUTES  = 0x00000080FILE_READ_EA          = 0x00000008FILE_WRITE_DATA       = 0x00000002FILE_WRITE_ATTRIBUTES = 0x00000100FILE_WRITE_EA         = 0x00000010FILE_APPEND_DATA      = 0x00000004FILE_EXECUTE          = 0x00000020FILE_GENERIC_READ    =STANDARD_RIGHTS_READ |FILE_READ_DATA |FILE_READ_ATTRIBUTES |FILE_READ_EA |SYNCHRONIZEFILE_GENERIC_WRITE   =STANDARD_RIGHTS_WRITE |FILE_WRITE_DATA |FILE_WRITE_ATTRIBUTES |FILE_WRITE_EA |FILE_APPEND_DATA |SYNCHRONIZEFILE_GENERIC_EXECUTE =STANDARD_RIGHTS_EXECUTE |FILE_READ_ATTRIBUTES |FILE_EXECUTE |SYNCHRONIZEFILE_LIST_DIRECTORY = 0x00000001FILE_TRAVERSE       = 0x00000020FILE_SHARE_READ                      = 0x00000001FILE_SHARE_WRITE                     = 0x00000002FILE_SHARE_DELETE                    = 0x00000004FILE_ATTRIBUTE_READONLY              = 0x00000001FILE_ATTRIBUTE_HIDDEN                = 0x00000002FILE_ATTRIBUTE_SYSTEM                = 0x00000004FILE_ATTRIBUTE_DIRECTORY             = 0x00000010FILE_ATTRIBUTE_ARCHIVE               = 0x00000020FILE_ATTRIBUTE_DEVICE                = 0x00000040FILE_ATTRIBUTE_NORMAL                = 0x00000080FILE_ATTRIBUTE_TEMPORARY             = 0x00000100FILE_ATTRIBUTE_SPARSE_FILE           = 0x00000200FILE_ATTRIBUTE_REPARSE_POINT         = 0x00000400FILE_ATTRIBUTE_COMPRESSED            = 0x00000800FILE_ATTRIBUTE_OFFLINE               = 0x00001000FILE_ATTRIBUTE_NOT_CONTENT_INDEXED   = 0x00002000FILE_ATTRIBUTE_ENCRYPTED             = 0x00004000FILE_ATTRIBUTE_INTEGRITY_STREAM      = 0x00008000FILE_ATTRIBUTE_VIRTUAL               = 0x00010000FILE_ATTRIBUTE_NO_SCRUB_DATA         = 0x00020000FILE_ATTRIBUTE_RECALL_ON_OPEN        = 0x00040000FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = 0x00400000INVALID_FILE_ATTRIBUTES = 0xffffffff)
View Source
const (DELETE                   = 0x00010000READ_CONTROL             = 0x00020000WRITE_DAC                = 0x00040000WRITE_OWNER              = 0x00080000SYNCHRONIZE              = 0x00100000STANDARD_RIGHTS_REQUIRED = 0x000F0000STANDARD_RIGHTS_READ     =READ_CONTROLSTANDARD_RIGHTS_WRITE    =READ_CONTROLSTANDARD_RIGHTS_EXECUTE  =READ_CONTROLSTANDARD_RIGHTS_ALL      = 0x001F0000SPECIFIC_RIGHTS_ALL      = 0x0000FFFFACCESS_SYSTEM_SECURITY   = 0x01000000MAXIMUM_ALLOWED          = 0x02000000GENERIC_READ             = 0x80000000GENERIC_WRITE            = 0x40000000GENERIC_EXECUTE          = 0x20000000GENERIC_ALL              = 0x10000000)

Constants for type ACCESS_MASK

View Source
const (OBJ_INHERIT                       = 0x00000002OBJ_PERMANENT                     = 0x00000010OBJ_EXCLUSIVE                     = 0x00000020OBJ_CASE_INSENSITIVE              = 0x00000040OBJ_OPENIF                        = 0x00000080OBJ_OPENLINK                      = 0x00000100OBJ_KERNEL_HANDLE                 = 0x00000200OBJ_FORCE_ACCESS_CHECK            = 0x00000400OBJ_IGNORE_IMPERSONATED_DEVICEMAP = 0x00000800OBJ_DONT_REPARSE                  = 0x00001000OBJ_VALID_ATTRIBUTES              = 0x00001FF2)

Values for the Attributes member of OBJECT_ATTRIBUTES.

View Source
const (// CreateDisposition flags for NtCreateFile and NtCreateNamedPipeFile.FILE_SUPERSEDE           = 0x00000000FILE_OPEN                = 0x00000001FILE_CREATE              = 0x00000002FILE_OPEN_IF             = 0x00000003FILE_OVERWRITE           = 0x00000004FILE_OVERWRITE_IF        = 0x00000005FILE_MAXIMUM_DISPOSITION = 0x00000005// CreateOptions flags for NtCreateFile and NtCreateNamedPipeFile.FILE_DIRECTORY_FILE            = 0x00000001FILE_WRITE_THROUGH             = 0x00000002FILE_SEQUENTIAL_ONLY           = 0x00000004FILE_NO_INTERMEDIATE_BUFFERING = 0x00000008FILE_SYNCHRONOUS_IO_ALERT      = 0x00000010FILE_SYNCHRONOUS_IO_NONALERT   = 0x00000020FILE_NON_DIRECTORY_FILE        = 0x00000040FILE_CREATE_TREE_CONNECTION    = 0x00000080FILE_COMPLETE_IF_OPLOCKED      = 0x00000100FILE_NO_EA_KNOWLEDGE           = 0x00000200FILE_OPEN_REMOTE_INSTANCE      = 0x00000400FILE_RANDOM_ACCESS             = 0x00000800FILE_DELETE_ON_CLOSE           = 0x00001000FILE_OPEN_BY_FILE_ID           = 0x00002000FILE_OPEN_FOR_BACKUP_INTENT    = 0x00004000FILE_NO_COMPRESSION            = 0x00008000FILE_OPEN_REQUIRING_OPLOCK     = 0x00010000FILE_DISALLOW_EXCLUSIVE        = 0x00020000FILE_RESERVE_OPFILTER          = 0x00100000FILE_OPEN_REPARSE_POINT        = 0x00200000FILE_OPEN_NO_RECALL            = 0x00400000FILE_OPEN_FOR_FREE_SPACE_QUERY = 0x00800000)
View Source
const (FILE_DISPOSITION_DO_NOT_DELETE             = 0x00000000FILE_DISPOSITION_DELETE                    = 0x00000001FILE_DISPOSITION_POSIX_SEMANTICS           = 0x00000002FILE_DISPOSITION_FORCE_IMAGE_SECTION_CHECK = 0x00000004FILE_DISPOSITION_ON_CLOSE                  = 0x00000008FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE = 0x00000010)

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-_file_disposition_information_ex

View Source
const (FILE_RENAME_REPLACE_IF_EXISTS = 0x00000001FILE_RENAME_POSIX_SEMANTICS   = 0x00000002)

Flags for FILE_RENAME_INFORMATION_EX.

View Source
const (FileModeInformation = 16)
View Source
const FileReplaceCompletionInformation = 61
View Source
const MAX_MODULE_NAME32 = 255
View Source
const MB_ERR_INVALID_CHARS = 8
View Source
const SE_GROUP_INTEGRITY = 0x00000020
View Source
const SizeofModuleEntry32 =unsafe.Sizeof(ModuleEntry32{})
View Source
const (USER_PRIV_USER = 1)
View Source
const VER_NT_WORKSTATION = 0x0000001

https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-osversioninfoexahttps://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw

Variables

View Source
var CanUseLongPathsbool

CanUseLongPaths is true when the OS supports opting intoproper long path handling without the need for fixups.

View Source
var SECURITY_NT_AUTHORITY =SID_IDENTIFIER_AUTHORITY{Value: [6]byte{0, 0, 0, 0, 0, 5},}
View Source
var SupportTCPInitialRTONoSYNRetransmissions =sync.OnceValue(func()bool {major, _, build :=Version()return major >= 10 && build >= 16299})

SupportTCPInitialRTONoSYNRetransmissions indicates whether the currentWindows version supports the TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS.The minimal requirement is Windows 10.0.16299.

View Source
var SupportUnixSocket =sync.OnceValue(func()bool {var sizeuint32_, _ =syscall.WSAEnumProtocols(nil,nil, &size)n :=int32(size) /int32(unsafe.Sizeof(syscall.WSAProtocolInfo{}))buf :=make([]syscall.WSAProtocolInfo, n)n, err :=syscall.WSAEnumProtocols(nil, &buf[0], &size)if err !=nil {returnfalse}for i :=int32(0); i < n; i++ {if buf[i].AddressFamily ==syscall.AF_UNIX {returntrue}}returnfalse})

SupportUnixSocket indicates whether the current Windows version supportsUnix Domain Sockets.The minimal requirement is Windows 10.0.17063.

View Source
var SupportUnlimitedTransmitFile =sync.OnceValue(func()bool {info := getVersionInfo()return info.productType !=VER_NT_WORKSTATION})

SupportUnlimitedTransmitFile indicates whether the currentWindows version's TransmitFile function imposes anyconcurrent operation limits.Workstation and client versions of Windows limit the numberof concurrent TransmitFile operations allowed on the systemto a maximum of two. Please see:https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfilehttps://golang.org/issue/73746

View Source
var WSAID_WSARECVMSG =syscall.GUID{Data1: 0xf689d7c8,Data2: 0x6f1f,Data3: 0x436b,Data4: [8]byte{0x8a, 0x53, 0xe5, 0x4f, 0xe3, 0x51, 0xc3, 0x22},}
View Source
var WSAID_WSASENDMSG =syscall.GUID{Data1: 0xa441e712,Data2: 0x754f,Data3: 0x43ca,Data4: [8]byte{0x84, 0xa7, 0x0d, 0xee, 0x44, 0xcf, 0x60, 0x6d},}

Functions

funcAdjustTokenPrivilegesadded ingo1.8

func AdjustTokenPrivileges(tokensyscall.Token, disableAllPrivilegesbool, newstate *TOKEN_PRIVILEGES, buflenuint32, prevstate *TOKEN_PRIVILEGES, returnlen *uint32)error

funcCreateEnvironmentBlockadded ingo1.12.6

func CreateEnvironmentBlock(block **uint16, tokensyscall.Token, inheritExistingbool) (errerror)

funcCreateEventadded ingo1.21.0

func CreateEvent(eventAttrs *SecurityAttributes, manualResetuint32, initialStateuint32, name *uint16) (handlesyscall.Handle, errerror)

funcCreateIoCompletionPortadded ingo1.25.0

func CreateIoCompletionPort(filehandlesyscall.Handle, cphandlesyscall.Handle, keyuintptr, threadcntuint32) (handlesyscall.Handle, errerror)

funcCreateNamedPipeadded ingo1.25.0

func CreateNamedPipe(name *uint16, flagsuint32, pipeModeuint32, maxInstancesuint32, outSizeuint32, inSizeuint32, defaultTimeoutuint32, sa *syscall.SecurityAttributes) (handlesyscall.Handle, errerror)

funcDeleteatadded ingo1.24.0

func Deleteat(dirfdsyscall.Handle, namestring, optionsuint32)error

funcDestroyEnvironmentBlockadded ingo1.12.6

func DestroyEnvironmentBlock(block *uint16) (errerror)

funcDuplicateTokenExadded ingo1.10

func DuplicateTokenEx(hExistingTokensyscall.Token, dwDesiredAccessuint32, lpTokenAttributes *syscall.SecurityAttributes, impersonationLeveluint32, tokenTypeTokenType, phNewToken *syscall.Token) (errerror)

funcErrorLoadingGetTempPath2added ingo1.21.0

func ErrorLoadingGetTempPath2()error

funcFinalPathadded ingo1.23.0

func FinalPath(hsyscall.Handle, flagsuint32) (string,error)

funcGetACPadded ingo1.6

func GetACP() (acpuint32)

funcGetAdaptersAddresses

func GetAdaptersAddresses(familyuint32, flagsuint32, reservedunsafe.Pointer, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcodeerror)

funcGetComputerNameEx

func GetComputerNameEx(nameformatuint32, buf *uint16, n *uint32) (errerror)

funcGetConsoleCPadded ingo1.8

func GetConsoleCP() (ccpuint32)

funcGetCurrentThreadadded ingo1.8

func GetCurrentThread() (pseudoHandlesyscall.Handle, errerror)

funcGetFileInformationByHandleExadded ingo1.12

func GetFileInformationByHandleEx(handlesyscall.Handle, classuint32, info *byte, bufsizeuint32) (errerror)

funcGetFinalPathNameByHandleadded ingo1.10

func GetFinalPathNameByHandle(filesyscall.Handle, filePath *uint16, filePathSizeuint32, flagsuint32) (nuint32, errerror)

funcGetModuleFileNameadded ingo1.8

func GetModuleFileName(modulesyscall.Handle, fn *uint16, lenuint32) (nuint32, errerror)

funcGetModuleHandleadded ingo1.24.0

func GetModuleHandle(modulename *uint16) (handlesyscall.Handle, errerror)

funcGetOverlappedResultadded ingo1.25.0

func GetOverlappedResult(handlesyscall.Handle, overlapped *syscall.Overlapped, done *uint32, waitbool) (errerror)

funcGetProcessMemoryInfoadded ingo1.10

func GetProcessMemoryInfo(handlesyscall.Handle, memCounters *PROCESS_MEMORY_COUNTERS, cbuint32) (errerror)

funcGetProfilesDirectoryadded ingo1.11

func GetProfilesDirectory(dir *uint16, dirLen *uint32) (errerror)

funcGetSidSubAuthorityadded ingo1.24.0

func GetSidSubAuthority(sid *syscall.SID, subAuthorityIdxuint32)uint32

funcGetSidSubAuthorityCountadded ingo1.24.0

func GetSidSubAuthorityCount(sid *syscall.SID)uint8

funcGetSystemDirectoryadded ingo1.22.0

func GetSystemDirectory()string

GetSystemDirectory retrieves the path to current location of the systemdirectory, which is typically, though not always, `C:\Windows\System32`.

funcGetTempPath2added ingo1.21.0

func GetTempPath2(buflenuint32, buf *uint16) (nuint32, errerror)

funcGetUserNameadded ingo1.24.0

func GetUserName(formatuint32) (string,error)

GetUserName retrieves the user name of the current threadin the specified format.

funcGetVolumeInformationByHandleadded ingo1.21.0

func GetVolumeInformationByHandle(filesyscall.Handle, volumeNameBuffer *uint16, volumeNameSizeuint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSizeuint32) (errerror)

funcGetVolumeNameForVolumeMountPointadded ingo1.22.0

func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlengthuint32) (errerror)

funcImpersonateLoggedOnUseradded ingo1.24.0

func ImpersonateLoggedOnUser(tokensyscall.Token) (errerror)

funcImpersonateSelfadded ingo1.8

func ImpersonateSelf(impersonationleveluint32) (errerror)

funcIsNonblockadded ingo1.25.0

func IsNonblock(fdsyscall.Handle) (nonblockingbool, errerror)

IsNonblock returns whether the file descriptor fd is openedin non-blocking mode, that is, thesyscall.FILE_FLAG_OVERLAPPED flagwas set when the file was opened.

funcIsValidSidadded ingo1.24.0

func IsValidSid(sid *syscall.SID) (validbool)

funcLinkatadded ingo1.25.0

func Linkat(olddirfdsyscall.Handle, oldpathstring, newdirfdsyscall.Handle, newpathstring)error

funcLockFileExadded ingo1.12

func LockFileEx(filesyscall.Handle, flagsuint32, reserveduint32, bytesLowuint32, bytesHighuint32, overlapped *syscall.Overlapped) (errerror)

funcLogonUseradded ingo1.24.0

func LogonUser(username *uint16, domain *uint16, password *uint16, logonTypeuint32, logonProvideruint32, token *syscall.Token) (errerror)

funcLookupPrivilegeValueadded ingo1.8

func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (errerror)

funcMkdiratadded ingo1.24.0

func Mkdirat(dirfdsyscall.Handle, namestring, modeuint32)error

funcModule32Firstadded ingo1.20

func Module32First(snapshotsyscall.Handle, moduleEntry *ModuleEntry32) (errerror)

funcModule32Nextadded ingo1.20

func Module32Next(snapshotsyscall.Handle, moduleEntry *ModuleEntry32) (errerror)

funcMoveFileEx

func MoveFileEx(from *uint16, to *uint16, flagsuint32) (errerror)

funcMultiByteToWideCharadded ingo1.6

func MultiByteToWideChar(codePageuint32, dwFlagsuint32, str *byte, nstrint32, wchar *uint16, nwcharint32) (nwriteint32, errerror)

funcNetShareAddadded ingo1.8

func NetShareAdd(serverName *uint16, leveluint32, buf *byte, parmErr *uint16) (neterrerror)

funcNetShareDeladded ingo1.8

func NetShareDel(serverName *uint16, netName *uint16, reserveduint32) (neterrerror)

funcNetUserAddadded ingo1.24.0

func NetUserAdd(serverName *uint16, leveluint32, buf *byte, parmErr *uint32) (neterrerror)

funcNetUserDeladded ingo1.24.0

func NetUserDel(serverName *uint16, userName *uint16) (neterrerror)

funcNetUserGetLocalGroupsadded ingo1.11

func NetUserGetLocalGroups(serverName *uint16, userName *uint16, leveluint32, flagsuint32, buf **byte, prefMaxLenuint32, entriesRead *uint32, totalEntries *uint32) (neterrerror)

funcNtCreateFileadded ingo1.24.0

func NtCreateFile(handle *syscall.Handle, accessuint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, allocationSize *int64, attributesuint32, shareuint32, dispositionuint32, optionsuint32, eabufferunsafe.Pointer, ealengthuint32) (ntstatuserror)

funcNtOpenFileadded ingo1.24.0

func NtOpenFile(handle *syscall.Handle, accessuint32, oa *OBJECT_ATTRIBUTES, iosb *IO_STATUS_BLOCK, shareuint32, optionsuint32) (ntstatuserror)

funcNtQueryInformationFileadded ingo1.25.0

func NtQueryInformationFile(handlesyscall.Handle, iosb *IO_STATUS_BLOCK, inBufferunsafe.Pointer, inBufferLenuint32, classuint32) (ntstatuserror)

funcNtSetInformationFileadded ingo1.24.0

func NtSetInformationFile(handlesyscall.Handle, iosb *IO_STATUS_BLOCK, inBufferunsafe.Pointer, inBufferLenuint32, classuint32) (ntstatuserror)

funcOpenSCManageradded ingo1.22.0

func OpenSCManager(machineName *uint16, databaseName *uint16, accessuint32) (handlesyscall.Handle, errerror)

funcOpenServiceadded ingo1.22.0

func OpenService(mgrsyscall.Handle, serviceName *uint16, accessuint32) (handlesyscall.Handle, errerror)

funcOpenThreadTokenadded ingo1.8

func OpenThreadToken(hsyscall.Handle, accessuint32, openasselfbool, token *syscall.Token) (errerror)

funcOpenatadded ingo1.24.0

func Openat(dirfdsyscall.Handle, namestring, flaguint64, permuint32) (_syscall.Handle, e1error)

funcProcessPrngadded ingo1.21.5

func ProcessPrng(buf []byte) (errerror)

funcQueryPerformanceCounteradded ingo1.23.0

func QueryPerformanceCounter()int64

QueryPerformanceCounter retrieves the current value of performance counter.

funcQueryPerformanceFrequencyadded ingo1.23.0

func QueryPerformanceFrequency()int64

QueryPerformanceFrequency retrieves the frequency of the performance counter.The returned value is represented as counts per second.

funcQueryServiceStatusadded ingo1.22.0

func QueryServiceStatus(hServicesyscall.Handle, lpServiceStatus *SERVICE_STATUS) (errerror)

funcRename

func Rename(oldpath, newpathstring)error

funcRenameatadded ingo1.25.0

func Renameat(olddirfdsyscall.Handle, oldpathstring, newdirfdsyscall.Handle, newpathstring)error

funcRevertToSelfadded ingo1.8

func RevertToSelf() (errerror)

funcRtlIsDosDeviceName_Uadded ingo1.25.0

func RtlIsDosDeviceName_U(name *uint16) (retuint32)

funcRtlVirtualUnwindadded ingo1.21.0

func RtlVirtualUnwind(handlerTypeuint32, baseAddressuintptr, pcuintptr, entry *RUNTIME_FUNCTION, ctxtunsafe.Pointer, dataunsafe.Pointer, frame *uintptr, ctxptrsunsafe.Pointer) (retuintptr)

funcSetFileInformationByHandleadded ingo1.16

func SetFileInformationByHandle(handlesyscall.Handle, fileInformationClassuint32, bufunsafe.Pointer, bufsizeuint32) (errerror)

funcSetTokenInformationadded ingo1.10

func SetTokenInformation(tokenHandlesyscall.Token, tokenInformationClassuint32, tokenInformationunsafe.Pointer, tokenInformationLengthuint32) (errerror)

funcSupportTCPKeepAliveCountadded ingo1.23.0

func SupportTCPKeepAliveCount()bool

SupportTCPKeepAliveCount indicates whether TCP_KEEPCNT is supported.supports TCP_KEEPCNT.The minimal requirement is Windows 10.0.15063.

funcSupportTCPKeepAliveIdleadded ingo1.23.0

func SupportTCPKeepAliveIdle()bool

SupportTCPKeepAliveIdle indicates whether TCP_KEEPIDLE is supported.The minimal requirement is Windows 10.0.16299.

funcSupportTCPKeepAliveIntervaladded ingo1.23.0

func SupportTCPKeepAliveInterval()bool

SupportTCPKeepAliveInterval indicates whether TCP_KEEPINTVL is supported.The minimal requirement is Windows 10.0.16299.

funcSymlinkatadded ingo1.25.0

func Symlinkat(oldnamestring, newdirfdsyscall.Handle, newnamestring, flagsSymlinkatFlags)error

funcUTF16PtrToStringadded ingo1.14

func UTF16PtrToString(p *uint16)string

UTF16PtrToString is like UTF16ToString, but takes *uint16as a parameter instead of []uint16.

funcUnlockFileExadded ingo1.12

func UnlockFileEx(filesyscall.Handle, reserveduint32, bytesLowuint32, bytesHighuint32, overlapped *syscall.Overlapped) (errerror)

funcVersionadded ingo1.24.0

func Version() (major, minor, builduint32)

Version retrieves the major, minor, and build version numbersof the current Windows OS from the RtlGetVersion API.

funcVirtualQueryadded ingo1.19

func VirtualQuery(addressuintptr, buffer *MemoryBasicInformation, lengthuintptr) (errerror)

funcWSADuplicateSocketadded ingo1.25.0

func WSADuplicateSocket(ssyscall.Handle, processIDuint32, info *syscall.WSAProtocolInfo) (errerror)

funcWSAGetOverlappedResultadded ingo1.23.0

func WSAGetOverlappedResult(hsyscall.Handle, o *syscall.Overlapped, bytes *uint32, waitbool, flags *uint32) (errerror)

funcWSARecvMsgadded ingo1.10

func WSARecvMsg(fdsyscall.Handle, msg *WSAMsg, bytesReceived *uint32, overlapped *syscall.Overlapped, croutine *byte)error

funcWSASendMsgadded ingo1.10

func WSASendMsg(fdsyscall.Handle, msg *WSAMsg, flagsuint32, bytesSent *uint32, overlapped *syscall.Overlapped, croutine *byte)error

funcWSASendtoInet4added ingo1.18

func WSASendtoInet4(ssyscall.Handle, bufs *syscall.WSABuf, bufcntuint32, sent *uint32, flagsuint32, to *syscall.SockaddrInet4, overlapped *syscall.Overlapped, croutine *byte) (errerror)

funcWSASendtoInet6added ingo1.18

func WSASendtoInet6(ssyscall.Handle, bufs *syscall.WSABuf, bufcntuint32, sent *uint32, flagsuint32, to *syscall.SockaddrInet6, overlapped *syscall.Overlapped, croutine *byte) (errerror)

funcWSASocketadded ingo1.10

func WSASocket(afint32, typint32, protocolint32, protinfo *syscall.WSAProtocolInfo, groupuint32, flagsuint32) (handlesyscall.Handle, errerror)

Types

typeFILE_ATTRIBUTE_TAG_INFOadded ingo1.12

type FILE_ATTRIBUTE_TAG_INFO struct {FileAttributesuint32ReparseTaguint32}

typeFILE_BASIC_INFOadded ingo1.16

type FILE_BASIC_INFO struct {CreationTimeint64LastAccessTimeint64LastWriteTimeint64ChangedTimeint64FileAttributesuint32// contains filtered or unexported fields}

typeFILE_FULL_DIR_INFOadded ingo1.22.0

type FILE_FULL_DIR_INFO struct {NextEntryOffsetuint32FileIndexuint32CreationTimesyscall.FiletimeLastAccessTimesyscall.FiletimeLastWriteTimesyscall.FiletimeChangeTimesyscall.FiletimeEndOfFileuint64AllocationSizeuint64FileAttributesuint32FileNameLengthuint32EaSizeuint32FileName        [1]uint16}

typeFILE_ID_BOTH_DIR_INFOadded ingo1.21.0

type FILE_ID_BOTH_DIR_INFO struct {NextEntryOffsetuint32FileIndexuint32CreationTimesyscall.FiletimeLastAccessTimesyscall.FiletimeLastWriteTimesyscall.FiletimeChangeTimesyscall.FiletimeEndOfFileuint64AllocationSizeuint64FileAttributesuint32FileNameLengthuint32EaSizeuint32ShortNameLengthuint32ShortName       [12]uint16FileIDuint64FileName        [1]uint16}

typeIpAdapterAddresses

type IpAdapterAddresses struct {Lengthuint32IfIndexuint32Next                   *IpAdapterAddressesAdapterName            *byteFirstUnicastAddress    *IpAdapterUnicastAddressFirstAnycastAddress    *IpAdapterAnycastAddressFirstMulticastAddress  *IpAdapterMulticastAddressFirstDnsServerAddress  *IpAdapterDnsServerAdapterDnsSuffix              *uint16Description            *uint16FriendlyName           *uint16PhysicalAddress        [syscall.MAX_ADAPTER_ADDRESS_LENGTH]bytePhysicalAddressLengthuint32Flagsuint32Mtuuint32IfTypeuint32OperStatusuint32Ipv6IfIndexuint32ZoneIndices            [16]uint32FirstPrefix            *IpAdapterPrefixTransmitLinkSpeeduint64ReceiveLinkSpeeduint64FirstWinsServerAddress *IpAdapterWinsServerAddressFirstGatewayAddress    *IpAdapterGatewayAddress}

typeIpAdapterAnycastAddress

type IpAdapterAnycastAddress struct {Lengthuint32Flagsuint32Next    *IpAdapterAnycastAddressAddressSocketAddress}

typeIpAdapterDnsServerAdapter

type IpAdapterDnsServerAdapter struct {Lengthuint32Reserveduint32Next     *IpAdapterDnsServerAdapterAddressSocketAddress}

typeIpAdapterGatewayAddressadded ingo1.23.0

type IpAdapterGatewayAddress struct {Lengthuint32Reserveduint32Next     *IpAdapterGatewayAddressAddressSocketAddress}

typeIpAdapterMulticastAddress

type IpAdapterMulticastAddress struct {Lengthuint32Flagsuint32Next    *IpAdapterMulticastAddressAddressSocketAddress}

typeIpAdapterPrefix

type IpAdapterPrefix struct {Lengthuint32Flagsuint32Next         *IpAdapterPrefixAddressSocketAddressPrefixLengthuint32}

typeIpAdapterUnicastAddress

type IpAdapterUnicastAddress struct {Lengthuint32Flagsuint32Next               *IpAdapterUnicastAddressAddressSocketAddressPrefixOriginint32SuffixOriginint32DadStateint32ValidLifetimeuint32PreferredLifetimeuint32LeaseLifetimeuint32OnLinkPrefixLengthuint8}

typeIpAdapterWinsServerAddressadded ingo1.23.0

type IpAdapterWinsServerAddress struct {Lengthuint32Reserveduint32Next     *IpAdapterWinsServerAddressAddressSocketAddress}

typeLUIDadded ingo1.8

type LUID struct {LowPartuint32HighPartint32}

typeLUID_AND_ATTRIBUTESadded ingo1.8

type LUID_AND_ATTRIBUTES struct {LuidLUIDAttributesuint32}

typeLocalGroupUserInfo0added ingo1.11

type LocalGroupUserInfo0 struct {Name *uint16}

typeMemoryBasicInformationadded ingo1.19

type MemoryBasicInformation struct {// A pointer to the base address of the region of pages.BaseAddressuintptr// A pointer to the base address of a range of pages allocated by the VirtualAlloc function.// The page pointed to by the BaseAddress member is contained within this allocation range.AllocationBaseuintptr// The memory protection option when the region was initially allocatedAllocationProtectuint32PartitionIduint16// The size of the region beginning at the base address in which all pages have identical attributes, in bytes.RegionSizeuintptr// The state of the pages in the region.Stateuint32// The access protection of the pages in the region.Protectuint32// The type of pages in the region.Typeuint32}

typeModuleEntry32added ingo1.20

type ModuleEntry32 struct {Sizeuint32ModuleIDuint32ProcessIDuint32GlblcntUsageuint32ProccntUsageuint32ModBaseAddruintptrModBaseSizeuint32ModuleHandlesyscall.HandleModule       [MAX_MODULE_NAME32 + 1]uint16ExePath      [syscall.MAX_PATH]uint16}

typeMountPointReparseBufferadded ingo1.8

type MountPointReparseBuffer struct {// The integer that contains the offset, in bytes,// of the substitute name string in the PathBuffer array,// computed as an offset from byte 0 of PathBuffer. Note that// this offset must be divided by 2 to get the array index.SubstituteNameOffsetuint16// The integer that contains the length, in bytes, of the// substitute name string. If this string is null-terminated,// SubstituteNameLength does not include the Unicode null character.SubstituteNameLengthuint16// PrintNameOffset is similar to SubstituteNameOffset.PrintNameOffsetuint16// PrintNameLength is similar to SubstituteNameLength.PrintNameLengthuint16PathBuffer      [1]uint16}

func (*MountPointReparseBuffer)Pathadded ingo1.13

Path returns path stored in rb.

typeNTStatusadded ingo1.24.0

type NTStatusuint32

NTStatus corresponds with NTSTATUS, error values returned by ntdll.dll andother native functions.

const (STATUS_OBJECT_NAME_COLLISIONNTStatus = 0xC0000035STATUS_FILE_IS_A_DIRECTORYNTStatus = 0xC00000BASTATUS_DIRECTORY_NOT_EMPTYNTStatus = 0xC0000101STATUS_NOT_A_DIRECTORYNTStatus = 0xC0000103STATUS_CANNOT_DELETENTStatus = 0xC0000121STATUS_REPARSE_POINT_ENCOUNTEREDNTStatus = 0xC000050B)

x/sys/windows/mkerrors.bash can generate a complete list of NTStatus codes.

At the moment, we only need a couple, so just put them here manually.If this list starts getting long, we should consider generating the full set.

func (NTStatus)Errnoadded ingo1.24.0

func (sNTStatus) Errno()syscall.Errno

func (NTStatus)Erroradded ingo1.24.0

func (sNTStatus) Error()string

typeNTUnicodeStringadded ingo1.24.0

type NTUnicodeString struct {Lengthuint16MaximumLengthuint16Buffer        *uint16}

NTUnicodeString is a UTF-16 string for NT native APIs, corresponding to UNICODE_STRING.

funcNewNTUnicodeStringadded ingo1.24.0

func NewNTUnicodeString(sstring) (*NTUnicodeString,error)

NewNTUnicodeString returns a new NTUnicodeString structure for use with nativeNT APIs that work over the NTUnicodeString type. Note that most Windows APIsdo not use NTUnicodeString, and instead UTF16PtrFromString should be used forthe more common *uint16 string type.

typeOBJECT_ATTRIBUTESadded ingo1.24.0

type OBJECT_ATTRIBUTES struct {Lengthuint32RootDirectorysyscall.HandleObjectName         *NTUnicodeStringAttributesuint32SecurityDescriptor *SECURITY_DESCRIPTORSecurityQoS        *SECURITY_QUALITY_OF_SERVICE}

https://learn.microsoft.com/en-us/windows/win32/api/ntdef/ns-ntdef-_object_attributes

typePROCESS_MEMORY_COUNTERSadded ingo1.10

type PROCESS_MEMORY_COUNTERS struct {CBuint32PageFaultCountuint32PeakWorkingSetSizeuintptrWorkingSetSizeuintptrQuotaPeakPagedPoolUsageuintptrQuotaPagedPoolUsageuintptrQuotaPeakNonPagedPoolUsageuintptrQuotaNonPagedPoolUsageuintptrPagefileUsageuintptrPeakPagefileUsageuintptr}

typeREPARSE_DATA_BUFFERadded ingo1.13

type REPARSE_DATA_BUFFER struct {ReparseTaguint32ReparseDataLengthuint16Reserveduint16DUMMYUNIONNAMEbyte}

typeREPARSE_DATA_BUFFER_HEADERadded ingo1.8

type REPARSE_DATA_BUFFER_HEADER struct {ReparseTaguint32// The size, in bytes, of the reparse data that follows// the common portion of the REPARSE_DATA_BUFFER element.// This value is the length of the data starting at the// SubstituteNameOffset field.ReparseDataLengthuint16Reserveduint16}

REPARSE_DATA_BUFFER_HEADER is a common part of REPARSE_DATA_BUFFER structure.

typeRUNTIME_FUNCTIONadded ingo1.25.0

type RUNTIME_FUNCTION struct {BeginAddressuint32EndAddressuint32UnwindDatauint32}

funcRtlLookupFunctionEntryadded ingo1.21.0

func RtlLookupFunctionEntry(pcuintptr, baseAddress *uintptr, tableunsafe.Pointer) (ret *RUNTIME_FUNCTION)

typeSECURITY_DESCRIPTORadded ingo1.24.0

type SECURITY_DESCRIPTOR struct {// contains filtered or unexported fields}

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-_security_descriptor

typeSECURITY_QUALITY_OF_SERVICEadded ingo1.24.0

type SECURITY_QUALITY_OF_SERVICE struct {Lengthuint32ImpersonationLeveluint32// type SECURITY_IMPERSONATION_LEVELContextTrackingModebyte// type SECURITY_CONTEXT_TRACKING_MODEEffectiveOnlybyte}

https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-security_quality_of_service

typeSERVICE_STATUSadded ingo1.22.0

type SERVICE_STATUS struct {ServiceTypeuint32CurrentStateuint32ControlsAccepteduint32Win32ExitCodeuint32ServiceSpecificExitCodeuint32CheckPointuint32WaitHintuint32}

typeSHARE_INFO_2added ingo1.8

type SHARE_INFO_2 struct {Netname     *uint16Typeuint32Remark      *uint16Permissionsuint32MaxUsesuint32CurrentUsesuint32Path        *uint16Passwd      *uint16}

typeSID_AND_ATTRIBUTESadded ingo1.10

type SID_AND_ATTRIBUTES struct {Sid        *syscall.SIDAttributesuint32}

typeSID_IDENTIFIER_AUTHORITYadded ingo1.24.0

type SID_IDENTIFIER_AUTHORITY struct {Value [6]byte}

https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-sid_identifier_authority

funcGetSidIdentifierAuthorityadded ingo1.24.0

func GetSidIdentifierAuthority(sid *syscall.SID)SID_IDENTIFIER_AUTHORITY

typeSecurityAttributesadded ingo1.21.0

type SecurityAttributes struct {Lengthuint16SecurityDescriptoruintptrInheritHandlebool}

typeSocketAddress

type SocketAddress struct {Sockaddr       *syscall.RawSockaddrAnySockaddrLengthint32}

typeSymbolicLinkReparseBufferadded ingo1.8

type SymbolicLinkReparseBuffer struct {// The integer that contains the offset, in bytes,// of the substitute name string in the PathBuffer array,// computed as an offset from byte 0 of PathBuffer. Note that// this offset must be divided by 2 to get the array index.SubstituteNameOffsetuint16// The integer that contains the length, in bytes, of the// substitute name string. If this string is null-terminated,// SubstituteNameLength does not include the Unicode null character.SubstituteNameLengthuint16// PrintNameOffset is similar to SubstituteNameOffset.PrintNameOffsetuint16// PrintNameLength is similar to SubstituteNameLength.PrintNameLengthuint16// Flags specifies whether the substitute name is a full path name or// a path name relative to the directory containing the symbolic link.Flagsuint32PathBuffer [1]uint16}

func (*SymbolicLinkReparseBuffer)Pathadded ingo1.13

Path returns path stored in rb.

typeSymlinkatFlagsadded ingo1.25.0

type SymlinkatFlagsuint

SymlinkatFlags configure Symlinkat.

Symbolic links have two properties: They may be directory or file links,and they may be absolute or relative.

The Windows API defines flags describing these properties(SYMBOLIC_LINK_FLAG_DIRECTORY and SYMLINK_FLAG_RELATIVE),but the flags are passed to different system calls anddo not have distinct values, so we define our own enumerationthat permits expressing both.

typeTCP_INITIAL_RTO_PARAMETERSadded ingo1.21.0

type TCP_INITIAL_RTO_PARAMETERS struct {Rttuint16MaxSynRetransmissionsuint8}

typeTOKEN_GROUPSadded ingo1.24.0

type TOKEN_GROUPS struct {GroupCountuint32Groups     [1]SID_AND_ATTRIBUTES}

funcGetTokenGroupsadded ingo1.24.0

func GetTokenGroups(tsyscall.Token) (*TOKEN_GROUPS,error)

func (*TOKEN_GROUPS)AllGroupsadded ingo1.24.0

func (g *TOKEN_GROUPS) AllGroups() []SID_AND_ATTRIBUTES

typeTOKEN_MANDATORY_LABELadded ingo1.10

type TOKEN_MANDATORY_LABEL struct {LabelSID_AND_ATTRIBUTES}

func (*TOKEN_MANDATORY_LABEL)Sizeadded ingo1.10

func (tml *TOKEN_MANDATORY_LABEL) Size()uint32

typeTOKEN_PRIVILEGESadded ingo1.8

type TOKEN_PRIVILEGES struct {PrivilegeCountuint32Privileges     [1]LUID_AND_ATTRIBUTES}

typeTokenTypeadded ingo1.10

type TokenTypeuint32
const (TokenPrimaryTokenType = 1TokenImpersonationTokenType = 2)

typeUserInfo1added ingo1.24.0

type UserInfo1 struct {Name        *uint16Password    *uint16PasswordAgeuint32Privuint32HomeDir     *uint16Comment     *uint16Flagsuint32ScriptPath  *uint16}

typeUserInfo4added ingo1.11

type UserInfo4 struct {Name            *uint16Password        *uint16PasswordAgeuint32Privuint32HomeDir         *uint16Comment         *uint16Flagsuint32ScriptPath      *uint16AuthFlagsuint32FullName        *uint16UsrComment      *uint16Parms           *uint16Workstations    *uint16LastLogonuint32LastLogoffuint32AcctExpiresuint32MaxStorageuint32UnitsPerWeekuint32LogonHours      *byteBadPwCountuint32NumLogonsuint32LogonServer     *uint16CountryCodeuint32CodePageuint32UserSid         *syscall.SIDPrimaryGroupIDuint32Profile         *uint16HomeDirDrive    *uint16PasswordExpireduint32}

typeWSAMsgadded ingo1.10

type WSAMsg struct {Namesyscall.PointerNamelenint32Buffers     *syscall.WSABufBufferCountuint32Controlsyscall.WSABufFlagsuint32}

Source Files

View all Source files

Directories

PathSynopsis
Package registry provides access to the Windows registry.
Package registry provides access to the Windows registry.
Package sysdll is an internal leaf package that records and reports which Windows DLL names are used by Go itself.
Package sysdll is an internal leaf package that records and reports which Windows DLL names are used by Go itself.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp