| 1 |  | 
|---|
| 2 | /*********************************************************************** | 
|---|
| 3 |  | 
|---|
| 4 | $Id: filldir.h 1402 2009-03-14 17:17:59Z gyoung $ | 
|---|
| 5 |  | 
|---|
| 6 | filldir.c definitions | 
|---|
| 7 |  | 
|---|
| 8 | Copyright (c) 1993-98 M. Kimes | 
|---|
| 9 | Copyright (c) 2001, 2008 Steven H. Levine | 
|---|
| 10 |  | 
|---|
| 11 | 05 Jan 08 SHL Split from fm3dll.h | 
|---|
| 12 | 25 Dec 08 GKY Add ProcessDirectoryThread to allow optional recursive drive scan at startup. | 
|---|
| 13 | 08 Mar 09 GKY Additional strings move to PCSZs | 
|---|
| 14 |  | 
|---|
| 15 | ***********************************************************************/ | 
|---|
| 16 |  | 
|---|
| 17 | #if !defined(FILLDIR_H) | 
|---|
| 18 |  | 
|---|
| 19 | #define FILLDIR_H | 
|---|
| 20 |  | 
|---|
| 21 | #if !defined(OS2_INCLUDED) | 
|---|
| 22 | #define INCL_WINSTDCNR                  // dircnrs.h | 
|---|
| 23 | #include <os2.h> | 
|---|
| 24 | #else | 
|---|
| 25 | #if !defined(INCL_WINSTDCNR) | 
|---|
| 26 | #error INCL_WINSTDCNR required | 
|---|
| 27 | #endif | 
|---|
| 28 | #endif | 
|---|
| 29 |  | 
|---|
| 30 | #include "dircnrs.h"                    // DIRCNRDATA | 
|---|
| 31 |  | 
|---|
| 32 | VOID EmptyCnr(HWND hwnd); | 
|---|
| 33 | const PSZ FileAttrToString(ULONG fileAttr); | 
|---|
| 34 | VOID FillDirCnr(HWND hwndCnr, CHAR *pszDirectory, DIRCNRDATA *pdcd, | 
|---|
| 35 | PULONGLONG pullBytes); | 
|---|
| 36 | VOID FillTreeCnr(HWND hwndCnr, HWND hwndParent); | 
|---|
| 37 | VOID ProcessDirectory(const HWND hwndCnr, const PCNRITEM pciParent, | 
|---|
| 38 | const CHAR *szDirBase, const BOOL filestoo, | 
|---|
| 39 | const BOOL recurse, const BOOL partial, | 
|---|
| 40 | CHAR *stopflag, DIRCNRDATA *pdcd, | 
|---|
| 41 | PULONG pullTotalFiles, PULONGLONG pullTotalBytes); | 
|---|
| 42 | ULONGLONG FillInRecordFromFFB(HWND hwndCnr, PCNRITEM pci, | 
|---|
| 43 | const PSZ pszDirectory, | 
|---|
| 44 | const PFILEFINDBUF4L pffb, const BOOL partial, | 
|---|
| 45 | DIRCNRDATA *pdcd); | 
|---|
| 46 | ULONGLONG FillInRecordFromFSA(HWND hwndCnr, PCNRITEM pci, | 
|---|
| 47 | const PSZ pszFileName, const PFILESTATUS4L pfsa4, | 
|---|
| 48 | const BOOL partial, DIRCNRDATA *pdcd); | 
|---|
| 49 | VOID FreeCnrItem(HWND hwnd, PCNRITEM pci); | 
|---|
| 50 | VOID FreeCnrItemList(HWND hwnd, PCNRITEM pciFirst); | 
|---|
| 51 | VOID FreeCnrItemData(PCNRITEM pci); | 
|---|
| 52 | INT RemoveCnrItems(HWND hwnd, PCNRITEM pci, USHORT usCnt, USHORT usFlags); | 
|---|
| 53 | VOID ProcessDirectoryThread(VOID * arg); | 
|---|
| 54 |  | 
|---|
| 55 | // Data declarations | 
|---|
| 56 | extern PCSZ FM3Tools; | 
|---|
| 57 | extern PCSZ WPProgram; | 
|---|
| 58 | extern HPOINTER hptrEnv; | 
|---|
| 59 | extern HPOINTER hptrHidden; | 
|---|
| 60 | extern HPOINTER hptrReadonly; | 
|---|
| 61 | extern HPOINTER hptrSystem; | 
|---|
| 62 | extern volatile INT StubbyScanCount; | 
|---|
| 63 | extern volatile INT ProcessDirCount; | 
|---|
| 64 |  | 
|---|
| 65 | typedef struct { | 
|---|
| 66 |  | 
|---|
| 67 | HWND     hwndCnr; | 
|---|
| 68 | PCNRITEM pciParent; | 
|---|
| 69 | CHAR     *szDirBase; | 
|---|
| 70 | BOOL     filestoo; | 
|---|
| 71 | BOOL     recurse; | 
|---|
| 72 | BOOL     partial; | 
|---|
| 73 | CHAR           *stopflag; | 
|---|
| 74 | DIRCNRDATA     *dcd;                // Optional | 
|---|
| 75 | ULONG          *pulTotalFiles;       // Optional | 
|---|
| 76 | PULONGLONG     pullTotalBytes;      // Optional | 
|---|
| 77 | } | 
|---|
| 78 | PROCESSDIR; | 
|---|
| 79 |  | 
|---|
| 80 | #endif // FILLDIR_H | 
|---|