summaryrefslogtreecommitdiffstats
path: root/INSTALL.W32
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-07-09 14:31:41 +0000
committerAndy Polyakov <appro@openssl.org>2010-07-09 14:31:41 +0000
commitccbbcddd5ff675309e3c43f5795afc967f4c049e (patch)
tree25eff7c362d9f8476a52dcb5fadf17d752b6ac04 /INSTALL.W32
parent65d82478d834e3f8e0cf1abc9fd23e393175ba7e (diff)
INSTALL.W32: mention _OPENSSL_isservice() [from HEAD].
PR: 2194
Diffstat (limited to 'INSTALL.W32')
-rw-r--r--INSTALL.W3213
1 files changed, 12 insertions, 1 deletions
diff --git a/INSTALL.W32 b/INSTALL.W32
index 77441f1ef3..a0886b3d77 100644
--- a/INSTALL.W32
+++ b/INSTALL.W32
@@ -297,7 +297,18 @@
desktop, which is not available to service processes. The toolkit is
designed to detect in which context it's currently executed, GUI,
console app or service, and act accordingly, namely whether or not to
- actually make GUI calls.
+ actually make GUI calls. Additionally those who wish to
+ /DELAYLOAD:GDI32.DLL and /DELAYLOAD:USER32.DLL and actually keep them
+ off service process should consider implementing and exporting from
+ .exe image in question own _OPENSSL_isservice not relying on USER32.DLL.
+ E.g., on Windows Vista and later you could:
+
+ __declspec(dllexport) __cdecl BOOL _OPENSSL_isservice(void)
+ { DWORD sess;
+ if (ProcessIdToSessionId(GetCurrentProcessId(),&sess))
+ return sess==0;
+ return FALSE;
+ }
If you link with OpenSSL .DLLs, then you're expected to include into
your application code small "shim" snippet, which provides glue between