120#define BufferSize 65536
168 if (szFileName[
_tcslen(szFileName) - 1] !=
_T(
'\\'))
176 (szFileName[
_tcslen(szFileName) - 2] ==
_T(
'\\') && szFileName[
_tcslen(szFileName) - 1] ==
_T(
'*')))
225 if (bExclusion)
continue;
296 if (dwFiles & 0x80000000)
302 pSearchPart =
_T(
"*");
306 if (pSearchPart !=
NULL)
316 pFilePart = &szFullPath[
_tcslen(szFullPath)];
317 if (*(pFilePart-1) !=
_T(
'\\'))
318 *pFilePart++ =
_T(
'\\');
340 _tcscat(pFilePart, pSearchPart);
343 if (dwFiles & 0x80000000)
368 DWORD dwAttrFlags = 0;
412 else if (ch ==
_T(
'P'))
416 else if (ch ==
_T(
'Q'))
420 else if (ch ==
_T(
'F'))
424 else if (ch ==
_T(
'S'))
428 else if (ch ==
_T(
'T'))
432 else if (ch ==
_T(
'W'))
436 else if (ch ==
_T(
'Y'))
440 else if (ch ==
_T(
'A'))
502 if (
args == nEvalArgs)
513 for (
i = 0;
i <
args && !(dwFiles & 0x80000000);
i++)
537 dwFiles &= 0x7fffffff;
static VOID ErrorMessage(_In_ DWORD dwErrorCode, _In_opt_ PCWSTR pszMsg,...)
#define RC_STRING_MAX_SIZE
VOID error_req_param_missing(VOID)
VOID error_invalid_parameter_format(PCTSTR s)
VOID error_sfile_not_found(PCTSTR s)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConOutPrintf(szStr,...)
#define ConErrResPrintf(uID,...)
#define STRING_DEL_ERROR6
#define STRING_DEL_ERROR7
#define STRING_DEL_ERROR5
#define STRING_DELETE_WIPE
static VOID freep(LPSTR *p)
static LPSTR * split(LPSTR s, LPINT args)
static TCHAR szDeleteWipe[RC_STRING_MAX_SIZE]
static BOOL RemoveFile(LPTSTR lpFileName, DWORD dwFlags, WIN32_FIND_DATA *f)
INT CommandDelete(LPTSTR param)
static VOID LoadStrings(VOID)
static DWORD DeleteFiles(LPTSTR FileName, DWORD *dwFlags, DWORD dwAttrFlags)
static TCHAR CMDPath[MAX_PATH]
static DWORD ProcessDirectory(LPTSTR FileName, DWORD *dwFlags, DWORD dwAttrFlags)
static BOOLEAN StringsLoaded
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
struct _FileName FileName
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
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
_Check_return_ int __cdecl rand(void)
#define FILE_FLAG_WRITE_THROUGH
#define FILE_ATTRIBUTE_READONLY
#define FILE_ATTRIBUTE_HIDDEN
#define FILE_ATTRIBUTE_SYSTEM
#define FILE_ATTRIBUTE_ARCHIVE
#define FILE_ATTRIBUTE_DIRECTORY
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
INT GetRootPath(IN LPCTSTR InPath, OUT LPTSTR OutPath, IN INT size)
#define ConOutResPrintf(uID,...)
INT FilePromptYNA(UINT resID)
struct _LARGE_INTEGER::@2302 u
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
DWORD WINAPI GetLastError(void)
#define SetFileAttributes
#define GetModuleFileName
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags