bounds_windows_arm64.go 388 B

12345678
  1. package nativehost
  2. // Windows ARM64 passes a non-HFA 16-byte aggregate in two integer registers.
  3. func putControllerBounds(controller *winObject, bounds winRect) error {
  4. first := uint64(uint32(bounds.Left)) | uint64(uint32(bounds.Top))<<32
  5. second := uint64(uint32(bounds.Right)) | uint64(uint32(bounds.Bottom))<<32
  6. return hrError(controller.call(6, uintptr(first), uintptr(second)))
  7. }