Source code of Windows XP (NT5)
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.

34 lines
755 B

  1. // diag.h
  2. //
  3. // API calls for detecting windows status.
  4. //
  5. #ifdef _GLOBALS
  6. #define Extern
  7. #define EQ(x) = (x)
  8. #else
  9. #define Extern extern
  10. #define EQ(x)
  11. #endif
  12. //#define EXPORT __declspec (dllexport)
  13. void EXPORT DiagInit();
  14. void EXPORT DiagShutdown();
  15. class TEST_INFO
  16. {
  17. public:
  18. TEST_INFO()
  19. { hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
  20. }
  21. IN HANDLE hEvent; // triggered when call completes
  22. IN CHost host;
  23. OUT DWORD dwAdditionalInfo;
  24. OUT DWORD dwErr;
  25. OUT double dTimeDelta; // how long it tooks
  26. OUT COutput output;
  27. };
  28. BOOL EXPORT CheckNameLookup(TEST_INFO * lpInfo);
  29. BOOL EXPORT CheckPing(TEST_INFO * lpInfo);
  30. BOOL EXPORT CheckServerPort(TEST_INFO * lpInfo);
  31. void InitOLE();