Rev Author Line No. Line
2061 mija 1 /******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
2 * File Name : Files.h
3 * Author : MCD Application Team
4 * Version : v2.1.0
5 * Date : 11/02/2009
6 * Description : Defines the Files DLL interface
7 ********************************************************************************
8 * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12 * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14 *******************************************************************************/
15  
16  
17 #if !defined(AFX_FILES_H__E07F909F_97B4_4295_8B8F_5EA1A83ECA92__INCLUDED_)
18 #define AFX_FILES_H__E07F909F_97B4_4295_8B8F_5EA1A83ECA92__INCLUDED_
19  
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif // _MSC_VER > 1000
23  
24 #ifndef __AFXWIN_H__
25 #error include 'stdafx.h' before including this file for PCH
26 #endif
27  
28 #include "resource.h" // main symbols
29 #include "FilesInc.h"
30 #include "Image.h"
31 #include "Errors.h"
32 //#include "IniFile.h"
33  
34  
35 /////////////////////////////////////////////////////////////////////////////
36 // CFilesApp
37 // See Files.cpp for the implementation of this class
38 //
39  
40 class CFilesApp : public CWinApp
41 {
42 public:
43 CFilesApp();
44  
45 // Overrides
46 // ClassWizard generated virtual function overrides
47 //{{AFX_VIRTUAL(CFilesApp)
48 //}}AFX_VIRTUAL
49  
50 //{{AFX_MSG(CFilesApp)
51 // NOTE - the ClassWizard will add and remove member functions here.
52 // DO NOT EDIT what you see in these blocks of generated code !
53 //}}AFX_MSG
54 DECLARE_MESSAGE_MAP()
55 };
56  
57  
58 extern "C" DWORD EXPORT FILES_OpenExistingFile(PSTR pPathFile, PHANDLE phFile, PWORD pVid, PWORD pPid, PWORD pBcd,PBYTE pNbImages);
59 extern "C" DWORD EXPORT FILES_CreateNewFile(PSTR pPathFile, PHANDLE phFile, WORD Vid, WORD Pid, WORD Bcd);
60 extern "C" DWORD EXPORT FILES_CloseFile(HANDLE hFile);
61  
62 extern "C" DWORD EXPORT FILES_AppendImageToFile(HANDLE hFile, HANDLE Image);
63 extern "C" DWORD EXPORT FILES_ReadImageFromFile(HANDLE hFile, int Rank, PHANDLE pImage);
64  
65 extern "C" DWORD EXPORT FILES_ImageFromFile(PSTR pPathFile, PHANDLE pImage, BYTE nAlternate);
66 extern "C" DWORD EXPORT FILES_ImageToFile(PSTR pPathFile, HANDLE Image);
67  
68 extern "C" DWORD EXPORT FILES_CreateImage(PHANDLE pHandle, BYTE nAlternate);
69 extern "C" DWORD EXPORT FILES_CreateImageFromMapping(PHANDLE pHandle, PMAPPING pMapping);
70 extern "C" DWORD EXPORT FILES_DuplicateImage(HANDLE hSource, PHANDLE pDest);
71  
72 extern "C" DWORD EXPORT FILES_FilterImageForOperation(HANDLE Handle, PMAPPING pMapping, DWORD Operation, BOOL bTruncateLeadFFForUpgrade);
73 extern "C" DWORD EXPORT FILES_DestroyImageElement(HANDLE Handle, DWORD dwRank);
74 extern "C" DWORD EXPORT FILES_DestroyImage(PHANDLE pHandle);
75  
76 extern "C" DWORD EXPORT FILES_GetImageAlternate(HANDLE Handle, PBYTE pAlternate);
77 extern "C" DWORD EXPORT FILES_GetImageNbElement(HANDLE Handle, PDWORD pNbElements);
78 extern "C" DWORD EXPORT FILES_GetImageName(HANDLE Handle, PSTR Name);
79 extern "C" DWORD EXPORT FILES_SetImageName(HANDLE Handle, PSTR Name);
80  
81 extern "C" DWORD EXPORT FILES_SetImageElement(HANDLE Handle, DWORD dwRank, BOOL bInsert, IMAGEELEMENT Element);
82 extern "C" DWORD EXPORT FILES_GetImageElement(HANDLE Handle, DWORD dwRank, PIMAGEELEMENT pElement);
83 extern "C" DWORD EXPORT FILES_GetMemoryMapping(PSTR pPathFile, PWORD Size, PSTR MapName, PWORD PacketSize, PMAPPING pMapping, PBYTE PagesPerSector);
84  
85 /*FILES_OpenExistingFile
86 FILES_CreateNewFile
87 FILES_CloseFile
88 FILES_AppendImageToFile
89 FILES_ReadImageFromFile*/
90  
91 /////////////////////////////////////////////////////////////////////////////
92  
93 //{{AFX_INSERT_LOCATION}}
94 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
95  
96 #endif // !defined(AFX_FILES_H__E07F909F_97B4_4295_8B8F_5EA1A83ECA92__INCLUDED_)
97  
98  
99 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE******/