
Some minor improvements, but biggest for here is ErrPipeListenerClosed is no longer an errors.New where the string matches the text of the now exported net.ErrClosed in the stdlib, but is just assigned to net.ErrClosed directly. This should allow us to get rid of the string check for "use of closed network connection" here now.. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
18 lines
407 B
Go
18 lines
407 B
Go
//go:build windows && (amd64 || arm64)
|
|
// +build windows
|
|
// +build amd64 arm64
|
|
|
|
package etw
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// byteptr64 defines a struct containing a pointer. The struct is guaranteed to
|
|
// be 64 bits, regardless of the actual size of a pointer on the platform. This
|
|
// is intended for use with certain Windows APIs that expect a pointer as a
|
|
// ULONGLONG.
|
|
type ptr64 struct {
|
|
ptr unsafe.Pointer
|
|
}
|