Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCalculating free space Pin
Waldermort4-Nov-06 22:42
Waldermort4-Nov-06 22:42 
AnswerRe: Calculating free space [modified] Pin
Stephen Hewitt5-Nov-06 11:47
Stephen Hewitt5-Nov-06 11:47 
GeneralRe: Calculating free space Pin
Waldermort5-Nov-06 18:09
Waldermort5-Nov-06 18:09 
GeneralRe: VC++8 (VS2005) Deriving class w/ wizard Pin
jeffbeat4-Nov-06 21:00
jeffbeat4-Nov-06 21:00 
QuestionVC++8 (VS2005) Deriving class w/ wizard Pin
jeffbeat4-Nov-06 19:26
jeffbeat4-Nov-06 19:26 
AnswerRe: VC++8 (VS2005) Deriving class w/ wizard Pin
Midworld084-Nov-06 20:27
Midworld084-Nov-06 20:27 
QuestionODBC & FOR XML expilicit command [modified] Pin
canerabali4-Nov-06 14:34
canerabali4-Nov-06 14:34 
QuestionWhy the same RASdialup functionality doesn't exist in WININET?? Pin
Benlahrech .Dj4-Nov-06 13:52
Benlahrech .Dj4-Nov-06 13:52 
I'm asking this question because i tried many times to find a way to change connection parameters such as times out , number of retries , login , password every thing when the user intend to do so when i found a function called RASdialup() and other functions and by filling the RASDIALPARAMS sructure and after the excution of prog finally and unfortunatly i found RAS dial up not useful since the adsl modem has been used, after i decided to look back to WININET library .. another problem found is we can only change the 'PROXY' authentication :

//hOpen is the HINTERNET handle created by Internet Open
//strUsername is a string buffer that contains the proxy username
InternetSetOption(hOpen, INTERNET_OPTION_PROXY_USERNAME,
strUsername, strlen(strUsername)+1);
//strPassword is the buffer that contains the proxy password
InternetSetOption(hOpen, INTERNET_OPTION_PROXY_PASSWORD,
strPassword, strlen(strPassword)+1);

the second flag|parameter INTERNET_OPTION_PROXY_USERNAME can be changed only to INTERNET_OPTION_USERNAME but WITH condition calling InternetConnect function and return a handle hConnect, (for my point of view i want the first flag to be NULL to indicate that we can change the DEFAULT SETTINGS).
Note that there is a way to use INTERNET_OPTION_PER_CONNECTION_OPTION as a customized option the default settings changed well and we can use LAN connection options but without authentications change!! :

BOOL SetConnectionOptions()
{
INTERNET_PER_CONN_OPTION_LIST list;
BOOL bReturn;
DWORD dwBufSize = sizeof(list);

// fill out list struct
list.dwSize = sizeof(list);
// NULL == LAN, otherwise connectoid name
list.pszConnection = NULL;
// set three options
list.dwOptionCount = 3;
list.pOptions = new INTERNET_PER_CONN_OPTION[3];
// make sure the memory was allocated
if(NULL == list.pOptions)
{
//return FALSE if the memory wasn't allocated
return FALSE;
}
// set flags
list.pOptions[0].dwOption = INTERNET_PER_CONN_FLAGS;
list.pOptions[0].Value.dwValue = PROXY_TYPE_DIRECT | PROXY_TYPE_PROXY;
// set proxy name
list.pOptions[1].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
list.pOptions[1].Value.pszValue = "http://proxy:80";
// set proxy override
list.pOptions[2].dwOption = INTERNET_PER_CONN_PROXY_BYPASS;
list.pOptions[2].Value.pszValue = "local";
// set the options on the connection
bReturn = InternetSetOption(NULL,
INTERNET_OPTION_PER_CONNECTION_OPTION, &list, dwBufSize);
//free the allocated memory
delete [] list.pOptions;
return bReturn;
}

If still not understand ignore it and help for how to change all default connection settings with any type of connection (LAN/ADSL/PHONE DIAL UP) ... I am really stuck Frown | :(


Anyone who considers arithmetical methods of producing random numbers is, of course, in a state of sin.
John von Neumann

QuestionCustomising the title bar Pin
Sydes4-Nov-06 10:26
Sydes4-Nov-06 10:26 
AnswerRe: Customising the title bar Pin
Waldermort4-Nov-06 11:14
Waldermort4-Nov-06 11:14 
GeneralRe: Customising the title bar Pin
Sydes4-Nov-06 14:41
Sydes4-Nov-06 14:41 
Questionapplication configuration is incorrect Pin
edvintas4-Nov-06 8:00
edvintas4-Nov-06 8:00 
AnswerRe: application configuration is incorrect Pin
Waldermort4-Nov-06 8:31
Waldermort4-Nov-06 8:31 
AnswerRe: application configuration is incorrect Pin
Mark Salsbery4-Nov-06 8:36
Mark Salsbery4-Nov-06 8:36 
GeneralRe: application configuration is incorrect Pin
edvintas4-Nov-06 9:45
edvintas4-Nov-06 9:45 
GeneralRe: application configuration is incorrect Pin
Waldermort4-Nov-06 10:14
Waldermort4-Nov-06 10:14 
GeneralRe: application configuration is incorrect Pin
edvintas4-Nov-06 10:46
edvintas4-Nov-06 10:46 
GeneralRe: application configuration is incorrect Pin
David Crow5-Nov-06 6:37
David Crow5-Nov-06 6:37 
GeneralRe: application configuration is incorrect Pin
Michael Dunn4-Nov-06 10:26
sitebuilderMichael Dunn4-Nov-06 10:26 
GeneralRe: application configuration is incorrect Pin
edvintas4-Nov-06 10:49
edvintas4-Nov-06 10:49 
QuestionGet keys of HKEY_CURRENT_USER Pin
Daniel Kanev4-Nov-06 6:43
Daniel Kanev4-Nov-06 6:43 
AnswerRe: Get keys of HKEY_CURRENT_USER Pin
Waldermort4-Nov-06 7:19
Waldermort4-Nov-06 7:19 
AnswerRe: Get keys of HKEY_CURRENT_USER Pin
Hamid_RT4-Nov-06 20:40
Hamid_RT4-Nov-06 20:40 
QuestionGetWindowRect() Pin
Waldermort4-Nov-06 5:46
Waldermort4-Nov-06 5:46 
AnswerRe: GetWindowRect() Pin
Steve Echols4-Nov-06 19:16
Steve Echols4-Nov-06 19:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.