- Timestamp:
- Dec 28, 2007 5:41:03 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27018
- Location:
- trunk/src/VBox/Additions/WINNT/VBoxControl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxControl/Makefile.kmk
r5999 r6215 29 29 VBoxControl.rc 30 30 31 # VBoxControl.cpp uses VBOX_SVN_REV. 32 VBoxControl.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV) 33 VBoxControl.cpp_DEPS = $(VBOX_SVN_REV_KMK) 34 31 35 include $(PATH_KBUILD)/subfooter.kmk 32 36 -
trunk/src/VBox/Additions/WINNT/VBoxControl/VBoxControl.cpp
r5999 r6215 19 19 #include <malloc.h> 20 20 21 #include <VBox/VBoxGuest.h> 22 #include <VBox/version.h> 23 21 24 void printHelp() 22 25 { 23 printf("VBoxControl getvideoacceleration\n" 26 printf("VBoxControl getversion\n" 27 "\n" 28 "VBoxControl getvideoacceleration\n" 24 29 "\n" 25 30 "VBoxControl setvideoacceleration <on|off>\n" … … 32 37 "\n" 33 38 "VBoxControl setvideomode <width> <height> <bpp> <screen>\n"); 39 } 40 41 void printVersion() 42 { 43 printf("%d.%d.%dr%d\n", VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR, VBOX_VERSION_BUILD, VBOX_SVN_REV); 34 44 } 35 45 … … 775 785 } 776 786 787 /* todo: add better / stable command line handling here! */ 788 777 789 /* determine which command */ 778 if (strcmp(argv[1], "getvideoacceleration") == 0) 790 if ((stricmp(argv[1], "getversion") == 0) || 791 (stricmp(argv[1], "-v") == 0) || 792 (stricmp(argv[1], "--version") == 0) || 793 (stricmp(argv[1], "-version") == 0)) 794 { 795 printVersion(); 796 } 797 else if (stricmp(argv[1], "getvideoacceleration") == 0) 779 798 { 780 799 handleGetVideoAcceleration(argc - 2, &argv[2]); 781 800 } 782 else if (str cmp(argv[1], "setvideoacceleration") == 0)801 else if (stricmp(argv[1], "setvideoacceleration") == 0) 783 802 { 784 803 handleSetVideoAcceleration(argc - 2, &argv[2]); 785 804 } 786 else if (str cmp(argv[1], "listcustommodes") == 0)805 else if (stricmp(argv[1], "listcustommodes") == 0) 787 806 { 788 807 handleListCustomModes(argc - 2, &argv[2]); 789 808 } 790 else if (str cmp(argv[1], "addcustommode") == 0)809 else if (stricmp(argv[1], "addcustommode") == 0) 791 810 { 792 811 handleAddCustomMode(argc - 2, &argv[2]); 793 812 } 794 else if (str cmp(argv[1], "removecustommode") == 0)813 else if (stricmp(argv[1], "removecustommode") == 0) 795 814 { 796 815 handleRemoveCustomMode(argc - 2, &argv[2]); 797 816 } 798 else if (str cmp(argv[1], "setvideomode") == 0)817 else if (stricmp(argv[1], "setvideomode") == 0) 799 818 { 800 819 handleSetVideoMode(argc - 2, &argv[2]);
Note:
See TracChangeset
for help on using the changeset viewer.