os/kernelhwsrv/kernel/eka/euser/epoc/symc/uc_stub.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1995-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 // e32\euser\epoc\symc\uc_stub.cpp
    15 // 
    16 //
    17 
    18 /**
    19 @file uc_stub.cpp
    20 
    21 Stubs are executable that can actually be launch from the host platform.
    22 They are not managed by the Symbian OS Kernel.
    23 */
    24 
    25 #include <e32std.h>
    26 #include <e32std_private.h>
    27 #include <e32wins.h>
    28 
    29 /*
    30 extern "C"
    31 GLDEF_C TInt _E32Startup()
    32 //
    33 // Unused in the stub
    34 //
    35 	{
    36 	return KErrNone;
    37 	}
    38 */
    39 
    40 #ifdef WIN32
    41 
    42 #include <windows.h>
    43 
    44 
    45 HINSTANCE gInstance;
    46 HINSTANCE gPrevInstance;
    47 LPSTR gCmdLine;
    48 int gCmdShow;
    49 
    50 
    51 int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
    52 	{
    53    gInstance=hInstance;
    54    gPrevInstance=hPrevInstance;
    55    gCmdLine=lpCmdLine;
    56    gCmdShow=nCmdShow;
    57 
    58 	BootEpoc(ETrue);
    59 	return 0;
    60 	};
    61 
    62 #endif