mirror of
https://github.com/Cc28256/CcRemote.git
synced 2025-06-09 05:49:50 +00:00
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
// KernelManager.h: interface for the CKernelManager class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_KERNELMANAGER_H__D38BBAEA_31C6_4C8A_8BF7_BF3E80182EAE__INCLUDED_)
|
|
#define AFX_KERNELMANAGER_H__D38BBAEA_31C6_4C8A_8BF7_BF3E80182EAE__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "Manager.h"
|
|
//---重载了 CManager 类记得CClientSocket调用的 CManager::OnReceive 其实他调用的就是这个类的OnReceive 查看OnReceive
|
|
class CKernelManager : public CManager
|
|
{
|
|
public:
|
|
CKernelManager(CClientSocket *pClient, LPCTSTR lpszServiceName, DWORD dwServiceType, LPCTSTR lpszKillEvent,
|
|
LPCTSTR lpszMasterHost, UINT nMasterPort);
|
|
virtual ~CKernelManager();
|
|
virtual void OnReceive(LPBYTE lpBuffer, UINT nSize);
|
|
char m_strServiceName[256];
|
|
char m_strKillEvent[256];
|
|
|
|
static char m_strMasterHost[256];
|
|
static UINT m_nMasterPort;
|
|
void UnInstallService();
|
|
bool IsActived();
|
|
private:
|
|
HANDLE m_hThread[10000]; // 足够用了
|
|
UINT m_nThreadCount;
|
|
DWORD m_dwServiceType;
|
|
bool m_bIsActived;
|
|
};
|
|
|
|
#endif // !defined(AFX_KERNELMANAGER_H__D38BBAEA_31C6_4C8A_8BF7_BF3E80182EAE__INCLUDED_)
|