Source code of Windows XP (NT5)
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.

51 lines
806 B

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