1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/estw32.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,49 @@
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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.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 +
1.26 +/**
1.27 + @file
1.28 + @internalComponent
1.29 +*/
1.30 +
1.31 +#include <e32std.h>
1.32 +
1.33 +const TInt Kstdin=0;
1.34 +const TInt Kstdout=1;
1.35 +const TInt Kstderr=2;
1.36 +
1.37 +class RWin32Stream : public RSessionBase
1.38 + {
1.39 +public:
1.40 + IMPORT_C static void StartServer();
1.41 + IMPORT_C TInt Open(TInt aStream);
1.42 + IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes);
1.43 + IMPORT_C void Read(TRequestStatus& aStatus, TDes8& aDes, TInt aLength);
1.44 + IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes);
1.45 + IMPORT_C void Write(TRequestStatus& aStatus, const TDesC8& aDes, TInt aLength);
1.46 + IMPORT_C void Flush(TRequestStatus& aStatus);
1.47 +private:
1.48 + TInt CheckEOF(TRequestStatus& aStatus);
1.49 + };
1.50 +
1.51 +//
1.52 +#endif