windows-nt/Source/XPSP1/NT/ds/dns/dnsapi/test/leaktest.c

32 lines
493 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#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);
}