Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
syscall: add Windows Process Creation Flag constants #13754
I want to create process as "hidden" in windows , and i found os.ProcAttr.Sys.HideWindow is not useful.
Unfortunately, there are not CREATE_NO_WINDOW in syscall/ztypes_windows.go.
hence, if i want create a daemon process in windows , and which won't be closed while the console quit,
We're missing some Windows constants from https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx in the syscall package.
Maybe they belong in x/syscall/windows instead.
I don't see a problem here. You code works fine as expected. Maybe change it to:
so you understand what it does next time you have to look at it. There are many consts defined in Windows .h files. We cannot have them all include in Go standard packages. Why should we include CREATE_NO_WINDOW and not others?