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

/*****************************************************************************
* EXPAND.H
*
* Copyright (C) Citrix Systems Inc. 1990, 1992
* Copyright (C) 1997-1999 Microsoft Corp.
*
* Author: Kurt Perry
* Ann Mizell
****************************************************************************/
/*
* Argument structure
* Used by expand_path routine to build argument list.
* Caller should initialize using args_init(). Use args_reset() to
* reset values, args_free() to free memory allocated by args_init().
*/
struct arg_data {
int argc;
WCHAR **argv;
WCHAR **argvp;
int maxargc;
int maxargs;
WCHAR *buf;
WCHAR *bufptr;
WCHAR *bufend;
};
typedef struct arg_data ARGS;
/*
* max size of segment to allocate for pathname storage
*/
#define MAX_ARG_ALLOC 10*1024-20
extern void args_init(ARGS *, int);
extern void args_trunc(ARGS *);
extern void args_reset(ARGS *);
extern void args_free(ARGS *);
extern int expand_path(WCHAR *, unsigned short, ARGS *);
extern int unix_match(WCHAR *, WCHAR *);