00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
#include <nt.h>
00022 
#include <ntrtl.h>
00023 
#include <nturtl.h>
00024 
#include <ntsm.h>
00025 
00026 
#include <string.h>
00027 
00028 
NTSTATUS
00029 main(
00030     IN 
int argc,
00031     IN 
char *argv[],
00032     IN 
char *envp[],
00033     IN ULONG DebugParameter OPTIONAL
00034     )
00035 {
00036     PCH InitialCommandLine = 
NULL;
00037     
CHAR Buffer[ 256 ];
00038 
00039     
if (argc-- > 1) {
00040         InitialCommandLine = 
Buffer;
00041         *
Buffer = 
'\0';
00042         
while (argc--) {
00043             strcat( 
Buffer, *++argv );
00044             strcat( 
Buffer, 
" " );
00045             }
00046         }
00047 
00048     RtlCommandLineInterpreter( 
"UCLI> ", envp, InitialCommandLine );
00049 
00050     
return( STATUS_SUCCESS );
00051 }