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.
36 lines
584 B
36 lines
584 B
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <dnsapi.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 == 1 )
|
|
{
|
|
DnsEnableDynamicRegistration( NULL );
|
|
}
|
|
else
|
|
{
|
|
DnsEnableDynamicRegistration( usName );
|
|
}
|
|
|
|
return(0);
|
|
}
|
|
|
|
|