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.

55 lines
753 B

  1. /*++
  2. Copyright (c) 1989-2001 Microsoft Corporation
  3. Module Name:
  4. ping6.h
  5. Abstract:
  6. Author:
  7. Jiandong Ruan
  8. Revision History:
  9. --*/
  10. #ifndef __PING6_H__
  11. #define __PING6_H__
  12. #include <ntddip6.h>
  13. HANDLE __inline
  14. IcmpCreateFile6(
  15. VOID
  16. )
  17. {
  18. return CreateFileW(
  19. WIN_IPV6_DEVICE_NAME,
  20. 0,
  21. FILE_SHARE_READ | FILE_SHARE_WRITE,
  22. NULL,
  23. OPEN_EXISTING,
  24. 0,
  25. NULL
  26. );
  27. }
  28. BOOL __inline
  29. IcmpCloseHandle6(
  30. HANDLE Handle
  31. )
  32. {
  33. return CloseHandle(Handle);
  34. }
  35. BOOL
  36. IsReachable6(
  37. struct sockaddr_in6 *dstaddr,
  38. HANDLE Handle,
  39. BYTE *RcvBuffer,
  40. ULONG RcvSize
  41. );
  42. #endif