ptr64_32.go 411 B

123456789101112131415161718
  1. //go:build windows && (386 || arm)
  2. // +build windows
  3. // +build 386 arm
  4. package etw
  5. import (
  6. "unsafe"
  7. )
  8. // byteptr64 defines a struct containing a pointer. The struct is guaranteed to
  9. // be 64 bits, regardless of the actual size of a pointer on the platform. This
  10. // is intended for use with certain Windows APIs that expect a pointer as a
  11. // ULONGLONG.
  12. type ptr64 struct {
  13. ptr unsafe.Pointer
  14. _ uint32
  15. }