sys/windows
Jason A. Donenfeld 8097e1b27f windows: do not query library for inline functions
The GetCurrent*Token variety of functions are actually implemented as
inline functions in the header files of the SDK. Attempting to call out
to these as library functions is an error. This commit also adds a test
to ensure that these work as expected.

Change-Id: I105f1ca1a8936114fe61bc22188200c31f240a23
Reviewed-on: https://go-review.googlesource.com/c/sys/+/177840
Run-TryBot: Jason Donenfeld <Jason@zx2c4.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-05-22 04:47:17 +00:00
..
registry windows/registry: do not generate unaligned loads 2019-05-22 03:42:48 +00:00
svc windows: document new ProcessId field 2019-04-29 09:44:11 +00:00
aliases.go unix, windows: add type aliases to std syscall for Signal, Errno, SysProcAttr 2018-08-02 20:32:16 +00:00
asm_windows_386.s windows: address vet reports 2018-05-10 03:28:50 +00:00
asm_windows_amd64.s windows: address error reported by vet 2018-05-22 22:16:54 +00:00
asm_windows_arm.s windows: add support for windows/arm 2018-09-24 17:59:46 +00:00
dll_windows.go windows: use proper system directory path in fallback loader 2019-03-10 05:46:46 +00:00
env_windows.go windows: add token environment functions 2019-05-15 12:05:40 +00:00
eventlog.go windows/svc: add new package to help create and manage Windows services 2015-05-01 05:26:56 +00:00
exec_windows.go windows: fix race when allocating buffer for some windows syscalls 2015-04-09 00:47:30 +00:00
memory_windows.go all: single space after period 2017-10-25 20:39:07 +00:00
mkerrors.bash windows: add missing error constants 2019-04-12 21:31:03 +00:00
mkerrors.go windows: add "generate" build tag 2019-05-09 14:14:14 +00:00
mksyscall.go windows: add "generate" build tag 2019-05-09 14:14:14 +00:00
race.go all: single space after period 2017-10-25 20:39:07 +00:00
race0.go all: single space after period 2017-10-25 20:39:07 +00:00
security_windows.go windows: do not query library for inline functions 2019-05-22 04:47:17 +00:00
service.go windows: add missing service constants 2019-05-22 04:46:51 +00:00
str.go go.sys: fix imports to cgc/p/go.sys, add build tags 2014-08-12 22:59:00 -07:00
syscall.go plan9, unix, windows: add paragraph breaks in docs 2018-03-18 19:08:47 +00:00
syscall_test.go windows: use proper system directory path in fallback loader 2019-03-10 05:46:46 +00:00
syscall_windows.go windows: add token environment functions 2019-05-15 12:05:40 +00:00
syscall_windows_test.go windows: do not query library for inline functions 2019-05-22 04:47:17 +00:00
types_windows.go windows: add missing error constants 2019-04-12 21:31:03 +00:00
types_windows_386.go all: single space after period 2017-10-25 20:39:07 +00:00
types_windows_amd64.go all: single space after period 2017-10-25 20:39:07 +00:00
types_windows_arm.go windows: add support for windows/arm 2018-09-24 17:59:46 +00:00
zerrors_windows.go windows: add missing error constants 2019-04-12 21:31:03 +00:00
zsyscall_windows.go windows: do not query library for inline functions 2019-05-22 04:47:17 +00:00