Pass blob pointers safely to ETW

This commit is contained in:
Kevin Parsons
2019-01-03 13:57:57 -08:00
parent b87cea3696
commit 37af28e005
3 changed files with 33 additions and 5 deletions
+15
View File
@@ -0,0 +1,15 @@
// +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
}