wrapper.h (03b7fc75) | wrapper.h (07a3d7f1) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 53 unchanged lines hidden (view full) --- 62#if defined( REMOTE ) 63#define DEFAULT_LIBPATH TEXT("remote;") 64#elif defined( LOCAL ) 65#define DEFAULT_LIBPATH TEXT("local;") 66#endif 67 68extern "C" int Main() 69{ | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 53 unchanged lines hidden (view full) --- 62#if defined( REMOTE ) 63#define DEFAULT_LIBPATH TEXT("remote;") 64#elif defined( LOCAL ) 65#define DEFAULT_LIBPATH TEXT("local;") 66#endif 67 68extern "C" int Main() 69{ |
70 // Retreive startup info | 70 // Retrieve startup info |
71 72 STARTUPINFO aStartupInfo; 73 74 ZeroMemory( &aStartupInfo, sizeof(aStartupInfo) ); 75 aStartupInfo.cb = sizeof( aStartupInfo ); 76 GetStartupInfo( &aStartupInfo ); 77 78 // Retrieve command line --- 13 unchanged lines hidden (view full) --- 92 TCHAR szDir[MAX_PATH]; 93 TCHAR szFileName[MAX_PATH]; 94 TCHAR szExt[MAX_PATH]; 95 96 GetModuleFileName( NULL, szApplicationName, MAX_PATH ); 97 _tsplitpath( szApplicationName, szDrive, szDir, szFileName, szExt ); 98 _tmakepath( szApplicationName, szDrive, szDir, szFileName, BIN_EXT_STR ); 99 | 71 72 STARTUPINFO aStartupInfo; 73 74 ZeroMemory( &aStartupInfo, sizeof(aStartupInfo) ); 75 aStartupInfo.cb = sizeof( aStartupInfo ); 76 GetStartupInfo( &aStartupInfo ); 77 78 // Retrieve command line --- 13 unchanged lines hidden (view full) --- 92 TCHAR szDir[MAX_PATH]; 93 TCHAR szFileName[MAX_PATH]; 94 TCHAR szExt[MAX_PATH]; 95 96 GetModuleFileName( NULL, szApplicationName, MAX_PATH ); 97 _tsplitpath( szApplicationName, szDrive, szDir, szFileName, szExt ); 98 _tmakepath( szApplicationName, szDrive, szDir, szFileName, BIN_EXT_STR ); 99 |
100 // Retreive actual environment | 100 // Retrieve actual environment |
101 102 TCHAR szBuffer[1024]; 103 TCHAR szPathValue[1024] = TEXT(""); 104 105#ifdef DEFAULT_LIBPATH 106 _tmakepath( szPathValue, szDrive, szDir, DEFAULT_LIBPATH, TEXT("") ); 107#endif 108 --- 86 unchanged lines hidden --- | 101 102 TCHAR szBuffer[1024]; 103 TCHAR szPathValue[1024] = TEXT(""); 104 105#ifdef DEFAULT_LIBPATH 106 _tmakepath( szPathValue, szDrive, szDir, DEFAULT_LIBPATH, TEXT("") ); 107#endif 108 --- 86 unchanged lines hidden --- |