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.

72 lines
2.1 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. WsbGtArg.h
  5. Abstract:
  6. Header file for Process command line arguments
  7. Author:
  8. Greg White [gregw] 1-Mar-1997
  9. Revision History:
  10. --*/
  11. #if !defined(_WSBGTARG_) // expand header only once
  12. #define _WSBGTARG_
  13. typedef struct
  14. {
  15. int argType; // type of argument
  16. void *argValue; // argument value ptr
  17. char *argString; // argument identifier
  18. } WSB_COMMAND_LINE_ARGS;
  19. typedef struct
  20. {
  21. int argType; // type of argument
  22. void *argValue; // argument value ptr
  23. wchar_t *argString; // argument identifier
  24. } WSB_WCOMMAND_LINE_ARGS;
  25. #define WSB_ARG_FLAG 0 // argument is a flag
  26. #define WSB_ARG_IFLAG 1 // argument is an inverted flag
  27. #define WSB_ARG_CHAR 2 // argument has a char value
  28. #define WSB_ARG_NUM 3 // argument has a number value
  29. #define WSB_ARG_STR 4 // argument has a string value
  30. #define WSB_ARG_PROC 5 // argument needs procedure evaluaton
  31. #define EOS (char) 0x00 // end of string
  32. #define WEOS (wchar_t) 0x00 // wide end of string
  33. extern int WsbGetArgs (int argc, char **argv, WSB_COMMAND_LINE_ARGS *argdefs, int num_argdefs);
  34. extern void WsbGetEnvArgs (int *old_argc, char ***old_argv, char *env_var);
  35. extern void WsbSetArgUsage (char *msg);
  36. extern void WsbBldErrMsg (char *wOption, char *wErrMsg);
  37. extern void WsbArgUsage (char *msg);
  38. extern int WsbWGetArgs (int argc, wchar_t **argv, WSB_WCOMMAND_LINE_ARGS *argdefs, int num_argdefs);
  39. extern void WsbWGetEnvArgs (int *old_argc, wchar_t ***old_argv, char *env_var);
  40. extern void WsbWSetArgUsage (wchar_t *msg);
  41. extern void WsbWBldErrMsg (wchar_t *wOption, wchar_t *wErrMsg);
  42. extern void WsbWArgUsage (wchar_t *msg);
  43. #endif // end of header expansion