summaryrefslogtreecommitdiff
path: root/desktop/win32
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-02-28 11:53:43 +0000
committerKurt Zenker <kz@openoffice.org>2006-02-28 11:53:43 +0000
commitd7c8eb53cce812c1f72b9213a205d1d113abb4d2 (patch)
treeac20ab2c38b0e26f12c0905f6bf30e8aa329c55e /desktop/win32
parent0190aad867dfca2c6fff64a02ef605bac94f6fab (diff)
INTEGRATION: CWS killablesoffice (1.6.78); FILE MERGED
2006/02/20 17:06:54 hro 1.6.78.1: #i62312# Attach to parent process und synchronize process lives
Diffstat (limited to 'desktop/win32')
-rw-r--r--desktop/win32/source/officeloader/officeloader.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx
index 54c46f2643..7f3d74e5c8 100644
--- a/desktop/win32/source/officeloader/officeloader.cxx
+++ b/desktop/win32/source/officeloader/officeloader.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: officeloader.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-11-11 13:09:54 $
+ * last change: $Author: kz $ $Date: 2006-02-28 12:53:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -305,6 +305,11 @@ int WINAPI _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int )
}
}
+ TCHAR szParentProcessId[64]; // This is more than large enough for a 128 bit decimal value
+
+ if ( _ltot( (long)GetCurrentProcessId(),szParentProcessId, 10 ) )
+ SetEnvironmentVariable( TEXT("ATTACHED_PARENT_PROCESSID"), szParentProcessId );
+
PROCESS_INFORMATION aProcessInfo;
fSuccess = FALSE;