|
// FileStorage.h : main header file for the FileStorage DLL
//
#pragma once
#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif
#include "resource.h" // main symbols
// CFileStorageApp
// See FileStorage.cpp for the implementation of this class
#define MAX_RETRY 50
#define STRINGDATA_DOCUMENTID 100
#define Error_OpenFile 1000
WCHAR StorageName_DataStorage[12] = L"DataStorage";
WCHAR StreamName_DocumentID[32] = L"DocumentID";
//
class CFileStorageApp : public CWinApp
{
public:
CFileStorageApp();
BOOLEAN AddDataToFile(WCHAR *pwszFileName, int typeOfData,WCHAR * data,BOOLEAN officeFile );
HRESULT AddToStorage(WCHAR *pwszFileName,WCHAR* pwszData,WCHAR *pwszStreamName,int *errorcode );
HRESULT CreateStream(IStorage* pDataSpaceStorage, IStream** pStream, WCHAR *pwszStreamName);
HRESULT WriteToStream(IStream* pStream, void* pData, int nDataSize);
BOOLEAN ReadDataFromFile(WCHAR *pwszFileName, int typeOfData,WCHAR* data,ULONG ulDataSize,BOOLEAN officeFile );
HRESULT GetFromStorage(WCHAR *pwszFileName,void * pBuff,ULONG ulDataSize,WCHAR *pwszStreamName );
HRESULT ReadFromStream(IStream *pStream,void * pBuff,ULONG ulDataSize);
// Overrides
public:
virtual BOOL InitInstance();
DECLARE_MESSAGE_MAP()
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.