-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option to create a unique desktop name added.
- Loading branch information
Showing
9 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#pragma once | ||
|
||
/* # Copyright 2014 Peter Vrabel([email protected]) | ||
# | ||
# This file is part of 'Headless Selenium for Win'. | ||
# | ||
# 'Headless Selenium for Win' is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# 'Headless Selenium for Win' is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with 'Headless Selenium for Win'.If not, see <http://www.gnu.org/licenses/>. */ | ||
|
||
#include "stdafx.h" | ||
|
||
class Environment { | ||
public: | ||
static bool variableExists(const std::string &); | ||
}; | ||
|
||
// inline | ||
|
||
inline | ||
bool Environment::variableExists(const std::string &var) { | ||
wchar_t buf[104]; | ||
|
||
auto ret = GetEnvironmentVariable( | ||
boost::from_utf8(var).c_str(), | ||
buf, 104); | ||
|
||
if (!ret && GetLastError()==ERROR_ENVVAR_NOT_FOUND) | ||
return false; | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#define FILEVER 1,1,0,0 | ||
#define PRODUCTVER 1,1,0,0 | ||
#define STRFILEVER "1, 1\0" | ||
#define STRPRODUCTVER "1, 1\0" | ||
#define FILEVER 1,2,0,0 | ||
#define PRODUCTVER 1,2,0,0 | ||
#define STRFILEVER "1, 2\0" | ||
#define STRPRODUCTVER "1, 2\0" |