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.

24 lines
709 B

  1. //--------------------------------------------------------------------
  2. // CmdArgs - header
  3. // Copyright (C) Microsoft Corporation, 2001
  4. //
  5. // Created by: Duncan Bryce (duncanb), 11-12-2001
  6. //
  7. // stuff to deal with command line arguments
  8. //
  9. #ifndef CMD_ARGS_H
  10. #define CMD_ARGS_H
  11. struct CmdArgs {
  12. WCHAR ** rgwszArgs;
  13. unsigned int nArgs;
  14. unsigned int nNextArg;
  15. };
  16. bool CheckNextArg(IN CmdArgs * pca, IN WCHAR * wszTag, OUT WCHAR ** pwszParam);
  17. bool FindArg(IN CmdArgs * pca, IN WCHAR * wszTag, OUT WCHAR ** pwszParam, OUT unsigned int * pnIndex);
  18. void MarkArgUsed(IN CmdArgs * pca, IN unsigned int nIndex);
  19. HRESULT VerifyAllArgsUsed(IN CmdArgs * pca);
  20. #endif //CMD_ARGS_H