Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getSystemDirectory (0.32 sec)

  1. src/internal/syscall/windows/security_windows.go

    // GetSystemDirectory retrieves the path to current location of the system
    // directory, which is typically, though not always, `C:\Windows\System32`.
    //
    //go:linkname GetSystemDirectory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/net/hook_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"internal/syscall/windows"
    	"syscall"
    )
    
    var (
    	hostsFilePath = windows.GetSystemDirectory() + "/Drivers/etc/hosts"
    
    	// Placeholders for socket system calls.
    	wsaSocketFunc func(int32, int32, int32, *syscall.WSAProtocolInfo, uint32, uint32) (syscall.Handle, error) = windows.WSASocket
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 720 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    		return Token(0), err
    	}
    	return linkedToken, nil
    }
    
    // GetSystemDirectory retrieves the path to current location of the system
    // directory, which is typically, though not always, `C:\Windows\System32`.
    func GetSystemDirectory() (string, error) {
    	n := uint32(MAX_PATH)
    	for {
    		b := make([]uint16, n)
    		l, e := getSystemDirectory(&b[0], n)
    		if e != nil {
    			return "", e
    		}
    		if l <= n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/windows/dll_windows.go

    			// WindowsXP or unpatched Windows machine
    			// trying to load "foo.dll" out of the system
    			// folder, but LoadLibraryEx doesn't support
    			// that yet on their system, so emulate it.
    			systemdir, err := GetSystemDirectory()
    			if err != nil {
    				return nil, err
    			}
    			loadDLL = systemdir + "\\" + name
    		}
    	}
    	h, err := LoadLibraryEx(loadDLL, 0, flags)
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Dec 05 12:36:42 UTC 2020
    - 12K bytes
    - Viewed (0)
  5. src/runtime/os_windows.go

    		throw("Unable to determine system directory")
    	}
    	sysDirectory[l] = '\\'
    	sysDirectoryLen = l + 1
    }
    
    //go:linkname windows_GetSystemDirectory internal/syscall/windows.GetSystemDirectory
    func windows_GetSystemDirectory() string {
    	return unsafe.String(&sysDirectory[0], sysDirectoryLen)
    }
    
    func windowsLoadSystemLib(name []uint16) uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	r0, _, e1 := syscall.Syscall(procGetStdHandle.Addr(), 1, uintptr(stdhandle), 0, 0)
    	handle = Handle(r0)
    	if handle == InvalidHandle {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func getSystemDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
    	r0, _, e1 := syscall.Syscall(procGetSystemDirectoryW.Addr(), 2, uintptr(unsafe.Pointer(dir)), uintptr(dirLen), 0)
    	len = uint32(r0)
    	if len == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top