diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-02-28 11:53:43 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-02-28 11:53:43 +0000 |
commit | 593648a4b4d596bcd564fcf0f843f55f6365bfee (patch) | |
tree | b04a739d3b33b2740f83b9db561ebc2899c8d048 /desktop/win32 | |
parent | 2f1351f29ebda0ce09a63bbabd0868224d55ac0a (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.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
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; |