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.

85 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. ver.c
  5. Abstract:
  6. Shell app "ver"
  7. Revision History
  8. --*/
  9. #include "shell.h"
  10. #include "ver.h"
  11. /*
  12. *
  13. */
  14. EFI_STATUS
  15. InitializeVer (
  16. IN EFI_HANDLE ImageHandle,
  17. IN EFI_SYSTEM_TABLE *SystemTable
  18. );
  19. /*
  20. *
  21. */
  22. EFI_DRIVER_ENTRY_POINT(InitializeVer)
  23. EFI_STATUS
  24. InitializeVer (
  25. IN EFI_HANDLE ImageHandle,
  26. IN EFI_SYSTEM_TABLE *SystemTable
  27. )
  28. {
  29. /*
  30. * Check to see if the app is to install as a "internal command"
  31. * to the shell
  32. */
  33. InstallInternalShellCommand (
  34. ImageHandle, SystemTable, InitializeVer,
  35. L"ver", /* command */
  36. L"ver", /* command syntax */
  37. L"Displays version info", /* 1 line descriptor */
  38. NULL /* command help page */
  39. );
  40. /*
  41. * We are no being installed as an internal command driver, initialize
  42. * as an nshell app and run
  43. */
  44. InitializeShellApplication (ImageHandle, SystemTable);
  45. /*
  46. *
  47. */
  48. Print(L"EFI Specification Revision %d.%d\n",ST->Hdr.Revision>>16,ST->Hdr.Revision&0xffff);
  49. Print(L" EFI Vendor = %s\n", ST->FirmwareVendor);
  50. Print(L" EFI Revision = %d.%d\n", ST->FirmwareRevision >> 16, ST->FirmwareRevision & 0xffff);
  51. /*
  52. * Display additional version info depending on processor type
  53. */
  54. DisplayExtendedVersionInfo(ImageHandle,SystemTable);
  55. /*
  56. * Done
  57. */
  58. return EFI_SUCCESS;
  59. }