ReactOS  0.4.15-dev-1171-gab82533
available.cpp File Reference
#include "rapps.h"
#include "available.h"
#include "misc.h"
#include "dialogs.h"
#include <atlcoll.h>
#include <atlsimpcoll.h>
#include <atlstr.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 359 of file available.cpp.

360 {
362  WIN32_FIND_DATAW FindFileData;
363 
364  hFind = FindFirstFileW(DirWithFilter, &FindFileData);
365 
366  if (hFind == INVALID_HANDLE_VALUE)
367  return;
368 
369  CStringW Dir = DirWithFilter;
371  Dir.ReleaseBuffer();
372 
373  do
374  {
375  ATL::CStringW szTmp = Dir + L"\\";
376  szTmp += FindFileData.cFileName;
377 
378  if (!(FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY))
379  {
381  }
382  } while (FindNextFileW(hFind, &FindFileData) != 0);
383  FindClose(hFind);
384 }
BOOL WINAPI FindNextFileW(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAW lpFindFileData)
Definition: find.c:382
BOOL WINAPI PathRemoveFileSpecW(LPWSTR lpszPath)
Definition: path.c:624
#define INVALID_HANDLE_VALUE
Definition: compat.h:479
char szTmp[518]
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
static const WCHAR L[]
Definition: oid.c:1250
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().