mirror of https://github.com/tongzx/nt5src
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
31 lines
493 B
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <dnsapi.h>
|
|
|
|
VOID
|
|
PrintIpAddress (
|
|
IN DWORD dwIpAddress );
|
|
|
|
_cdecl
|
|
main(int argc, char **argv)
|
|
{
|
|
DWORD iter;
|
|
PDNS_RECORD pRecord;
|
|
|
|
system( "pause" );
|
|
|
|
for ( iter = 0; iter < 10000; iter++ )
|
|
{
|
|
DnsQuery_A( "", 1, 0, NULL, &pRecord, NULL );
|
|
DnsRecordListFree( pRecord, TRUE );
|
|
}
|
|
|
|
system( "pause" );
|
|
|
|
return(0);
|
|
}
|
|
|