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.

42 lines
1.1 KiB

  1. /*****************************************************************************
  2. * EXPAND.H
  3. *
  4. * Copyright Citrix Systems Inc. 1990, 1992
  5. * Copyright (C) 1997-1999 Microsoft Corp.
  6. *
  7. * Author: Kurt Perry
  8. * Ann Mizell
  9. ****************************************************************************/
  10. /*
  11. * Argument structure
  12. * Used by expand_path routine to build argument list.
  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. WCHAR **argvp;
  20. int maxargc;
  21. int maxargs;
  22. WCHAR *buf;
  23. WCHAR *bufptr;
  24. WCHAR *bufend;
  25. };
  26. typedef struct arg_data ARGS;
  27. /*
  28. * max size of segment to allocate for pathname storage
  29. */
  30. #define MAX_ARG_ALLOC 10*1024-20
  31. extern void args_init(ARGS *, int);
  32. extern void args_trunc(ARGS *);
  33. extern void args_reset(ARGS *);
  34. extern void args_free(ARGS *);
  35. extern int expand_path(WCHAR *, unsigned short, ARGS *);
  36. extern int unix_match(WCHAR *, WCHAR *);