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