⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flashupgrader.h

📁 PW芯片方案Flash ROM烧写程序
💻 H
字号:
//---------------------------------------------------------------------------
// Pixelworks Inc. Company Confidential Strictly Private
//
// $Archive: $
// $Revision: 1.2 $
// $Author: ckerchner $
// $Date: 2004/11/23 00:31:35 $
//
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>> COPYRIGHT NOTICE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Copyright 1997-2003 (c) Pixelworks Inc.
//
// Pixelworks owns the sole copyright to this software. Under international 
// copyright laws you (1) may not make a copy of this software except for 
// the purposes of maintaining a single archive copy, (2) may not derive
// works herefrom, (3) may not distribute this work to others. These rights 
// are provided for information clarification, other restrictions of rights 
// may apply as well.
//
// This is an unpublished work.
// --------------------------------------------------------------------------
// >>>>>>>>>>>>>>>>>>>>>>>>>>>> WARRANTEE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// --------------------------------------------------------------------------
// Pixelworks Inc. MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THE USE OF
// THIS SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
// PURPOSE.
// --------------------------------------------------------------------------
//
// FlashUpgrader.h : main header file for the FLASHUPGRADER application
//

#if !defined(AFX_FLASHUPGRADER_H__517D2357_9212_477D_B195_ADBE46D69862__INCLUDED_)
#define AFX_FLASHUPGRADER_H__517D2357_9212_477D_B195_ADBE46D69862__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

enum eFileType {ftHex80, ftHexEx, ftText, ftBinary};

typedef struct
{
    CString     strPath;
    eFileType   eType;
    WORD        wIntelSegment;
    BYTE        cFlashFlags;
} FILE_ITEM, *PFILE_ITEM;

#include "resource.h"		// main symbols
#include "RegistryHelper.h"
#include "HexFileData.h"
#include "InfFile.h"
#include "FlashDef.h"
#include "MakeSafe.h"
#include "FlashHelper.h"


typedef enum
{
    psNONE,
    psPENDING,
    psCOMPLETED,
    psERROR,
	psVERIFYFAILED,
} ePAGESTATE;

/////////////////////////////////////////////////////////////////////////////
// CFlashUpgraderApp:
// See FlashUpgrader.cpp for the implementation of this class
//

class CFlashUpgraderApp : public CWinApp
{
public:
	CFlashUpgraderApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFlashUpgraderApp)
	public:
	virtual BOOL InitInstance();
    virtual int  ExitInstance();
	//}}AFX_VIRTUAL

// Implementation

    CString GetCmdLineOptions(CString strOptionPrefix);
    BOOL CheckCmdLineOptions(CString strOptionPrefix);

    CString GetPath(LPCSTR lpszFullPath);
    CString GetFilename(LPCSTR lpszFullPath);
	//{{AFX_MSG(CFlashUpgraderApp)
	afx_msg void OnF1Help();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
    CString                 m_strCmdLineOptions;
	CString					m_strLaunchDir;
    int                     m_nReturnValue;
};

extern CFlashUpgraderApp *pTheApp;

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FLASHUPGRADER_H__517D2357_9212_477D_B195_ADBE46D69862__INCLUDED_)

⌨️ 快捷键说明

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