3 #ifndef GET_SAFE_STRING
4 #define GET_SAFE_STRING(str) ((str) ? (str) : L"")
6 #define HANDLE_IS_VALID(h) ( (HANDLE)(h)!=NULL && (HANDLE)(h)!=INVALID_HANDLE_VALUE )
8 CString
FormatDateTime ( COleDateTime
&DateTime
, LPCTSTR pFormat
);
9 int hwGetFileAttr ( LPCTSTR lpFileName
, OUT CFileStatus
*pFileStatus
=NULL
);
10 CString
FormatBytes ( double fBytesNum
, BOOL bShowUnit
=TRUE
, int nFlag
=0 );
11 BOOL
WaitForThreadEnd ( HANDLE
*phThread
, DWORD dwWaitTime
=10*1000 );
13 //{{AFX_INSERT_LOCATION}}
14 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.