diff options
author | Fredrik Orderud <fredrik.orderud@ge.com> | 2018-10-14 20:46:48 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2018-10-19 13:50:44 +0000 |
commit | ed59e85a6d1a12d6192c6c4bab54382f2fdb643d (patch) | |
tree | 12b6de1dad2a9abbd98cbb3de29d23bd0c9e2292 /tools/testcon/mainwindow.h | |
parent | d36d6ca320125ea5dd0e3dd451616e97c568b907 (diff) |
Implement sandboxing support in TestCon
Leverage QAxWidget::setClassContext and integrity level impersonation to require the
ActiveX control to either be started in a separate process, or in a separate
"low integrity" process.
Based on "Designing Applications to Run at a Low Integrity Level" https://msdn.microsoft.com/en-us/library/bb625960.aspx
Task-number: QTBUG-70983
Change-Id: Ic71a076c9d54b433e7b0285e958bb86a6ff163bb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tools/testcon/mainwindow.h')
-rw-r--r-- | tools/testcon/mainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testcon/mainwindow.h b/tools/testcon/mainwindow.h index 7e6575b..14dbff4 100644 --- a/tools/testcon/mainwindow.h +++ b/tools/testcon/mainwindow.h @@ -29,6 +29,8 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include <ActiveQt/QAxSelect> + #include "ui_mainwindow.h" QT_BEGIN_NAMESPACE @@ -54,7 +56,7 @@ public: static MainWindow *instance() { return m_instance; } - bool addControlFromClsid(const QString &clsid); + bool addControlFromClsid(const QString &clsid, QAxSelect::SandboxingLevel sandboxing); bool addControlFromFile(const QString &fileName); bool loadScript(const QString &file); |