safearray.go 638 B

123456789101112131415161718192021222324252627
  1. // Package is meant to retrieve and process safe array data returned from COM.
  2. package ole
  3. // SafeArrayBound defines the SafeArray boundaries.
  4. type SafeArrayBound struct {
  5. Elements uint32
  6. LowerBound int32
  7. }
  8. // SafeArray is how COM handles arrays.
  9. type SafeArray struct {
  10. Dimensions uint16
  11. FeaturesFlag uint16
  12. ElementsSize uint32
  13. LocksAmount uint32
  14. Data uint32
  15. Bounds [16]byte
  16. }
  17. // SAFEARRAY is obsolete, exists for backwards compatibility.
  18. // Use SafeArray
  19. type SAFEARRAY SafeArray
  20. // SAFEARRAYBOUND is obsolete, exists for backwards compatibility.
  21. // Use SafeArrayBound
  22. type SAFEARRAYBOUND SafeArrayBound