source: trunk/dll/filldir.h@ 1387

Last change on this file since 1387 was 1358, checked in by Gregg Young, 17 years ago

Comments for CS 1354/55

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