Merge pull request #3749 from love-code-yeyixiao/RemoteControl
Remote control
This commit is contained in:
commit
8194614afe
|
@ -95,7 +95,7 @@ _FX BOOLEAN Gui_InitTitle(HMODULE module)
|
||||||
// hook functions
|
// hook functions
|
||||||
//
|
//
|
||||||
|
|
||||||
if (! Gui_DisableTitle||SbieApi_QueryConfBool(NULL,"NoTitle",FALSE)) {
|
if (! Gui_DisableTitle) {
|
||||||
|
|
||||||
SBIEDLL_HOOK_GUI(GetWindowTextW);
|
SBIEDLL_HOOK_GUI(GetWindowTextW);
|
||||||
SBIEDLL_HOOK_GUI(GetWindowTextA);
|
SBIEDLL_HOOK_GUI(GetWindowTextA);
|
||||||
|
|
|
@ -0,0 +1,50 @@
|
||||||
|
#pragma once
|
||||||
|
struct RemoteConfigChanging
|
||||||
|
{
|
||||||
|
char* m_Name;
|
||||||
|
char* setting;
|
||||||
|
char* value;
|
||||||
|
bool bDelete;
|
||||||
|
bool bSuccess;
|
||||||
|
}*PRemoteConfigChanging;
|
||||||
|
class CRemoteCtrlUtil
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
CRemoteCtrlServer* Servers;
|
||||||
|
public:
|
||||||
|
CRemoteCtrlUtil(CRemoteCtrlServer[]);
|
||||||
|
~CRemoteCtrlUtil();
|
||||||
|
static bool CheckControlList(CRemoteCtrlServer* server, int);
|
||||||
|
bool GetChangingRequest(RemoteConfigChanging* conf);
|
||||||
|
bool GetOperationRequest();
|
||||||
|
bool GetEncryptKey(char* ID, char* BoxName, char* QueryServer, char* outKey);
|
||||||
|
};
|
||||||
|
|
||||||
|
class CRemoteCtrlServer
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
char* ServerName, ServerAddress;
|
||||||
|
unsigned int pPort;
|
||||||
|
int pPriority;
|
||||||
|
public:
|
||||||
|
CRemoteCtrlServer(char* lpName, char* lpIP4, unsigned int pPort = 0, int pPriority = 1);
|
||||||
|
const char* GetServerName();
|
||||||
|
const char* GetServerAddress();
|
||||||
|
int GetPriority();
|
||||||
|
~CRemoteCtrlServer();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class CRemoteCtrlSocket {
|
||||||
|
protected:
|
||||||
|
CRemoteCtrlServer Server;
|
||||||
|
public:
|
||||||
|
CRemoteCtrlSocket(CRemoteCtrlServer server);
|
||||||
|
~CRemoteCtrlSocket();
|
||||||
|
virtual int ConnectTo();
|
||||||
|
virtual int DisConnect();
|
||||||
|
virtual int AbortConnect();
|
||||||
|
virtual int send(const char* buf);
|
||||||
|
virtual int recv(char** buf);
|
||||||
|
virtual int SwitchServer();
|
||||||
|
};
|
Loading…
Reference in New Issue