|
1 // Copyright (c) 1996-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 the License "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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // File Name: f32test/fileshare/handshareint64bit.cpp |
|
15 // Implementation of client side interface to 64bit file |
|
16 // handle server used by t_file64bit.cpp |
|
17 // |
|
18 // |
|
19 |
|
20 |
|
21 #include "handshare64bit.h" |
|
22 |
|
23 _LIT(KServerName, "FHServer64Bit"); |
|
24 |
|
25 |
|
26 |
|
27 TInt RFileHandleSharer64Bit::Connect() |
|
28 { |
|
29 return CreateSession(KServerName, TVersion(1,0,0)); |
|
30 } |
|
31 |
|
32 TInt RFileHandleSharer64Bit::SetTestDrive(TInt aDrive) |
|
33 { |
|
34 return SendReceive(EMsgDrive, TIpcArgs(aDrive)); |
|
35 } |
|
36 TInt RFileHandleSharer64Bit::GetFileHandleLargeFile2(TInt &aHandle, TFileMode aFileMode) |
|
37 { |
|
38 TPckgBuf<TInt> fh; |
|
39 TInt fsh = SendReceive(EMsgGetFileHandleLargeFile,TIpcArgs(&fh, aFileMode)); |
|
40 aHandle = fh(); |
|
41 return fsh; |
|
42 } |
|
43 |
|
44 TInt RFileHandleSharer64Bit::PassFileHandleProcessLargeFileClient(TIpcArgs& aIpcArgs) |
|
45 { |
|
46 return SendReceive(EMsgPassFileHandleProcessLargeFileClient,aIpcArgs); |
|
47 |
|
48 } |
|
49 |
|
50 TInt RFileHandleSharer64Bit::PassFileHandleProcessLargeFileCreator() |
|
51 { |
|
52 return (EMsgPassFileHandleProcessLargeFileCreator); |
|
53 } |
|
54 |
|
55 TInt RFileHandleSharer64Bit::Exit() |
|
56 { |
|
57 return SendReceive(EMsgExit, TIpcArgs(NULL)); |
|
58 } |
|
59 |
|
60 void RFileHandleSharer64Bit::Sync() |
|
61 { |
|
62 SendReceive(EMsgSync, TIpcArgs()); |
|
63 } |
|
64 |
|
65 |