TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Directory.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* Directory.h Copyright (c) Ladislav Zezula 2015 */
3 /*---------------------------------------------------------------------------*/
4 /* Directory functions for CascLib */
5 /*---------------------------------------------------------------------------*/
6 /* Date Ver Who Comment */
7 /* -------- ---- --- ------- */
8 /* 30.10.15 1.00 Lad The first version of Directory.h */
9 /*****************************************************************************/
10 
11 #ifndef __DIRECTORY_H__
12 #define __DIRECTORY_H__
13 
14 //-----------------------------------------------------------------------------
15 // Scanning a directory
16 
17 typedef bool (*INDEX_FILE_FOUND)(const TCHAR * szFileName, PDWORD IndexArray, PDWORD OldIndexArray, void * pvContext);
18 
19 bool DirectoryExists(const TCHAR * szDirectory);
20 
22  const TCHAR * szIndexPath,
23  INDEX_FILE_FOUND pfnOnFileFound,
24  PDWORD IndexArray,
25  PDWORD OldIndexArray,
26  void * pvContext
27  );
28 
29 #endif // __DIRECTORY_H__
DWORD * PDWORD
Definition: CascPort.h:151
bool(* INDEX_FILE_FOUND)(const TCHAR *szFileName, PDWORD IndexArray, PDWORD OldIndexArray, void *pvContext)
Definition: Directory.h:17
char TCHAR
Definition: CascPort.h:148
#define bool
Definition: CascPort.h:16
int ScanIndexDirectory(const TCHAR *szIndexPath, INDEX_FILE_FOUND pfnOnFileFound, PDWORD IndexArray, PDWORD OldIndexArray, void *pvContext)
Definition: Directory.cpp:41
bool DirectoryExists(const TCHAR *szDirectory)
Definition: Directory.cpp:18