mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:15:58 +00:00
[CICERO] Move sdk/lib/cicero to base/ctf/cicero (#8055)
The CTF modules depend on Cicero static library. Cicero should be a component in CTF. This move will improve code readability and grep-ability. JIRA issue: CORE-19361 JIRA issue: CORE-19363 - Move sdk/lib/cicero to base/ctf/cicero. - Adapt CMakeLists.txt to this move. - No code content change except CMakeLists.txt.
This commit is contained in:
parent
543cf1e2fd
commit
e43e639c30
22 changed files with 1 additions and 1 deletions
48
base/ctf/cicero/cicfmap.h
Normal file
48
base/ctf/cicero/cicfmap.h
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Cicero
|
||||
* LICENSE: LGPL-2.1-or-later (https://spdx.org/licenses/LGPL-2.1-or-later)
|
||||
* PURPOSE: Cicero file mapping
|
||||
* COPYRIGHT: Copyright 2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cicmutex.h"
|
||||
|
||||
// class CicFileMappingStatic;
|
||||
// class CicFileMapping;
|
||||
|
||||
class CicFileMappingStatic
|
||||
{
|
||||
protected:
|
||||
LPCTSTR m_pszName;
|
||||
LPVOID m_pView;
|
||||
HANDLE m_hMapping;
|
||||
BOOL m_bCreated;
|
||||
BOOL m_bHasMutex;
|
||||
CicMutex *m_pMutex;
|
||||
|
||||
LPVOID _Map();
|
||||
|
||||
public:
|
||||
CicFileMappingStatic() { }
|
||||
~CicFileMappingStatic() { }
|
||||
|
||||
void Init(LPCTSTR pszName, CicMutex *pMutex);
|
||||
|
||||
LPVOID Create(LPSECURITY_ATTRIBUTES pSA, DWORD dwMaximumSizeLow, LPBOOL pbAlreadyExists);
|
||||
LPVOID Open();
|
||||
void Close();
|
||||
|
||||
BOOL Enter();
|
||||
void Leave();
|
||||
BOOL Flush(SIZE_T dwNumberOfBytesToFlush);
|
||||
void Finalize();
|
||||
};
|
||||
|
||||
class CicFileMapping : public CicFileMappingStatic
|
||||
{
|
||||
public:
|
||||
CicFileMapping(LPCTSTR pszName, CicMutex *pMutex);
|
||||
virtual ~CicFileMapping() { Finalize(); }
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue