Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UTF16PtrToString (0.11 sec)

  1. pkg/kubelet/winstats/perfcounters.go

    	if err != nil {
    		return nil, err
    	}
    
    	data := map[string]uint64{}
    	for i := 0; i < int(bufCount); i++ {
    		c := filledBuf[i]
    		value := uint64(c.FmtValue.DoubleValue)
    		name := win_pdh.UTF16PtrToString(c.SzName)
    		data[name] = value
    	}
    
    	return data, nil
    }
    
    // getQueriedData is used for getting data using the given query handle.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 19:13:24 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    	if err != nil {
    		return nil, err
    	}
    	defer LocalFree(Handle(unsafe.Pointer(argv)))
    
    	var args []string
    	for _, p := range unsafe.Slice(argv, argc) {
    		args = append(args, UTF16PtrToString(p))
    	}
    	return args, nil
    }
    
    // CommandLineToArgv parses a Unicode command line string and sets
    // argc to the number of parsed arguments.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top