Update contrib.
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // EPOC Server providing access to Win32 stdin/stdout/stderr
37 static TInt StreamName(TInt aStream, TDes& aBuf);
38 static void StartServer(TInt aStream);
39 static TInt ThreadFunction(TAny* aPtr);
41 TInt Init(TInt aStream, const TDesC& aStreamName);
43 TInt ReadStream(RMessage2& aMessage);
44 TInt WriteStream(RMessage2& aMessage);
46 TInt MapWin32Error(TInt aDefault);
51 TAny* iLogHandle; // used to log a copy of stream output, for debug purposes