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

33 lines
528 B
C
Raw Permalink 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 <dnssdk.h>
_cdecl
main(int argc, char **argv)
{
WCHAR usName[MAX_PATH];
LONG cch;
cch = MultiByteToWideChar(
CP_ACP,
0L,
argv[1],
-1,
usName,
MAX_PATH
);
if ( argc == 2 )
{
DnsDisableAdapterDomainNameRegistration( usName );
}
return(0);
}