Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UTF16PtrToString (0.12 sec)

  1. src/os/exec_windows.go

    	h, e := syscall.OpenProcess(da, false, uint32(pid))
    	if e != nil {
    		return nil, NewSyscallError("OpenProcess", e)
    	}
    	return newHandleProcess(pid, uintptr(h)), nil
    }
    
    func init() {
    	cmd := windows.UTF16PtrToString(syscall.GetCommandLine())
    	if len(cmd) == 0 {
    		arg0, _ := Executable()
    		Args = []string{arg0}
    	} else {
    		Args = commandLineToArgv(cmd)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. src/net/interface_windows.go

    		if index == 0 { // ipv6IfIndex is a substitute for ifIndex
    			index = aa.Ipv6IfIndex
    		}
    		if ifindex == 0 || ifindex == int(index) {
    			ifi := Interface{
    				Index: int(index),
    				Name:  windows.UTF16PtrToString(aa.FriendlyName),
    			}
    			if aa.OperStatus == windows.IfOperStatusUp {
    				ifi.Flags |= FlagUp
    				ifi.Flags |= FlagRunning
    			}
    			// For now we need to infer link-layer service
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top