sharemem.h

来自「侯捷先生翻译的书籍《Win32多线程程序设计》的源代码。」· C头文件 代码 · 共 55 行

H
55
字号
// ShareMem.h : main header file for the SHAREMEM application
//

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"		// main symbols

/////////////////////////////////////////////////////////////////////////////
// SharedBlock
//

struct SharedBlock;

extern SharedBlock* gpSharedBlock;
extern HANDLE       ghDataLock;

struct SharedBlock
{
    short   m_nStringCount;
    char __based( gpSharedBlock ) *m_pStrings[1];
};



/////////////////////////////////////////////////////////////////////////////
// CShareMemApp:
// See ShareMem.cpp for the implementation of this class
//

class CShareMemApp : public CWinApp
{
public:
	CShareMemApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShareMemApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CShareMemApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?