ox
ox copied to clipboard
🐂 ox (Os eXtended) contains system utilities for golang that aren't in stock syscall / os
This pull request add `ImpersonateSelf` syscall: https://docs.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-impersonateself This syscall is used in conjunction with others to refer to the current running user. For example: ```go // This is the new...
failed to make osex.StartProcessWithLogon() work. can you provide _test or examples of usage? passing attrs as nil make validation fail. as i see it must use default ones. but default...
``` cm := execas.Command("notepad") cm.Username = "gola" cm.Password = "loga" err := cm.Start() if err != nil { fmt.Println("err", err.Error()) } ``` panics after start process https://github.com/itchio/ox/blob/32d876f09b55bb103381bf8bf41036f5dadd0172/syscallex/exec_windows.go#L254-L255 attr.Sys == nil...