equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 // e32test\misc\t_pcreat.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <e32std_private.h> |
|
20 #include <e32svr.h> |
|
21 |
|
22 TInt E32Main() |
|
23 { |
|
24 TUint id = (TUint)RProcess().Id(); |
|
25 RDebug::Print(_L("Process %d start"),id); |
|
26 |
|
27 TAny* p = User::Alloc(8192); |
|
28 memset(p, id, 8192); |
|
29 |
|
30 const TDesC& name = RProcess().FileName(); |
|
31 RProcess next; |
|
32 TInt r = next.Create(name, KNullDesC); |
|
33 if (r != KErrNone) |
|
34 User::Panic(_L("xx"),r); |
|
35 next.Resume(); |
|
36 return 0; |
|
37 } |