xref: /reactos/sdk/tools/cabman/CCFDATAStorage.h (revision 1734f297)
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS cabinet manager
4  * FILE:        tools/cabman/cabman.h
5  * PURPOSE:     Cabinet manager header
6  */
7 
8 #pragma once
9 
10 #include "cabinet.h"
11 
12 #ifndef CAB_READ_ONLY
13 
14 class CCFDATAStorage
15 {
16 public:
17     /* Default constructor */
18     CCFDATAStorage();
19     /* Default destructor */
20     virtual ~CCFDATAStorage();
21     ULONG Create();
22     ULONG Destroy();
23     ULONG Truncate();
24     ULONG Position();
25     ULONG Seek(LONG Position);
26     ULONG ReadBlock(PCFDATA Data, void* Buffer, PULONG BytesRead);
27     ULONG WriteBlock(PCFDATA Data, void* Buffer, PULONG BytesWritten);
28 private:
29     char FullName[PATH_MAX];
30     FILE* FileHandle;
31 };
32 
33 #endif /* CAB_READ_ONLY */
34 
35