source: trunk/dll/filldir.h@ 1427

Last change on this file since 1427 was 1424, checked in by Gregg Young, 16 years ago

Show either file system type or drive label beside dirve letter in tree. (tickets 47 & 339)

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1
2/***********************************************************************
3
4 $Id: filldir.h 1424 2009-06-06 19:16:12Z 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
32VOID EmptyCnr(HWND hwnd);
33const PSZ FileAttrToString(ULONG fileAttr);
34VOID FillDirCnr(HWND hwndCnr, CHAR *pszDirectory, DIRCNRDATA *pdcd,
35 PULONGLONG pullBytes);
36VOID FillTreeCnr(HWND hwndCnr, HWND hwndParent);
37VOID 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);
42ULONGLONG FillInRecordFromFFB(HWND hwndCnr, PCNRITEM pci,
43 const PSZ pszDirectory,
44 const PFILEFINDBUF4L pffb, const BOOL partial,
45 DIRCNRDATA *pdcd);
46ULONGLONG FillInRecordFromFSA(HWND hwndCnr, PCNRITEM pci,
47 const PSZ pszFileName, const PFILESTATUS4L pfsa4,
48 const BOOL partial, CHAR *szFSType, DIRCNRDATA *pdcd);
49VOID FreeCnrItem(HWND hwnd, PCNRITEM pci);
50VOID FreeCnrItemList(HWND hwnd, PCNRITEM pciFirst);
51VOID FreeCnrItemData(PCNRITEM pci);
52INT RemoveCnrItems(HWND hwnd, PCNRITEM pci, USHORT usCnt, USHORT usFlags);
53VOID ProcessDirectoryThread(VOID * arg);
54
55// Data declarations
56extern PCSZ FM3Tools;
57extern PCSZ WPProgram;
58extern HPOINTER hptrEnv;
59extern HPOINTER hptrHidden;
60extern HPOINTER hptrReadonly;
61extern HPOINTER hptrSystem;
62extern volatile INT StubbyScanCount;
63extern volatile INT ProcessDirCount;
64
65typedef 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}
78PROCESSDIR;
79
80#endif // FILLDIR_H
Note: See TracBrowser for help on using the repository browser.