Sandboxie/SandboxiePlus/SandMan/SbiePlusAPI.h

60 lines
1.5 KiB
C
Raw Normal View History

2020-06-18 16:44:29 +01:00
#pragma once
#include "../QSbieAPI/SbieAPI.h"
class CSbiePlusAPI : public CSbieAPI
{
Q_OBJECT
public:
CSbiePlusAPI(QObject* parent);
virtual ~CSbiePlusAPI();
protected:
virtual CSandBox* NewSandBox(const QString& BoxName, class CSbieAPI* pAPI);
virtual CBoxedProcess* NewBoxedProcess(quint64 ProcessId, class CSandBox* pBox);
};
///////////////////////////////////////////////////////////////////////////////
// CSandBox
//
class CSandBoxPlus : public CSandBox
{
Q_OBJECT
public:
CSandBoxPlus(const QString& BoxName, class CSbieAPI* pAPI);
virtual ~CSandBoxPlus();
virtual void UpdateDetails();
2020-07-04 11:07:36 +01:00
virtual QString GetStatusStr() const;
virtual void SetLogApi(bool bEnable);
2020-06-18 16:44:29 +01:00
virtual bool HasLogApi() const { return m_bLogApiFound; }
2020-07-04 11:07:36 +01:00
virtual void SetINetBlock(bool bEnable);
virtual bool IsINetBlocked() const { return m_bINetBlocked; }
virtual void SetAllowShares(bool bEnable);
virtual bool HasSharesAccess() const { return m_bSharesAllowed; }
virtual void SetDropRights(bool bEnable);
virtual bool IsDropRights() const { return m_bDropRights; }
virtual bool IsSecurityRestricted() const { return m_bSecurityRestricted; }
virtual bool IsUnsecureDebugging() const { return m_iUnsecureDebugging != 0; }
2020-06-18 16:44:29 +01:00
protected:
2020-07-04 11:07:36 +01:00
virtual bool CheckOpenToken() const;
2020-06-18 16:44:29 +01:00
bool m_bLogApiFound;
2020-07-04 11:07:36 +01:00
bool m_bINetBlocked;
bool m_bSharesAllowed;
bool m_bDropRights;
2020-06-18 16:44:29 +01:00
2020-07-04 11:07:36 +01:00
bool m_bSecurityRestricted;
int m_iUnsecureDebugging;
2020-06-18 16:44:29 +01:00
};