sensapi.h 910 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __SENSAPI_H__
  7. #define __SENSAPI_H__
  8. #include <_mingw_unicode.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define NETWORK_ALIVE_LAN 0x00000001
  13. #define NETWORK_ALIVE_WAN 0x00000002
  14. #define NETWORK_ALIVE_AOL 0x00000004
  15. typedef struct tagQOCINFO {
  16. DWORD dwSize;
  17. DWORD dwFlags;
  18. DWORD dwInSpeed;
  19. DWORD dwOutSpeed;
  20. } QOCINFO,*LPQOCINFO;
  21. #define IsDestinationReachable __MINGW_NAME_AW(IsDestinationReachable)
  22. WINBOOL WINAPI IsDestinationReachableA(LPCSTR lpszDestination,LPQOCINFO lpQOCInfo);
  23. WINBOOL WINAPI IsDestinationReachableW(LPCWSTR lpszDestination,LPQOCINFO lpQOCInfo);
  24. WINBOOL WINAPI IsNetworkAlive(LPDWORD lpdwFlags);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif