- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CreateEnvironmentBlock (0.33 sec)
-
src/cmd/vendor/golang.org/x/sys/windows/env_windows.go
// process. If inheritExisting is true, then this environment also inherits the // environment of the current process. func (token Token) Environ(inheritExisting bool) (env []string, err error) { var block *uint16 err = CreateEnvironmentBlock(&block, token, inheritExisting) if err != nil { return nil, err } defer DestroyEnvironmentBlock(block) size := unsafe.Sizeof(*block) for *block != 0 { // find NUL terminator
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 20:35:26 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/syscall/execenv/execenv_windows.go
// will be sourced from syscall.Environ(). func Default(sys *syscall.SysProcAttr) (env []string, err error) { if sys == nil || sys.Token == 0 { return syscall.Environ(), nil } var blockp *uint16 err = windows.CreateEnvironmentBlock(&blockp, sys.Token, false) if err != nil { return nil, err } defer windows.DestroyEnvironmentBlock(blockp) const size = unsafe.Sizeof(*blockp)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 09:26:16 UTC 2023 - 1.3K bytes - Viewed (0)