96 *pchTemp = OutPath[0] = 0;
98 for (
i = 0;
i < cchPath; ++
i)
100 if (pchTemp + 1 >= pchTempEnd)
109 *pchTemp++ =
Path[
i];
111 if (
i != cchPath - 1)
118 if (TempPath[0] && TempPath[1] ==
_T(
':') && !TempPath[2])
138 pchTemp = TempPath +
_tcslen(TempPath);
183 bLeaveAll = ((
c ==
options[2]) || (
c ==
_T(
'\3')));
206 WARN(
"Cannot allocate memory for q!\n");
215 WARN(
"Cannot reallocate memory for arg!\n");
223 (*arg)[++(*ac)] =
NULL;
242 WARN(
"Cannot allocate memory for dirpart!\n");
246 dirpart[pathend -
pattern + 1] =
_T(
'\0');
262 WARN(
"Cannot allocate memory for fullname!\n");
307 WARN(
"Cannot allocate memory for arg!\n");
331 bQuoted ^= (*
s ==
_T(
'\"'));
339 (handle_plus && (*
s ==
_T(
'+'))))
356 WARN(
"Cannot allocate memory for q!\n");
362 if (expand_wildcards && (
_T(
'/') != *
start) &&
406 WARN(
"Cannot allocate memory for arg!\n");
426 bQuoted ^= (*
s ==
_T(
'\"'));
436 WARN(
"Cannot allocate memory for q!\n");
528 SHORT iScreenWidth, iCursorY;
554 while (iScreenWidth-- > 0)
599 else if (*
p ==
_T(
'\03'))
613 cKey =
_totlower (ir.Event.KeyEvent.uChar.AsciiChar);
619 while ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_SHIFT) ||
620 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_MENU) ||
621 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_CONTROL));
626 if ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_ESCAPE) ||
627 ((ir.Event.KeyEvent.wVirtualKeyCode ==
'C') &&
664 else if (*
p ==
_T(
'\03'))
678 cKey =
_totlower (ir.Event.KeyEvent.uChar.AsciiChar);
682 while ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_SHIFT) ||
683 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_MENU) ||
684 (ir.Event.KeyEvent.wVirtualKeyCode ==
VK_CONTROL));
689 if ((ir.Event.KeyEvent.wVirtualKeyCode ==
VK_ESCAPE) ||
690 ((ir.Event.KeyEvent.wVirtualKeyCode ==
_T(
'C')) &&
PRTL_UNICODE_STRING_BUFFER Path
#define RC_STRING_MAX_SIZE
#define STRING_COPY_OPTION
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
VOID AddBreakHandler(VOID)
VOID RemoveBreakHandler(VOID)
VOID SetCursorXY(SHORT x, SHORT y)
VOID ConInKey(PINPUT_RECORD lpBuffer)
VOID GetScreenSize(PSHORT maxx, PSHORT maxy)
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
BOOL IsExistingFile(IN LPCTSTR pszPath)
LPTSTR _stpcpy(LPTSTR dest, LPCTSTR src)
INT FilePromptYN(UINT resID)
BOOL CheckCtrlBreak(INT mode)
LPTSTR * splitspace(LPTSTR s, LPINT args)
static BOOL expand(LPINT ac, LPTSTR **arg, LPCTSTR pattern)
VOID GetPathCase(IN LPCTSTR Path, OUT LPTSTR OutPath)
BOOL IsValidPathName(IN LPCTSTR pszPath)
BOOL add_entry(LPINT ac, LPTSTR **arg, LPCTSTR entry)
INT FilePromptYNA(UINT resID)
VOID StripQuotes(TCHAR *in)
BOOL __stdcall PagePrompt(PCON_PAGER Pager, DWORD Done, DWORD Total)
LPTSTR * split(LPTSTR s, LPINT args, BOOL expand_wildcards, BOOL handle_plus)
#define STRING_MISC_HELP1
#define STRING_CHOICE_OPTION
#define STRING_CANCEL_BATCH_FILE
#define cmd_realloc(ptr, size)
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindClose(HANDLE hFindFile)
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static VOID ConInString(LPWSTR lpInput, DWORD dwLength)
#define memcpy(s1, s2, n)
#define FILE_ATTRIBUTE_DIRECTORY
#define ConOutResPrintf(uID,...)
#define ConOutResPuts(uID)
union _KEY_EVENT_RECORD::@3281 uChar
#define INVALID_FILE_ATTRIBUTES
#define GetFileAttributes
#define SetCurrentDirectory
#define GetCurrentDirectory
#define LEFT_CTRL_PRESSED
#define RIGHT_CTRL_PRESSED