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.

36 lines
863 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. #include "..\dnslib.h"
  9. _cdecl
  10. main(int argc, char **argv)
  11. {
  12. PDNS_RECORD pRRSet1 = NULL;
  13. PDNS_RECORD pRRSet2 = NULL;
  14. Dns_StartDebug( DNS_DBG_CONSOLE, NULL, NULL, NULL, 0 );
  15. pRRSet1 = Dns_RecordBuild_A( NULL,
  16. argv[1],
  17. (WORD) strtoul( argv[2], NULL, 10 ),
  18. 0,
  19. 0,
  20. argc - 3,
  21. &argv[3] );
  22. pRRSet2 = Dns_RecordCopyEx( pRRSet1, DnsCharSetUtf8, DnsCharSetUtf8 );
  23. Dns_RecordCompare( pRRSet1, pRRSet2 );
  24. DnsDbg_Record( "",
  25. pRRSet2 );
  26. return(0);
  27. }