/*++ Copyright (c) 1996 Microsoft Corporation Module Name: tdelete.c Abstract: Test for cluster object creation APIs Author: John Vert (jvert) 3-May-1996 Revision History: --*/ #include "windows.h" #include "cluster.h" #include "stdio.h" #include "stdlib.h" LPWSTR ClusterName=NULL; BOOL DoGroup=FALSE; BOOL DoResource=FALSE; LPWSTR Name=NULL; CHAR UsageText[] = "TDELETE [-c cluster] type name\n" " cluster\tspecifies the name of the cluster to connect to\n" " type\t\teither \"group\" or \"resource\"\n" " name\t\tthe friendly name of the object\n"; void Usage( void ) { fprintf(stderr, UsageText); exit(1); } LPWSTR GetString( IN LPSTR String ) { LPWSTR wString; DWORD Length; Length = strlen(String)+1; wString = malloc(Length*sizeof(WCHAR)); mbstowcs(wString, String, Length); return(wString); } void ParseArgs( int argc, char *argv[] ) { int i; DWORD ArgsSeen=0; for (i=1;i