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.

31 lines
493 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. DWORD iter;
  15. PDNS_RECORD pRecord;
  16. system( "pause" );
  17. for ( iter = 0; iter < 10000; iter++ )
  18. {
  19. DnsQuery_A( "", 1, 0, NULL, &pRecord, NULL );
  20. DnsRecordListFree( pRecord, TRUE );
  21. }
  22. system( "pause" );
  23. return(0);
  24. }