From 593648a4b4d596bcd564fcf0f843f55f6365bfee Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Tue, 28 Feb 2006 11:53:43 +0000 Subject: 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 --- desktop/win32/source/officeloader/officeloader.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'desktop/win32') diff --git a/desktop/win32/source/officeloader/officeloader.cxx b/desktop/win32/source/officeloader/officeloader.cxx index da94d814404d..513e03330bff 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; -- cgit