Leaked source code of windows server 2003
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.

58 lines
900 B

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. etestcmd.c
  5. Abstract:
  6. Shell app "etestcmd"
  7. Author:
  8. Revision History
  9. --*/
  10. #include "shell.h"
  11. EFI_STATUS
  12. InitializeExternalTestCommand (
  13. IN EFI_HANDLE ImageHandle,
  14. IN EFI_SYSTEM_TABLE *SystemTable
  15. );
  16. EFI_DRIVER_ENTRY_POINT(InitializeExternalTestCommand)
  17. EFI_STATUS
  18. InitializeExternalTestCommand (
  19. IN EFI_HANDLE ImageHandle,
  20. IN EFI_SYSTEM_TABLE *SystemTable
  21. )
  22. {
  23. CHAR16 **Argv;
  24. UINTN Argc;
  25. UINTN i;
  26. InitializeShellApplication (ImageHandle, SystemTable);
  27. /*
  28. * Get Argc and Argv.
  29. */
  30. Argv = SI->Argv;
  31. Argc = SI->Argc;
  32. /*
  33. * Display list of argumnents.
  34. */
  35. for(i=0;i<Argc;i++) {
  36. Print(L"Argv[%d] = %s\n",i,Argv[i]);
  37. }
  38. return EFI_SUCCESS;
  39. }