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.

34 lines
810 B

  1. /*******************************************************************************
  2. * SETARGVW.h
  3. *
  4. * argc / argv routines
  5. *
  6. * Copyright Citrix Systems Inc. 1995
  7. * Copyright (C) 1997-1999 Microsoft Corp.
  8. *
  9. * $Author: butchd $
  10. ******************************************************************************/
  11. /*
  12. * Argument structure
  13. * Caller should initialize using args_init(). Use args_reset() to
  14. * reset values, args_free() to free memory allocated by args_init().
  15. */
  16. struct arg_data {
  17. int argc;
  18. WCHAR **argv;
  19. int argvlen;
  20. WCHAR **argvp;
  21. int buflen;
  22. WCHAR *buf;
  23. WCHAR *bufptr;
  24. WCHAR *bufend;
  25. };
  26. typedef struct arg_data ARGS;
  27. /*
  28. * minimum size for argv/string buffer allocation
  29. */
  30. #define MIN_ARG_ALLOC 128
  31. #define MIN_BUF_ALLOC 1024