Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for DUPLICATE_SAME_ACCESS (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top