Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.3 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. sensapi.h
  5. Abstract:
  6. Public header file for the SENS Connectivity APIs.
  7. Author:
  8. Gopal Parupudi <GopalP>
  9. [Notes:]
  10. optional-notes
  11. Revision History:
  12. GopalP 10/12/1997 Start.
  13. --*/
  14. #ifndef __SENSAPI_H__
  15. #define __SENSAPI_H__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. #define NETWORK_ALIVE_LAN 0x00000001
  23. #define NETWORK_ALIVE_WAN 0x00000002
  24. #define NETWORK_ALIVE_AOL 0x00000004
  25. typedef struct tagQOCINFO
  26. {
  27. DWORD dwSize;
  28. DWORD dwFlags;
  29. DWORD dwInSpeed;
  30. DWORD dwOutSpeed;
  31. } QOCINFO, *LPQOCINFO;
  32. #ifdef UNICODE
  33. #define IsDestinationReachable IsDestinationReachableW
  34. #else
  35. #define IsDestinationReachable IsDestinationReachableA
  36. #endif // UNICODE
  37. #if !defined(__midl)
  38. BOOL APIENTRY
  39. IsDestinationReachableA(
  40. LPCSTR lpszDestination,
  41. LPQOCINFO lpQOCInfo
  42. );
  43. BOOL APIENTRY
  44. IsDestinationReachableW(
  45. LPCWSTR lpszDestination,
  46. LPQOCINFO lpQOCInfo
  47. );
  48. BOOL APIENTRY
  49. IsNetworkAlive(
  50. LPDWORD lpdwFlags
  51. );
  52. #endif // !defined(__midl)
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56. #endif // __SENSAPI_H__