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.

25 lines
857 B

  1. //--------------------------------------------------------------------
  2. // PingLib - header
  3. // Copyright (C) Microsoft Corporation, 1999
  4. //
  5. // Created by: Louis Thomas (louisth), 10-8-99
  6. //
  7. // Various ways of pinging a server
  8. //
  9. #ifndef PING_LIB_H
  10. #define PING_LIB_H
  11. // forward declarations
  12. struct NtpPacket;
  13. struct NtTimeEpoch;
  14. HRESULT MyIcmpPing(in_addr * piaTarget, DWORD dwTimeout, DWORD * pdwResponseTime);
  15. HRESULT MyNtpPing(in_addr * piaTarget, DWORD dwTimeout, NtpPacket * pnpPacket, NtTimeEpoch * pteDestinationTimestamp);
  16. HRESULT MyGetIpAddrs(const WCHAR * wszDnsName, in_addr ** prgiaLocalIpAddrs, in_addr ** prgiaRemoteIpAddrs, unsigned int *pnIpAddrs, bool * pbRetry);
  17. HRESULT OpenSocketLayer(void);
  18. HRESULT CloseSocketLayer(void);
  19. HRESULT GetSystemErrorString(HRESULT hrIn, WCHAR ** pwszError);
  20. #endif //PING_LIB_H