diff options
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; |