source: trunk/dll/filldir.h@ 1421

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

Remove variable aurgs from docopy & unlinkf (not used); Move more strings to PCSZs and string table; Move PCSZs to compile time initialization; Fix hang on startup caused by a drive scan and a dircnr scan trying to update a drive in the tree at the same time (related to the "treeswitch options); Code cleanup mainly removal of old printfs, SayMsgs, DbgMsg and unneeded %s.

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[907]1
2/***********************************************************************
3
[1196]4 $Id: filldir.h 1402 2009-03-14 17:17:59Z 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.
[1402]13 08 Mar 09 GKY Additional strings move to PCSZs
[907]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, 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);
[1354]53VOID ProcessDirectoryThread(VOID * arg);
[907]54
[1207]55// Data declarations
[1402]56extern PCSZ FM3Tools;
57extern PCSZ WPProgram;
[1207]58extern HPOINTER hptrEnv;
59extern HPOINTER hptrHidden;
60extern HPOINTER hptrReadonly;
61extern HPOINTER hptrSystem;
[1354]62extern volatile INT StubbyScanCount;
63extern volatile INT ProcessDirCount;
[1207]64
[1354]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
[907]80#endif // FILLDIR_H
Note: See TracBrowser for help on using the repository browser.