Files
SimpleRemoter/server/2015Remote/2015Remote.h
2025-06-18 22:16:55 +02:00

45 lines
706 B
C++

// 2015Remote.h : PROJECT_NAME 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符号
#include "common/iniFile.h"
#include "IOCPServer.h"
// CMy2015RemoteApp:
// 有关此类的实现,请参阅 2015Remote.cpp
//
class CMy2015RemoteApp : public CWinApp
{
public:
CMy2015RemoteApp();
config *m_iniFile;
HANDLE m_Mutex;
IOCPServer* m_iocpServer;
// 重写
public:
virtual BOOL InitInstance();
// 实现
DECLARE_MESSAGE_MAP()
virtual int ExitInstance();
};
extern CMy2015RemoteApp theApp;
CMy2015RemoteApp* GetThisApp();
config& GetThisCfg();
#define THIS_APP GetThisApp()
#define THIS_CFG GetThisCfg()