Alex Brainman
9f70ab9862
windows/mkwinsyscall: use global variable to avoid allocation in errnoErr
...
Change-Id: I6f089ea96bfbad6390c50a63e9d2fb290cc8654a
Reviewed-on: https://go-review.googlesource.com/c/sys/+/264578
Trust: Alex Brainman <alex.brainman@gmail.com >
Run-TryBot: Alex Brainman <alex.brainman@gmail.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Bryan C. Mills <bcmills@google.com >
2020-10-24 23:29:16 +00:00
Alex Brainman
0aaa271806
windows/mkwinsyscall: sort by dll names and dll function names
...
Otherwise generated file changes every time //sys lines are moved
around, or when mkwinsyscall command parameters are reordered.
Change-Id: Ie4bdbee2ba50f9cea36ec78ce9951c57bd5da8a7
Reviewed-on: https://go-review.googlesource.com/c/sys/+/260900
Trust: Alex Brainman <alex.brainman@gmail.com >
Run-TryBot: Alex Brainman <alex.brainman@gmail.com >
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2020-10-13 08:18:32 +00:00
Tobias Klauser
8014b7b116
windows: follow convention for generated code comment
...
Regenerated with go tip to get the generated code comment following the
convention (https://golang.org/s/generatedcode ).
Change-Id: Ie1365ecfa532b940bf7cfc8579c4cbda71cf7f76
Reviewed-on: https://go-review.googlesource.com/118817
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Reviewed-by: Alex Brainman <alex.brainman@gmail.com >
2018-06-15 09:36:15 +00:00
Alex Brainman
f5a6bd4305
windows/registry: add code to access remote pc registry
...
Introduce OpenRemoteKey function that opens some
root registry keys on remote computer.
Also add PERFORMANCE_DATA key, since it is one of
root keys accessible via OpenRemoteKey.
Change-Id: I738fdfee52a34acd4dc09ddb91fcf0e4c707bd83
Reviewed-on: https://go-review.googlesource.com/33814
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2016-12-04 22:43:27 +00:00
Alex Brainman
ca83bd2cb9
windows: run "go generate"
...
Change-Id: Ide01e409af85a5e2615ba647b44eda67bc14c07f
Reviewed-on: https://go-review.googlesource.com/33812
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2016-12-02 08:03:26 +00:00
Alex Brainman
042a8f53ce
windows: add NewLazySystemDLL and use it in zsyscall_windows.go
...
If we want new secure DLL approach to be adopted, we should make
conversion as simple as possible to explain and implement.
I think that replacing
syscall.NewLazyDLL(...) -> windows.NewLazySystemDLL(...)
is easier than
syscall.NewLazyDLL(...) -> &windows.LazyDLL{Name: ..., System: true}
So I propose we introduce convenience function NewLazySystemDLL.
$GOROOT/src/mksyscall_windows.go changes in the following CL.
Change-Id: If3432aff301c347cb355e4e837834696191b2219
Reviewed-on: https://go-review.googlesource.com/21592
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2016-04-06 06:33:47 +00:00
Brad Fitzpatrick
3dff6e19a5
windows: add LoadLibraryEx, add LazyDLL.System
...
Updates golang/go#14959
Change-Id: Ib91c359c3df919df0b30e584d38e56f79f3e3dc9
Reviewed-on: https://go-review.googlesource.com/21388
Reviewed-by: Russ Cox <rsc@golang.org >
Reviewed-by: Alex Brainman <alex.brainman@gmail.com >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
2016-04-02 00:33:28 +00:00
Daniel Johansson
98fc11432b
windows/registry: copy latest changes from internal/syscall/registry
...
This CL includes changes from:
https://golang.org/cl/13929
https://golang.org/cl/13854
Part of fixing https://golang.org/issue/12015
Change-Id: I62e00e165d97d2349c89a783aed7fcbe9e0abd34
Reviewed-on: https://go-review.googlesource.com/14016
Run-TryBot: Alex Brainman <alex.brainman@gmail.com >
Reviewed-by: Alex Brainman <alex.brainman@gmail.com >
2015-08-30 10:08:33 +00:00
Alex Brainman
e961698092
windows/registry: add new package to manipulate Windows registry
...
Change-Id: Ia7c3d6250c041b95aa43ca5ca2a92251c480ef77
Reviewed-on: https://go-review.googlesource.com/8843
Reviewed-by: Rob Pike <r@golang.org >
2015-04-15 07:18:44 +00:00