Ejemplo n.º 1
1
extern "C" int lamexp_entry_point(void)
{
	if(g_lamexp_entry_check_flag != 0x789E09B2)
	{
		lamexp_fatal_exit(L"Application initialization has failed, take care!");
	}

	//Call global initialization functions
	_lamexp_global_init_win32();
	_lamexp_global_init_versn();
	_lamexp_global_init_tools();
	_lamexp_global_init_ipcom();
	_lamexp_global_init_utils();

	//Make sure we will pass the check
	g_lamexp_entry_check_flag = (~g_lamexp_entry_check_flag);

	//Now initialize the C Runtime library!
	return WinMainCRTStartup();
}
Ejemplo n.º 2
0
void __main ()
{
  /*
   * Store in PSXDLL.DLL two well known global symbols
   * references.
   */
  __PdxInitializeData (& errno, & _environ);  /* PSXDLL.__PdxInitializeData */
  /* CRT initialization. */
#ifdef __SUBSYSTEM_WINDOWS__
  WinMainCRTStartup ();
#else
  mainCRTStartup (); 
#endif
}
Ejemplo n.º 3
0
extern "C" int APIENTRY _Win32DebugInit( void )
{
    DbgHeap_Init();

#if 0
    DbgTraceStackSpace stackSpace;  // reserved memory; must be always allocated.

    DbgTrace_Init( stackSpace );

    // Set up memory debugging routines.
    DbgHeap_SetMemoryAllocationWatch( _DbgHeap_MemAllocWatch );
#endif

    int ret = WinMainCRTStartup();

#if 0
    DbgTrace_Shutdown();
#endif
    DbgHeap_Shutdown();
    return ret;
}