github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/syscall/windows/zsyscall_windows.go (about)

     1  // Code generated by 'go generate'; DO NOT EDIT.
     2  
     3  package windows
     4  
     5  import (
     6  	"github.com/shogo82148/std/syscall"
     7  	"github.com/shogo82148/std/unsafe"
     8  )
     9  
    10  var _ unsafe.Pointer
    11  
    12  func DuplicateTokenEx(hExistingToken syscall.Token, dwDesiredAccess uint32, lpTokenAttributes *syscall.SecurityAttributes, impersonationLevel uint32, tokenType TokenType, phNewToken *syscall.Token) (err error)
    13  
    14  func ImpersonateSelf(impersonationlevel uint32) (err error)
    15  
    16  func LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error)
    17  
    18  func OpenSCManager(machineName *uint16, databaseName *uint16, access uint32) (handle syscall.Handle, err error)
    19  
    20  func OpenService(mgr syscall.Handle, serviceName *uint16, access uint32) (handle syscall.Handle, err error)
    21  
    22  func OpenThreadToken(h syscall.Handle, access uint32, openasself bool, token *syscall.Token) (err error)
    23  
    24  func QueryServiceStatus(hService syscall.Handle, lpServiceStatus *SERVICE_STATUS) (err error)
    25  
    26  func RevertToSelf() (err error)
    27  
    28  func SetTokenInformation(tokenHandle syscall.Token, tokenInformationClass uint32, tokenInformation uintptr, tokenInformationLength uint32) (err error)
    29  
    30  func ProcessPrng(buf []byte) (err error)
    31  
    32  func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error)
    33  
    34  func CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle syscall.Handle, err error)
    35  
    36  func GetACP() (acp uint32)
    37  
    38  func GetComputerNameEx(nameformat uint32, buf *uint16, n *uint32) (err error)
    39  
    40  func GetConsoleCP() (ccp uint32)
    41  
    42  func GetCurrentThread() (pseudoHandle syscall.Handle, err error)
    43  
    44  func GetFileInformationByHandleEx(handle syscall.Handle, class uint32, info *byte, bufsize uint32) (err error)
    45  
    46  func GetFinalPathNameByHandle(file syscall.Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error)
    47  
    48  func GetModuleFileName(module syscall.Handle, fn *uint16, len uint32) (n uint32, err error)
    49  
    50  func GetTempPath2(buflen uint32, buf *uint16) (n uint32, err error)
    51  
    52  func GetVolumeInformationByHandle(file syscall.Handle, volumeNameBuffer *uint16, volumeNameSize uint32, volumeNameSerialNumber *uint32, maximumComponentLength *uint32, fileSystemFlags *uint32, fileSystemNameBuffer *uint16, fileSystemNameSize uint32) (err error)
    53  
    54  func GetVolumeNameForVolumeMountPoint(volumeMountPoint *uint16, volumeName *uint16, bufferlength uint32) (err error)
    55  
    56  func LockFileEx(file syscall.Handle, flags uint32, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *syscall.Overlapped) (err error)
    57  
    58  func Module32First(snapshot syscall.Handle, moduleEntry *ModuleEntry32) (err error)
    59  
    60  func Module32Next(snapshot syscall.Handle, moduleEntry *ModuleEntry32) (err error)
    61  
    62  func MoveFileEx(from *uint16, to *uint16, flags uint32) (err error)
    63  
    64  func MultiByteToWideChar(codePage uint32, dwFlags uint32, str *byte, nstr int32, wchar *uint16, nwchar int32) (nwrite int32, err error)
    65  
    66  func RtlLookupFunctionEntry(pc uintptr, baseAddress *uintptr, table *byte) (ret uintptr)
    67  
    68  func RtlVirtualUnwind(handlerType uint32, baseAddress uintptr, pc uintptr, entry uintptr, ctxt uintptr, data *uintptr, frame *uintptr, ctxptrs *byte) (ret uintptr)
    69  
    70  func SetFileInformationByHandle(handle syscall.Handle, fileInformationClass uint32, buf unsafe.Pointer, bufsize uint32) (err error)
    71  
    72  func UnlockFileEx(file syscall.Handle, reserved uint32, bytesLow uint32, bytesHigh uint32, overlapped *syscall.Overlapped) (err error)
    73  
    74  func VirtualQuery(address uintptr, buffer *MemoryBasicInformation, length uintptr) (err error)
    75  
    76  func NetShareAdd(serverName *uint16, level uint32, buf *byte, parmErr *uint16) (neterr error)
    77  
    78  func NetShareDel(serverName *uint16, netName *uint16, reserved uint32) (neterr error)
    79  
    80  func NetUserGetLocalGroups(serverName *uint16, userName *uint16, level uint32, flags uint32, buf **byte, prefMaxLen uint32, entriesRead *uint32, totalEntries *uint32) (neterr error)
    81  
    82  func GetProcessMemoryInfo(handle syscall.Handle, memCounters *PROCESS_MEMORY_COUNTERS, cb uint32) (err error)
    83  
    84  func CreateEnvironmentBlock(block **uint16, token syscall.Token, inheritExisting bool) (err error)
    85  
    86  func DestroyEnvironmentBlock(block *uint16) (err error)
    87  
    88  func GetProfilesDirectory(dir *uint16, dirLen *uint32) (err error)
    89  
    90  func WSAGetOverlappedResult(h syscall.Handle, o *syscall.Overlapped, bytes *uint32, wait bool, flags *uint32) (err error)
    91  
    92  func WSASocket(af int32, typ int32, protocol int32, protinfo *syscall.WSAProtocolInfo, group uint32, flags uint32) (handle syscall.Handle, err error)