mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
[SDK:LIB] Introduce Cicero static library (#6492)
Refactoring and reduce binary size. JIRA issue: CORE-19268 - Add cicero static library in sdk/lib/cicero folder. - Delete sdk/include/reactos/cicero folder. - Adapt the dependencies to these changes. - Make ctfmon, msutb, and msctf modules UNICODE.
This commit is contained in:
parent
21e139d1d1
commit
fc3eeb61f3
31 changed files with 2270 additions and 2112 deletions
48
sdk/lib/cicero/cicfmap.h
Normal file
48
sdk/lib/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