home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / sensapi.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.3 KB  |  91 lines

  1. /*++
  2.  
  3. Copyright (c) 1997-1999 Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     sensapi.h
  8.  
  9. Abstract:
  10.  
  11.     Public header file for the SENS Connectivity APIs.
  12.  
  13. Author:
  14.  
  15.     Gopal Parupudi    <GopalP>
  16.  
  17. [Notes:]
  18.  
  19.     optional-notes
  20.  
  21. Revision History:
  22.  
  23.     GopalP          10/12/1997         Start.
  24.  
  25. --*/
  26.  
  27.  
  28. #ifndef __SENSAPI_H__
  29. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  30. #define __SENSAPI_H__
  31.  
  32. #if _MSC_VER > 1000
  33. #pragma once
  34. #endif
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40.  
  41. #define NETWORK_ALIVE_LAN   0x00000001
  42. #define NETWORK_ALIVE_WAN   0x00000002
  43. #define NETWORK_ALIVE_AOL   0x00000004
  44.  
  45.  
  46. typedef struct tagQOCINFO
  47. {
  48.     DWORD dwSize;
  49.     DWORD dwFlags;
  50.     DWORD dwInSpeed;
  51.     DWORD dwOutSpeed;
  52. } QOCINFO, *LPQOCINFO;
  53.  
  54.  
  55.  
  56. #ifdef UNICODE
  57. #define  IsDestinationReachable  IsDestinationReachableW
  58. #else
  59. #define  IsDestinationReachable  IsDestinationReachableA
  60. #endif // UNICODE
  61.  
  62.  
  63. #if !defined(__midl)
  64.  
  65. BOOL APIENTRY
  66. IsDestinationReachableA(
  67.     LPCSTR lpszDestination,
  68.     LPQOCINFO lpQOCInfo
  69.     );
  70.  
  71. BOOL APIENTRY
  72. IsDestinationReachableW(
  73.     LPCWSTR lpszDestination,
  74.     LPQOCINFO lpQOCInfo
  75.     );
  76.  
  77. BOOL APIENTRY
  78. IsNetworkAlive(
  79.     LPDWORD lpdwFlags
  80.     );
  81.  
  82. #endif // !defined(__midl)
  83.  
  84.  
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88.  
  89. #pragma option pop /*P_O_Pop*/
  90. #endif // __SENSAPI_H__
  91.