overlapped.hpp 950 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2016 Klemens D. Morgenstern
  3. *
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * See http://www.boost.org/LICENSE_1_0.txt
  6. */
  7. #ifndef BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_
  8. #define BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_
  9. #include <boost/winapi/basic_types.hpp>
  10. #include <boost/winapi/detail/header.hpp>
  11. #ifdef BOOST_HAS_PRAGMA_ONCE
  12. #pragma once
  13. #endif
  14. #if !defined( BOOST_USE_WINDOWS_H )
  15. extern "C" {
  16. struct _OVERLAPPED;
  17. }
  18. #endif
  19. namespace boost {
  20. namespace winapi {
  21. typedef struct BOOST_MAY_ALIAS _OVERLAPPED {
  22. ULONG_PTR_ Internal;
  23. ULONG_PTR_ InternalHigh;
  24. union {
  25. BOOST_WINAPI_DETAIL_EXTENSION struct {
  26. DWORD_ Offset;
  27. DWORD_ OffsetHigh;
  28. };
  29. PVOID_ Pointer;
  30. };
  31. HANDLE_ hEvent;
  32. } OVERLAPPED_, *LPOVERLAPPED_;
  33. } // namespace winapi
  34. } // namespace boost
  35. #include <boost/winapi/detail/footer.hpp>
  36. #endif // BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_