JunkBox_Win_Lib
1.5.3
Loading...
Searching...
No Matches
WinSMTool.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef _WIN32_WINNT
4
#define _WIN32_WINNT _WIN32_WINNT_MAXVER
5
#endif
6
7
8
#include <afxmt.h>
9
#include "buffer.h"
10
11
#define JBXWL_DEFAULT_SMNAME "JBXWL_WinSharedMemory"
12
#define JBXWL_DEFAULT_SMSZIE 4096
13
14
15
//
16
namespace
jbxwl
{
17
18
19
class
CWinSharedMem
20
{
21
public
:
22
CWinSharedMem
(
void
);
23
CWinSharedMem
(
const
char
* name,
int
size =
JBXWL_DEFAULT_SMSZIE
);
24
virtual
~CWinSharedMem
(
void
);
25
26
protected
:
27
HANDLE
m_hMapping
= NULL;
// メモリマップドファイルのハンドル
28
HANDLE
m_hMapping_sz
= NULL;
// サイズ用メモリマップドファイルのハンドル
29
void
*
m_pMappingView
= NULL;
// ファイルのビューへのポインタ
30
void
*
m_pMappingView_sz
= NULL;
// サイズ用ファイルのビューへのポインタ
31
CMutex*
m_pMutex
= NULL;
// ミューテックスオブジェクト
32
33
public
:
34
int
get
();
35
void
put
();
36
Buffer*
buf
;
37
};
38
39
40
45
extern
CWinSharedMem
*
_Debug_SHM
;
46
47
void
open_shm_debuger
(
void
);
48
void
close_shm_debuger
(
void
);
49
50
51
52
53
}
// namespace
JBXWL_DEFAULT_SMSZIE
#define JBXWL_DEFAULT_SMSZIE
Definition
WinSMTool.h:12
jbxwl::CWinSharedMem
Definition
WinSMTool.h:20
jbxwl::CWinSharedMem::~CWinSharedMem
virtual ~CWinSharedMem(void)
Definition
WinSMTool.cpp:44
jbxwl::CWinSharedMem::m_pMutex
CMutex * m_pMutex
Definition
WinSMTool.h:31
jbxwl::CWinSharedMem::m_pMappingView
void * m_pMappingView
Definition
WinSMTool.h:29
jbxwl::CWinSharedMem::buf
Buffer * buf
Definition
WinSMTool.h:36
jbxwl::CWinSharedMem::put
void put()
Definition
WinSMTool.cpp:83
jbxwl::CWinSharedMem::get
int get()
Definition
WinSMTool.cpp:63
jbxwl::CWinSharedMem::CWinSharedMem
CWinSharedMem(void)
Definition
WinSMTool.cpp:9
jbxwl::CWinSharedMem::m_hMapping
HANDLE m_hMapping
Definition
WinSMTool.h:27
jbxwl::CWinSharedMem::m_pMappingView_sz
void * m_pMappingView_sz
Definition
WinSMTool.h:30
jbxwl::CWinSharedMem::m_hMapping_sz
HANDLE m_hMapping_sz
Definition
WinSMTool.h:28
jbxwl
Definition
ContrastDLG.h:23
jbxwl::_Debug_SHM
CWinSharedMem * _Debug_SHM
////////////////////////////////////////////////////////////
Definition
WinSMTool.cpp:103
jbxwl::open_shm_debuger
void open_shm_debuger(void)
Definition
WinSMTool.cpp:106
jbxwl::close_shm_debuger
void close_shm_debuger(void)
Definition
WinSMTool.cpp:112
WinBaseLib
WinSMTool.h
Generated on Sat Oct 12 2024 19:43:15 for JunkBox_Win_Lib by
1.11.0