Community
Participate
Working Groups
#ifdef _WIN32
static void createConsole();
static void fixDLLSearchPath();
#endif
/* Record the arguments that were used to start the original executable */
* it now.
*/
initWindowSystem( &argc, argv, !noSplash );
#elif _WIN32
/* fix the DLL search path for security reasons */
fixDLLSearchPath();
/* Find the directory where the Eclipse program is installed. */
*stderr = *fp;
}
static void fixDLLSearchPath() {
#ifdef UNICODE
_TCHAR* functionName = _T_ECLIPSE("SetDllDirectoryW");
#else
_TCHAR* functionName = _T_ECLIPSE("SetDllDirectoryA");
BOOL (WINAPI *SetDLLDirectory)(LPCTSTR);
void * handle = loadLibrary(_T_ECLIPSE("Kernel32.dll"));
if (handle != NULL) {
if ( (SetDLLDirectory = findSymbol(handle, functionName)) != NULL) {
SetDLLDirectory(_T_ECLIPSE(""));
/*