1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/INC/ESTW32.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,48 @@
1.4 +#ifndef __ESTW32_H__
1.5 +#define __ESTW32_H__
1.6 +
1.7 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
1.8 +// All rights reserved.
1.9 +// This component and the accompanying materials are made available
1.10 +// under the terms of "Eclipse Public License v1.0"
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.13 +//
1.14 +// Initial Contributors:
1.15 +// Nokia Corporation - initial contribution.
1.16 +//
1.17 +// Contributors:
1.18 +//
1.19 +// Description:
1.20 +// EPOC Client interface for accessing Win32 stdin/stdout/stderr
1.21 +//
1.22 +//
1.23 +
1.24 +/**
1.25 + @file
1.26 + @internalComponent
1.27 +*/
1.28 +
1.29 +#include <e32std.h>
1.30 +
1.31 +const TInt Kstdin=0;
1.32 +const TInt Kstdout=1;
1.33 +const TInt Kstderr=2;
1.34 +
1.35 +class RWin32Stream : public RSessionBase
1.36 + {
1.37 +public:
1.38 + IMPORT_C static void StartServer();
1.39 + IMPORT_C TInt Open(TInt aStream);
1.40 + IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
1.41 + IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
1.42 + IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
1.43 + IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
1.44 + IMPORT_C void Flush(TRequestStatus& aStatus);
1.45 +private:
1.46 + TInt CheckEOF(TRequestStatus& aStatus);
1.47 + };
1.48 +
1.49 +//
1.50 +#endif
1.51 +