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
527 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 <dnssdk.h>
  8. _cdecl
  9. main(int argc, char **argv)
  10. {
  11. WCHAR usName[MAX_PATH];
  12. LONG cch;
  13. cch = MultiByteToWideChar(
  14. CP_ACP,
  15. 0L,
  16. argv[1],
  17. -1,
  18. usName,
  19. MAX_PATH
  20. );
  21. if ( argc == 2 )
  22. {
  23. DnsEnableAdapterDomainNameRegistration( usName );
  24. }
  25. return(0);
  26. }