ReactOS  0.4.15-dev-4853-g3a72a52
available.cpp File Reference
#include "rapps.h"
#include "available.h"
#include "misc.h"
#include "dialogs.h"
Include dependency graph for available.cpp:

Go to the source code of this file.

Functions

static void DeleteWithWildcard (const CStringW &DirWithFilter)
 

Function Documentation

◆ DeleteWithWildcard()

static void DeleteWithWildcard ( const CStringW DirWithFilter)
static

Definition at line 355 of file available.cpp.

356 {
358  WIN32_FIND_DATAW FindFileData;
359 
360  hFind = FindFirstFileW(DirWithFilter, &FindFileData);
361 
362  if (hFind == INVALID_HANDLE_VALUE)
363  return;
364 
365  CStringW Dir = DirWithFilter;
367  Dir.ReleaseBuffer();
368 
369  do
370  {
371  ATL::CStringW szTmp = Dir + L"\\";
372  szTmp += FindFileData.cFileName;
373 
374  if (!(FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
375  {
377  }
378  } while (FindNextFileW(hFind, &FindFileData) != 0);
379  FindClose(hFind);
380 }
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
Definition: find.c:382
BOOL WINAPI PathRemoveFileSpecW(LPWSTR lpszPath)
Definition: path.c:629
#define INVALID_HANDLE_VALUE
Definition: compat.h:590
char szTmp[518]
#define L(x)
Definition: ntvdm.h:50
void ReleaseBuffer(_In_ int nNewLength=-1)
Definition: atlsimpstr.h:372
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
Definition: delete.c:39
#define FILE_ATTRIBUTE_DIRECTORY
Definition: nt_native.h:705
#define MAX_PATH
Definition: compat.h:34
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
Definition: find.c:320
BOOL WINAPI FindClose(HANDLE hFindFile)
Definition: find.c:502

Referenced by CAvailableApps::DeleteCurrentAppsDB().