summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-29 23:03:37 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-03 20:41:01 +0100
commit36dd638c53188b7606484f31d6a4cd6170850083 (patch)
treeb1e51908a98cef767a98ff932712aedeb3538cd7 /vcl/win
parentdcbf2c405870bdf8d7f94e1ea64c91ce685c22e4 (diff)
vcl: check if AT is running before loading the library
... which should result in faster startup if it's disabled. Change-Id: I39774b0a56f186d08270c2f17b2b20a823f21dc2 (cherry picked from commit b44ed4c408d92f7a1a3f2390c056d518c137ddd0)
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/window/salframe.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 913d53967681..f7c30865002c 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -6257,4 +6257,14 @@ sal_Bool ImplWriteLastError( DWORD lastError, const char *szApiCall )
// -----------------------------------------------------------------------
+#ifdef _WIN32
+bool HasAtHook()
+{
+ BOOL bIsRunning = FALSE;
+ // pvParam must be BOOL
+ return SystemParametersInfo(SPI_GETSCREENREADER, 0, &bIsRunning, 0)
+ && bIsRunning;
+}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */