NativeOverlapped.cs 849 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // System.Threading.NativeOverlapped.cs
  3. //
  4. // Author:
  5. // Dick Porter ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. using System.Runtime.InteropServices;
  10. namespace System.Threading
  11. {
  12. public struct NativeOverlapped {
  13. public int EventHandle;
  14. public int InternalHigh;
  15. public int InternalLow;
  16. public int OffsetHigh;
  17. public int OffsetLow;
  18. // (fields disappeared beta2 -> 1.0)
  19. // public GCHandle ReservedClassLib;
  20. // public int ReservedCOR1;
  21. // public GCHandle ReservedCOR2;
  22. // P.S. (Gonzalo): try this:
  23. // Console.WriteLine (Marshal.SizeOf (typeof (NativeOverlapped)));
  24. //
  25. // And you'll get a nice 36. So probably those fields are out there but are not public.
  26. // So I'm adding some internal fields that are used in the runtime
  27. internal int Handle1;
  28. internal int Handle2;
  29. }
  30. }