Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for DUPLICATE_SAME_ACCESS (0.33 sec)

  1. src/cmd/vendor/golang.org/x/term/term_windows.go

    	}
    
    	defer windows.SetConsoleMode(windows.Handle(fd), old)
    
    	var h windows.Handle
    	p, _ := windows.GetCurrentProcess()
    	if err := windows.DuplicateHandle(p, windows.Handle(fd), p, &h, 0, false, windows.DUPLICATE_SAME_ACCESS); err != nil {
    		return nil, err
    	}
    
    	f := os.NewFile(uintptr(h), "stdin")
    	defer f.Close()
    	return readPasswordLine(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. src/syscall/exec_windows.go

    	}
    	fd := make([]Handle, len(attr.Files))
    	for i := range attr.Files {
    		if attr.Files[i] > 0 {
    			err := DuplicateHandle(p, Handle(attr.Files[i]), parentProcess, &fd[i], 0, true, DUPLICATE_SAME_ACCESS)
    			if err != nil {
    				return 0, 0, err
    			}
    			defer DuplicateHandle(parentProcess, fd[i], 0, nil, 0, false, DUPLICATE_CLOSE_SOURCE)
    		}
    	}
    	si := new(_STARTUPINFOEXW)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/syscall/types_windows.go

    	FILE_FLAG_OVERLAPPED         = 0x40000000
    
    	HANDLE_FLAG_INHERIT    = 0x00000001
    	STARTF_USESTDHANDLES   = 0x00000100
    	STARTF_USESHOWWINDOW   = 0x00000001
    	DUPLICATE_CLOSE_SOURCE = 0x00000001
    	DUPLICATE_SAME_ACCESS  = 0x00000002
    
    	STD_INPUT_HANDLE  = -10
    	STD_OUTPUT_HANDLE = -11
    	STD_ERROR_HANDLE  = -12
    
    	FILE_BEGIN   = 0
    	FILE_CURRENT = 1
    	FILE_END     = 2
    
    	LANG_ENGLISH       = 0x09
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. src/internal/poll/fd_windows.go

    		return 0, "GetCurrentProcess", err
    	}
    
    	var nfd syscall.Handle
    	const inherit = false // analogous to CLOEXEC
    	if err := syscall.DuplicateHandle(proc, syscall.Handle(fd), proc, &nfd, 0, inherit, syscall.DUPLICATE_SAME_ACCESS); err != nil {
    		return 0, "DuplicateHandle", err
    	}
    	return int(nfd), "", nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. src/os/os_windows_test.go

    		t.Fatalf("Unable to get handle to current process: %v", err)
    	}
    	var stdinDuplicate syscall.Handle
    	err = syscall.DuplicateHandle(p, syscall.Handle(syscall.Stdin), p, &stdinDuplicate, 0, false, syscall.DUPLICATE_SAME_ACCESS)
    	if err != nil {
    		t.Fatalf("Unable to duplicate stdin: %v", err)
    	}
    	testConsole := os.NewConsoleFile(stdinDuplicate, "test")
    
    	var tests = []string{
    		"abc",
    		"äöü",
    		"\u3042",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/types_windows.go

    	FILE_FLAG_WRITE_THROUGH         = 0x80000000
    
    	HANDLE_FLAG_INHERIT    = 0x00000001
    	STARTF_USESTDHANDLES   = 0x00000100
    	STARTF_USESHOWWINDOW   = 0x00000001
    	DUPLICATE_CLOSE_SOURCE = 0x00000001
    	DUPLICATE_SAME_ACCESS  = 0x00000002
    
    	STD_INPUT_HANDLE  = -10 & (1<<32 - 1)
    	STD_OUTPUT_HANDLE = -11 & (1<<32 - 1)
    	STD_ERROR_HANDLE  = -12 & (1<<32 - 1)
    
    	FILE_BEGIN   = 0
    	FILE_CURRENT = 1
    	FILE_END     = 2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 104.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"DT_LNK", Const, 0},
    		{"DT_REG", Const, 0},
    		{"DT_SOCK", Const, 0},
    		{"DT_UNKNOWN", Const, 0},
    		{"DT_WHT", Const, 0},
    		{"DUPLICATE_CLOSE_SOURCE", Const, 0},
    		{"DUPLICATE_SAME_ACCESS", Const, 0},
    		{"DeleteFile", Func, 0},
    		{"DetachLsf", Func, 0},
    		{"DeviceIoControl", Func, 4},
    		{"Dirent", Type, 0},
    		{"Dirent.Fileno", Field, 0},
    		{"Dirent.Ino", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg syscall (windows-386), const DNS_TYPE_WKS ideal-int
    pkg syscall (windows-386), const DNS_TYPE_X25 ideal-int
    pkg syscall (windows-386), const DUPLICATE_CLOSE_SOURCE ideal-int
    pkg syscall (windows-386), const DUPLICATE_SAME_ACCESS ideal-int
    pkg syscall (windows-386), const EADV Errno
    pkg syscall (windows-386), const EBADE Errno
    pkg syscall (windows-386), const EBADFD Errno
    pkg syscall (windows-386), const EBADMSG Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  9. api/go1.1.txt

    pkg syscall (windows-386), const DNS_TYPE_WKS = 11
    pkg syscall (windows-386), const DNS_TYPE_X25 = 19
    pkg syscall (windows-386), const DUPLICATE_CLOSE_SOURCE = 1
    pkg syscall (windows-386), const DUPLICATE_SAME_ACCESS = 2
    pkg syscall (windows-386), const E2BIG = 536870912
    pkg syscall (windows-386), const EACCES = 536870913
    pkg syscall (windows-386), const EADDRINUSE = 536870914
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top