github.com/searKing/golang/go@v1.2.117/os/signal/cgo/include/boost/winapi/overlapped.hpp (about)

     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  
     8  #ifndef BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_
     9  #define BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_
    10  
    11  #include <boost/winapi/basic_types.hpp>
    12  #include <boost/winapi/detail/header.hpp>
    13  
    14  #ifdef BOOST_HAS_PRAGMA_ONCE
    15  #pragma once
    16  #endif
    17  
    18  #if !defined( BOOST_USE_WINDOWS_H )
    19  extern "C" {
    20  struct _OVERLAPPED;
    21  }
    22  #endif
    23  
    24  namespace boost {
    25  namespace winapi {
    26  
    27  typedef struct BOOST_MAY_ALIAS _OVERLAPPED {
    28      ULONG_PTR_ Internal;
    29      ULONG_PTR_ InternalHigh;
    30      union {
    31          BOOST_WINAPI_DETAIL_EXTENSION struct {
    32              DWORD_ Offset;
    33              DWORD_ OffsetHigh;
    34          };
    35          PVOID_  Pointer;
    36      };
    37      HANDLE_    hEvent;
    38  } OVERLAPPED_, *LPOVERLAPPED_;
    39  
    40  } // namespace winapi
    41  } // namespace boost
    42  
    43  #include <boost/winapi/detail/footer.hpp>
    44  
    45  #endif // BOOST_WINAPI_OVERLAPPED_HPP_INCLUDED_