sl@0
|
1 |
// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// File Name: f32test/fileshare/handshareint64bit.cpp
|
sl@0
|
15 |
// Implementation of client side interface to 64bit file
|
sl@0
|
16 |
// handle server used by t_file64bit.cpp
|
sl@0
|
17 |
//
|
sl@0
|
18 |
//
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "handshare64bit.h"
|
sl@0
|
22 |
|
sl@0
|
23 |
_LIT(KServerName, "FHServer64Bit");
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
|
sl@0
|
27 |
TInt RFileHandleSharer64Bit::Connect()
|
sl@0
|
28 |
{
|
sl@0
|
29 |
return CreateSession(KServerName, TVersion(1,0,0));
|
sl@0
|
30 |
}
|
sl@0
|
31 |
|
sl@0
|
32 |
TInt RFileHandleSharer64Bit::SetTestDrive(TInt aDrive)
|
sl@0
|
33 |
{
|
sl@0
|
34 |
return SendReceive(EMsgDrive, TIpcArgs(aDrive));
|
sl@0
|
35 |
}
|
sl@0
|
36 |
TInt RFileHandleSharer64Bit::GetFileHandleLargeFile2(TInt &aHandle, TFileMode aFileMode)
|
sl@0
|
37 |
{
|
sl@0
|
38 |
TPckgBuf<TInt> fh;
|
sl@0
|
39 |
TInt fsh = SendReceive(EMsgGetFileHandleLargeFile,TIpcArgs(&fh, aFileMode));
|
sl@0
|
40 |
aHandle = fh();
|
sl@0
|
41 |
return fsh;
|
sl@0
|
42 |
}
|
sl@0
|
43 |
|
sl@0
|
44 |
TInt RFileHandleSharer64Bit::PassFileHandleProcessLargeFileClient(TIpcArgs& aIpcArgs)
|
sl@0
|
45 |
{
|
sl@0
|
46 |
return SendReceive(EMsgPassFileHandleProcessLargeFileClient,aIpcArgs);
|
sl@0
|
47 |
|
sl@0
|
48 |
}
|
sl@0
|
49 |
|
sl@0
|
50 |
TInt RFileHandleSharer64Bit::PassFileHandleProcessLargeFileCreator()
|
sl@0
|
51 |
{
|
sl@0
|
52 |
return (EMsgPassFileHandleProcessLargeFileCreator);
|
sl@0
|
53 |
}
|
sl@0
|
54 |
|
sl@0
|
55 |
TInt RFileHandleSharer64Bit::Exit()
|
sl@0
|
56 |
{
|
sl@0
|
57 |
return SendReceive(EMsgExit, TIpcArgs(NULL));
|
sl@0
|
58 |
}
|
sl@0
|
59 |
|
sl@0
|
60 |
void RFileHandleSharer64Bit::Sync()
|
sl@0
|
61 |
{
|
sl@0
|
62 |
SendReceive(EMsgSync, TIpcArgs());
|
sl@0
|
63 |
}
|
sl@0
|
64 |
|
sl@0
|
65 |
|