Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Stevens
committed
Dec 14, 2012
1 parent
2c5d507
commit 5cfabd1
Showing
8 changed files
with
163 additions
and
13 deletions.
There are no files selected for viewing
Binary file not shown.
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
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,14 +1,43 @@ | ||
// Copyright © Dan Stevens 2012 | ||
// | ||
// Distributed under the terms of the Boost Software License, Version 1.0. | ||
// See accompanying file *LICENSE.txt*. | ||
// | ||
// Dependancies: | ||
// - string.h | ||
// - windows.h | ||
// - wininet.h | ||
// | ||
#pragma once | ||
#include "stdafx.h" | ||
#include "ProxySettings.h" | ||
|
||
namespace ieproxy { namespace api | ||
{ | ||
|
||
#define BYPASS_LOCAL_STR "<local>" | ||
#define BYPASS_LOCAL_STR "<local>" | ||
|
||
char* StringToCharPtr(std::string& s); | ||
bool LoadFromSystem(ProxySettings& p); | ||
bool SaveToSystem(const ProxySettings& p); | ||
/** | ||
* Allocates character array using the contents of the given string object. | ||
* \param s The std::string object from which to copy to the newly newly allocated character array | ||
* \return A pointer to the newly allocated character array. | ||
*/ | ||
char* StringToCharPtr(std::string& s); | ||
|
||
/** | ||
* Populates the given ProxySettings object with values retrieved via tine WinINET API. | ||
* \param p The ProxySettings object to populate. | ||
* \return true if the WinINET API reports that the proxy settings were retrieved successfully or false if there | ||
* was an error. | ||
*/ | ||
bool LoadFromSystem(ProxySettings& p); | ||
|
||
/** | ||
* Updates the proxy settings for Internet Explorer using values contained within the given ProxySettings object. | ||
* \param The ProxySettings object to retrieve proxy settings from. | ||
* \return true if the WinINET API reports that the proxy settings were updated successfully or false if there was | ||
* an error. | ||
*/ | ||
bool SaveToSystem(const ProxySettings& p); | ||
|
||
} } |
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