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.

32 lines
523 B

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <dnsapi.h>
  8. VOID
  9. PrintIpAddress (
  10. IN DWORD dwIpAddress );
  11. _cdecl
  12. main(int argc, char **argv)
  13. {
  14. DnsFlushResolverCache();
  15. return(0);
  16. }
  17. VOID
  18. PrintIpAddress (
  19. IN DWORD dwIpAddress )
  20. {
  21. printf( " %d.%d.%d.%d\n",
  22. ((BYTE *) &dwIpAddress)[0],
  23. ((BYTE *) &dwIpAddress)[1],
  24. ((BYTE *) &dwIpAddress)[2],
  25. ((BYTE *) &dwIpAddress)[3] );
  26. }