diff --git a/Sandboxie/core/dll/guititle.c b/Sandboxie/core/dll/guititle.c index 1a0b174b..7d7f6636 100644 --- a/Sandboxie/core/dll/guititle.c +++ b/Sandboxie/core/dll/guititle.c @@ -95,7 +95,7 @@ _FX BOOLEAN Gui_InitTitle(HMODULE module) // hook functions // - if (! Gui_DisableTitle||SbieApi_QueryConfBool(NULL,"NoTitle",FALSE)) { + if (! Gui_DisableTitle) { SBIEDLL_HOOK_GUI(GetWindowTextW); SBIEDLL_HOOK_GUI(GetWindowTextA); diff --git a/Sandboxie/core/svc/RemoteCtrl.h b/Sandboxie/core/svc/RemoteCtrl.h new file mode 100644 index 00000000..de6cd285 --- /dev/null +++ b/Sandboxie/core/svc/RemoteCtrl.h @@ -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(); +};