1 |
|
---|
2 | /***********************************************************************
|
---|
3 |
|
---|
4 | $Id: filldir.h 1871 2015-09-20 22:57:02Z gyoung $
|
---|
5 |
|
---|
6 | filldir.c definitions
|
---|
7 |
|
---|
8 | Copyright (c) 1993-98 M. Kimes
|
---|
9 | Copyright (c) 2001, 2015 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 | 06 Jun 09 GKY Add option to show file system type or drive label in tree
|
---|
15 | 22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning
|
---|
16 | 20 Sep 15 GKY Add code for Flesh to skip the directory entry added by Stubby (eliminate
|
---|
17 | use of NULL/Nullstr pszFileNames by Stubby). Add code to relink pci chain
|
---|
18 | following rename, delete, etc. Add "Expanding" window text.
|
---|
19 |
|
---|
20 | ***********************************************************************/
|
---|
21 |
|
---|
22 | #if !defined(FILLDIR_H)
|
---|
23 |
|
---|
24 | #define FILLDIR_H
|
---|
25 |
|
---|
26 | #if !defined(OS2_INCLUDED)
|
---|
27 | #define INCL_WINSTDCNR // dircnrs.h
|
---|
28 | #include <os2.h>
|
---|
29 | #else
|
---|
30 | #if !defined(INCL_WINSTDCNR)
|
---|
31 | #error INCL_WINSTDCNR required
|
---|
32 | #endif
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #include "dircnrs.h" // DIRCNRDATA
|
---|
36 |
|
---|
37 | VOID EmptyCnr(HWND hwnd);
|
---|
38 | const PSZ FileAttrToString(ULONG fileAttr);
|
---|
39 | VOID FillDirCnr(HWND hwndCnr, CHAR *pszDirectory, DIRCNRDATA *pdcd,
|
---|
40 | PULONGLONG pullBytes);
|
---|
41 | VOID FillTreeCnr(HWND hwndCnr, HWND hwndParent);
|
---|
42 | VOID ProcessDirectory(const HWND hwndCnr, const PCNRITEM pciParent,
|
---|
43 | const CHAR *szDirBase, const BOOL filestoo,
|
---|
44 | const BOOL recurse, const BOOL partial,
|
---|
45 | CHAR *stopflag, DIRCNRDATA *pdcd,
|
---|
46 | PULONG pullTotalFiles, PULONGLONG pullTotalBytes,
|
---|
47 | CHAR *LoadedFirstChild);
|
---|
48 | ULONGLONG FillInRecordFromFFB(HWND hwndCnr, PCNRITEM pci,
|
---|
49 | const PSZ pszDirectory,
|
---|
50 | const PFILEFINDBUF4L pffb, const BOOL partial,
|
---|
51 | DIRCNRDATA *pdcd);
|
---|
52 | ULONGLONG FillInRecordFromFSA(HWND hwndCnr, PCNRITEM pci,
|
---|
53 | const PSZ pszFileName, const PFILESTATUS4L pfsa4,
|
---|
54 | const BOOL partial, CHAR *szFSType, DIRCNRDATA *pdcd);
|
---|
55 | VOID FreeCnrItem(HWND hwnd, PCNRITEM pci);
|
---|
56 | VOID FreeCnrItemList(HWND hwnd, PCNRITEM pciFirst);
|
---|
57 | VOID FreeCnrItemData(PCNRITEM pci);
|
---|
58 | INT RemoveCnrItems(HWND hwnd, PCNRITEM pci, USHORT usCnt, USHORT usFlags);
|
---|
59 | VOID ProcessDirectoryThread(VOID * arg);
|
---|
60 | HPOINTER IDFile(PSZ p);
|
---|
61 | BOOL IsDefaultIcon(HPOINTER hptr);
|
---|
62 |
|
---|
63 | // Data declarations
|
---|
64 | extern PCSZ FM3Tools;
|
---|
65 | extern PCSZ WPProgram;
|
---|
66 | extern HPOINTER hptrEnv;
|
---|
67 | extern HPOINTER hptrHidden;
|
---|
68 | extern HPOINTER hptrReadonly;
|
---|
69 | extern HPOINTER hptrSystem;
|
---|
70 | extern INT FixedVolume;
|
---|
71 |
|
---|
72 | typedef struct {
|
---|
73 |
|
---|
74 | HWND hwndCnr;
|
---|
75 | PCNRITEM pciParent;
|
---|
76 | CHAR *szDirBase;
|
---|
77 | BOOL filestoo;
|
---|
78 | BOOL recurse;
|
---|
79 | BOOL partial;
|
---|
80 | CHAR *stopflag;
|
---|
81 | DIRCNRDATA *dcd; // Optional
|
---|
82 | ULONG *pulTotalFiles; // Optional
|
---|
83 | PULONGLONG pullTotalBytes; // Optional
|
---|
84 | }
|
---|
85 | PROCESSDIR;
|
---|
86 |
|
---|
87 | #endif // FILLDIR_H
|
---|