Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getWindowsDirectory (0.33 sec)

  1. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    			return UTF16ToString(b[:l]), nil
    		}
    		n = l
    	}
    }
    
    // GetWindowsDirectory retrieves the path to current location of the Windows
    // directory, which is typically, though not always, `C:\Windows`. This may
    // be a private user directory in the case that the application is running
    // under a terminal server.
    func GetWindowsDirectory() (string, error) {
    	n := uint32(MAX_PATH)
    	for {
    		b := make([]uint16, 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)
  2. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	if r1 == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func getWindowsDirectory(dir *uint16, dirLen uint32) (len uint32, err error) {
    	r0, _, e1 := syscall.Syscall(procGetWindowsDirectoryW.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