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.

26 lines
882 B

  1. 1. Parse the first the 2 commands:
  2. (i.e. ADMIN SHOW
  3. VOLUME MANAGE
  4. etc.) Translate the 2 keywords into appropriate subinterface.
  5. 2. Next:
  6. take the rest of the commandline,
  7. and separate the switches from the regular arguments.
  8. Compile the switches into a list of 2 LPWSTRS:
  9. 1. Switch itself.
  10. 2. Argument to the switch (supplied by a colon separator)
  11. Compile the regular arguments into another array
  12. While compiling these - if double quotes appear, the string that is supplied
  13. should be considered as one token delimted by a matching double quote.
  14. Double quotes should be removed however when compiling it into the array.
  15. 3. Now validate the switches (duplicates should not be provided,
  16. arguments should be supplied etc.)
  17. 4. Now call the appropriate subinterface with the list of switches
  18. and the list of arguments.
  19. 5.