//
// main.cpp
//
// Wrapper for the lockout policy function
//
#include "ChkLock.h"
int wmain( int argc, wchar_t *argv[], wchar_t envp[] )
{
int iReturnVal;
// Initialize variables
iReturnVal = 0;
// Tell everyone hi
cout<<"\n"<<APP_NAME<<" version "<<APP_VERSION<<" by "<<APP_AUTHOR<<"\n"<<endl;
if (argc != 2)
{
cout<<"Usage: "<<APP_NAME<<" "<<ARG_TARGET<<endl;
cout<<" Gathers user account policy information from the target host."<<endl;
cout<<" NOTE: you must have an existing null NetBIOS connection, so..."<<endl;
cout<<" net use "<<ARG_TARGET<<"\\ipc$ /u:\"\" \"\""<<endl;
} else {
iReturnVal = (int)ChkLock( argv[ 1 ] );
}
// All done
return( iReturnVal );
} // (main)
| Back to the ChkLock source code page |
This page is maintained by Peyton Engel.
Last updated 13 October 2000