blob: 8b859b717c09928c92fb0d5c9c3bcd792ecba6bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
ucli.c
Abstract:
Test program for the NT OS User Mode Runtime Library (URTL)
Author:
Steve Wood (stevewo) 18-Aug-1989
Revision History:
--*/
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <ntsm.h>
#include <string.h>
NTSTATUS
main(
IN int argc,
IN char *argv[],
IN char *envp[],
IN ULONG DebugParameter OPTIONAL
)
{
PCH InitialCommandLine = NULL;
CHAR Buffer[ 256 ];
if (argc-- > 1) {
InitialCommandLine = Buffer;
*Buffer = '\0';
while (argc--) {
strcat( Buffer, *++argv );
strcat( Buffer, " " );
}
}
RtlCommandLineInterpreter( "UCLI> ", envp, InitialCommandLine );
return( STATUS_SUCCESS );
}
|