ReactOS
0.4.16-dev-92-g0c2cdca
cicfmap.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS Cicero
3
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
4
* PURPOSE: Cicero file mapping
5
* COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
6
*/
7
8
#pragma once
9
10
#include "
cicmutex.h
"
11
12
// class CicFileMappingStatic;
13
// class CicFileMapping;
14
15
class
CicFileMappingStatic
16
{
17
protected
:
18
LPCTSTR
m_pszName
;
19
LPVOID
m_pView
;
20
HANDLE
m_hMapping
;
21
BOOL
m_bCreated
;
22
BOOL
m_bHasMutex
;
23
CicMutex
*
m_pMutex
;
24
25
LPVOID
_Map
();
26
27
public
:
28
CicFileMappingStatic
() { }
29
~CicFileMappingStatic
() { }
30
31
void
Init
(
LPCTSTR
pszName,
CicMutex
*pMutex);
32
33
LPVOID
Create
(
LPSECURITY_ATTRIBUTES
pSA,
DWORD
dwMaximumSizeLow,
LPBOOL
pbAlreadyExists);
34
LPVOID
Open
();
35
void
Close
();
36
37
BOOL
Enter
();
38
void
Leave
();
39
BOOL
Flush
(
SIZE_T
dwNumberOfBytesToFlush);
40
void
Finalize
();
41
};
42
43
class
CicFileMapping
:
public
CicFileMappingStatic
44
{
45
public
:
46
CicFileMapping
(
LPCTSTR
pszName,
CicMutex
*pMutex);
47
virtual
~CicFileMapping
() {
Finalize
(); }
48
};
Create
@ Create
Definition:
registry.c:563
cicmutex.h
CicFileMappingStatic
Definition:
cicfmap.h:16
CicFileMappingStatic::m_pView
LPVOID m_pView
Definition:
cicfmap.h:19
CicFileMappingStatic::CicFileMappingStatic
CicFileMappingStatic()
Definition:
cicfmap.h:28
CicFileMappingStatic::m_pszName
LPCTSTR m_pszName
Definition:
cicfmap.h:18
CicFileMappingStatic::Finalize
void Finalize()
Definition:
cicfmap.cpp:116
CicFileMappingStatic::m_hMapping
HANDLE m_hMapping
Definition:
cicfmap.h:20
CicFileMappingStatic::m_bHasMutex
BOOL m_bHasMutex
Definition:
cicfmap.h:22
CicFileMappingStatic::m_bCreated
BOOL m_bCreated
Definition:
cicfmap.h:21
CicFileMappingStatic::Open
LPVOID Open()
Definition:
cicfmap.cpp:73
CicFileMappingStatic::Enter
BOOL Enter()
Definition:
cicfmap.cpp:95
CicFileMappingStatic::Close
void Close()
Definition:
cicfmap.cpp:22
CicFileMappingStatic::m_pMutex
CicMutex * m_pMutex
Definition:
cicfmap.h:23
CicFileMappingStatic::Leave
void Leave()
Definition:
cicfmap.cpp:102
CicFileMappingStatic::~CicFileMappingStatic
~CicFileMappingStatic()
Definition:
cicfmap.h:29
CicFileMappingStatic::_Map
LPVOID _Map()
Definition:
cicfmap.cpp:84
CicFileMapping
Definition:
cicfmap.h:44
CicFileMapping::~CicFileMapping
virtual ~CicFileMapping()
Definition:
cicfmap.h:47
CicMutex
Definition:
cicmutex.h:13
Init
Definition:
stterm-test.cc:47
Flush
@ Flush
Definition:
fatprocs.h:1055
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
void
Definition:
nsiface.idl:2307
_SECURITY_ATTRIBUTES
Definition:
compat.h:191
SIZE_T
ULONG_PTR SIZE_T
Definition:
typedefs.h:80
LPBOOL
BOOL * LPBOOL
Definition:
windef.h:162
LPCTSTR
const CHAR * LPCTSTR
Definition:
xmlstorage.h:193
sdk
lib
cicero
cicfmap.h
Generated on Mon Oct 7 2024 06:15:10 for ReactOS by
1.9.6