Lines Matching refs:Handle
202 func LoadLibrary(libname string) (handle Handle, err error) {
211 func _LoadLibrary(libname *uint16) (handle Handle, err error) {
213 handle = Handle(r0)
214 if handle == 0 {
224 func FreeLibrary(handle Handle) (err error) {
225 r1, _, e1 := Syscall(procFreeLibrary.Addr(), 1, uintptr(handle), 0, 0)
236 func GetProcAddress(module Handle, procname string) (proc uintptr, err error) {
245 func _GetProcAddress(module Handle, procname *byte) (proc uintptr, err error) {
293 func CreateFile(name *uint16, access uint32, mode uint32, sa *SecurityAttributes, createmode uint32, attrs uint32, templatefile int32) (handle Handle, err error) {
295 handle = Handle(r0)
296 if handle == InvalidHandle {
306 func ReadFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) {
311 r1, _, e1 := Syscall6(procReadFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0)
322 func WriteFile(handle Handle, buf []byte, done *uint32, overlapped *Overlapped) (err error) {
327 r1, _, e1 := Syscall6(procWriteFile.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(_p0)), uintptr(len(buf)), uintptr(unsafe.Pointer(done)), uintptr(unsafe.Pointer(overlapped)), 0)
338 func SetFilePointer(handle Handle, lowoffset int32, highoffsetptr *int32, whence uint32) (newlowoffset uint32, err error) {
339 handle), uintptr(lowoffset), uintptr(unsafe.Pointer(highoffsetptr)), uintptr(whence), 0, 0)
351 func CloseHandle(handle Handle) (err error) {
352 r1, _, e1 := Syscall(procCloseHandle.Addr(), 1, uintptr(handle), 0, 0)
363 func GetStdHandle(stdhandle int) (handle Handle, err error) {
365 handle = Handle(r0)
366 if handle == InvalidHandle {
376 func findFirstFile1(name *uint16, data *win32finddata1) (handle Handle, err error) {
378 handle = Handle(r0)
379 if handle == InvalidHandle {
389 func findNextFile1(handle Handle, data *win32finddata1) (err error) {
390 r1, _, e1 := Syscall(procFindNextFileW.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0)
401 func FindClose(handle Handle) (err error) {
402 r1, _, e1 := Syscall(procFindClose.Addr(), 1, uintptr(handle), 0, 0)
413 func GetFileInformationByHandle(handle Handle, data *ByHandleFileInformation) (err error) {
414 r1, _, e1 := Syscall(procGetFileInformationByHandle.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(data)), 0)
510 func SetEndOfFile(handle Handle) (err error) {
511 r1, _, e1 := Syscall(procSetEndOfFile.Addr(), 1, uintptr(handle), 0, 0)
540 func CreateIoCompletionPort(filehandle Handle, cphandle Handle, key uint32, threadcnt uint32) (handle Handle, err error) {
542 handle = Handle(r0)
543 if handle == 0 {
553 func GetQueuedCompletionStatus(cphandle Handle, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) (err error) {
565 func PostQueuedCompletionStatus(cphandle Handle, qty uint32, key uint32, overlapped *Overlapped) (err error) {
577 func CancelIo(s Handle) (err error) {
589 func CancelIoEx(s Handle, o *Overlapped) (err error) {
619 func OpenProcess(da uint32, inheritHandle bool, pid uint32) (handle Handle, err error) {
627 handle = Handle(r0)
628 if handle == 0 {
638 func TerminateProcess(handle Handle, exitcode uint32) (err error) {
639 r1, _, e1 := Syscall(procTerminateProcess.Addr(), 2, uintptr(handle), uintptr(exitcode), 0)
650 func GetExitCodeProcess(handle Handle, exitcode *uint32) (err error) {
651 r1, _, e1 := Syscall(procGetExitCodeProcess.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(exitcode)), 0)
674 func GetCurrentProcess() (pseudoHandle Handle, err error) {
676 pseudoHandle = Handle(r0)
687 func GetProcessTimes(handle Handle, creationTime *Filetime, exitTime *Filetime, kernelTime *Filetime, userTime *Filetime) (err error) {
688 r1, _, e1 := Syscall6(procGetProcessTimes.Addr(), 5, uintptr(handle), uintptr(unsafe.Pointer(creationTime)), uintptr(unsafe.Pointer(exitTime)), uintptr(unsafe.Pointer(kernelTime)), uintptr(unsafe.Pointer(userTime)), 0)
699 func DuplicateHandle(hSourceProcessHandle Handle, hSourceHandle Handle, hTargetProcessHandle Handle, lpTargetHandle *Handle, dwDesiredAccess uint32, bInheritHandle bool, dwOptions uint32) (err error) {
717 func WaitForSingleObject(handle Handle, waitMilliseconds uint32) (event uint32, err error) {
718 r0, _, e1 := Syscall(procWaitForSingleObject.Addr(), 2, uintptr(handle), uintptr(waitMilliseconds), 0)
743 func CreatePipe(readhandle *Handle, writehandle *Handle, sa *SecurityAttributes, size uint32) (err error) {
755 func GetFileType(filehandle Handle) (n uint32, err error) {
768 func CryptAcquireContext(provhandle *Handle, container *uint16, provider *uint16, provtype uint32, flags uint32) (err error) {
780 func CryptReleaseContext(provhandle Handle, flags uint32) (err error) {
792 func CryptGenRandom(provhandle Handle, buflen uint32, buf *byte) (err error) {
854 func SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) {
855 r1, _, e1 := Syscall6(procSetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0)
922 func LocalFree(hmem Handle) (handle Handle, err error) {
924 handle = Handle(r0)
925 if handle != 0 {
935 func SetHandleInformation(handle Handle, mask uint32, flags uint32) (err error) {
936 r1, _, e1 := Syscall(procSetHandleInformation.Addr(), 3, uintptr(handle), uintptr(mask), uintptr(flags))
947 func FlushFileBuffers(handle Handle) (err error) {
948 r1, _, e1 := Syscall(procFlushFileBuffers.Addr(), 1, uintptr(handle), 0, 0)
998 func CreateFileMapping(fhandle Handle, sa *SecurityAttributes, prot uint32, maxSizeHigh uint32, maxSizeLow uint32, name *uint16) (handle Handle
1000 handle = Handle(r0)
1001 if handle == 0 {
1011 func MapViewOfFile(handle Handle, access uint32, offsetHigh uint32, offsetLow uint32, length uintptr) (addr uintptr, err error) {
1012 r0, _, e1 := Syscall6(procMapViewOfFile.Addr(), 5, uintptr(handle), uintptr(access), uintptr(offsetHigh), uintptr(offsetLow), uintptr(length), 0)
1072 func TransmitFile(s Handle, handle Handle, bytesToWrite uint32, bytsPerSend uint32, overlapped *Overlapped, transmitFileBuf *TransmitFileBuffers, flags uint32) (err error) {
1073 r1, _, e1 := Syscall9(procTransmitFile.Addr(), 7, uintptr(s), uintptr(handle), uintptr(bytesToWrite), uintptr(bytsPerSend), uintptr(unsafe.Pointer(overlapped)), uintptr(unsafe.Pointer(transmitFileBuf)), uintptr(flags), 0, 0)
1084 func ReadDirectoryChanges(handle Handle, buf *byte, buflen uint32, watchSubTree bool, mask uint32, retlen *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) {
1091 r1, _, e1 := Syscall9(procReadDirectoryChangesW.Addr(), 8, uintptr(handle), uintptr(unsafe.Pointer(buf)), uintptr(buflen), uintptr(_p0), uintptr(mask), uintptr(unsafe.Pointer(retlen)), uintptr(unsafe.Pointer(overlapped)), uintptr(completionRoutine), 0)
1102 func CertOpenSystemStore(hprov Handle, name *uint16) (store Handle, err error) {
1104 store = Handle(r0)
1115 func CertOpenStore(storeProvider uintptr, msgAndCertEncodingType uint32, cryptProv uintptr, flags uint32, para uintptr) (handle Handle, err error) {
1117 handle = Handle(r0)
1118 if handle == InvalidHandle {
1128 func CertEnumCertificatesInStore(store Handle, prevContext *CertContext) (context *CertContext, err error) {
1141 func CertAddCertificateContextToStore(store Handle, certContext *CertContext, addDisposition uint32, storeContext **CertContext) (err error) {
1153 func CertCloseStore(store Handle, flags uint32) (err error) {
1165 func CertGetCertificateChain(engine Handle, leaf *CertContext, time *Filetime, additionalStore Handle, para *CertChainPara, flags uint32, reserved uintptr, chainCtx **CertChainContext) (err error) {
1219 func RegOpenKeyEx(key Handle, subkey *uint16, options uint32, desiredAccess uint32, result *Handle) (regerrno error) {
1227 func RegCloseKey(key Handle) (regerrno error) {
1235 func RegQueryInfoKey(key Handle, class *uint16, classLen *uint32, reserved *uint32, subkeysLen *uint32, maxSubkeyLen *uint32, maxClassLen *uint32, valuesLen *uint32, maxValueNameLen *uint32, maxValueLen *uint32, saLen *uint32, lastWriteTime *Filetime) (regerrno error) {
1243 func RegEnumKeyEx(key Handle, index uint32, name *uint16, nameLen *uint32, reserved *uint32, class *uint16, classLen *uint32, lastWriteTime *Filetime) (regerrno error) {
1251 func RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) {
1265 func GetConsoleMode(console Handle, mode *uint32) (err error) {
1277 func WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) {
1289 func ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) {
1301 func CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) {
1303 handle = Handle(r0)
1304 if handle == InvalidHandle {
1314 func Process32First(snapshot Handle, procEntry *ProcessEntry32) (err error) {
1326 func Process32Next(snapshot Handle, procEntry *ProcessEntry32) (err error) {
1338 func DeviceIoControl(handle Handle, ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *Overlapped) (err error) {
1339 r1, _, e1 := Syscall9(procDeviceIoControl.Addr(), 8, uintptr(handle), uintptr(ioControlCode), uintptr(unsafe.Pointer(inBuffer)), uintptr(inBufferSize), uintptr(unsafe.Pointer(outBuffer)), uintptr(outBufferSize), uintptr(unsafe.Pointer(bytesReturned)), uintptr(unsafe.Pointer(overlapped)), 0)
1394 func WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) {
1406 func socket(af int32, typ int32, protocol int32) (handle Handle, err error) {
1408 handle = Handle(r0)
1409 if handle == InvalidHandle {
1419 func Setsockopt(s Handle, level int32, optname int32, optval *byte, optlen int32) (err error) {
1431 func Getsockopt(s Handle, level int32, optname int32, optval *byte, optlen *int32) (err error) {
1443 func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) {
1455 func connect(s Handle, name unsafe.Pointer, namelen int32) (err error) {
1467 func getsockname(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
1479 func getpeername(s Handle, rsa *RawSockaddrAny, addrlen *int32) (err error) {
1491 func listen(s Handle, backlog int32) (err error) {
1503 func shutdown(s Handle, how int32) (err error) {
1515 func Closesocket(s Handle) (err error) {
1527 func AcceptEx(ls Handle, as Handle, buf *byte, rxdatalen uint32, laddrlen uint32, raddrlen uint32, recvd *uint32, overlapped *Overlapped) (err error) {
1544 func WSARecv(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, overlapped *Overlapped, croutine *byte) (err error) {
1556 func WSASend(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, overlapped *Overlapped, croutine *byte) (err error) {
1568 func WSARecvFrom(s Handle, bufs *WSABuf, bufcnt uint32, recvd *uint32, flags *uint32, from *RawSockaddrAny, fromlen *int32, overlapped *Overlapped, croutine *byte) (err error) {
1580 func WSASendTo(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *RawSockaddrAny, tolen int32, overlapped *Overlapped, croutine *byte) (err error) {
1726 func SetFileCompletionNotificationModes(handle Handle, flags uint8) (err error) {
1727 r1, _, e1 := Syscall(procSetFileCompletionNotificationModes.Addr(), 2, uintptr(handle), uintptr(flags), 0)
1865 func OpenProcessToken(h Handle, access uint32, token *Token) (err error) {