cefilefind.h

来自「Symbol_MC3000_C#.条码扫码范例程序之5」· C头文件 代码 · 共 56 行

H
56
字号
#ifndef _CE_FILEFIND_H_
#define _CE_FILEFIND_H_

#include "stdafx.h"
#include <afxwin.h>

class CCeFileFind 
{

public:
	CCeFileFind( );
	~CCeFileFind();

public:

	void Close();
	virtual BOOL FindNextFile( );
	virtual BOOL FindFile( LPCTSTR pstrName = NULL);

public:
	DWORD	GetLength() const;
	CString GetFileName() const;				
    CString GetFilePath() const;			

	CString GetRoot() const;			

	virtual BOOL GetCreationTime( FILETIME* pFileTime ) const;
	virtual BOOL GetCreationTime( CTime& refTime ) const;
	virtual BOOL GetLastAccessTime( CTime& refTime ) const;
	virtual BOOL GetLastAccessTime( FILETIME* pFileTime ) const;
	virtual BOOL GetLastWriteTime( FILETIME* pFileTime ) const;
	virtual BOOL GetLastWriteTime( CTime& refTime ) const;
	virtual BOOL MatchesMask( DWORD dwMask ) const;
	virtual BOOL IsDots( ) const;
	BOOL IsReadOnly( ) const;
	BOOL IsDirectory( ) const;
	BOOL IsCompressed( ) const;
	BOOL IsSystem( ) const;
	BOOL IsHidden( ) const;
	BOOL IsTemporary( ) const;
	BOOL IsNormal( ) const;
	BOOL IsArchived( ) const;

private:
	char	m_chDirSeparator;
	CString	m_csRoot;
	
	HANDLE m_hFileHandle;

	WIN32_FIND_DATA  *m_pfiledata;


};

#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?