Click here to Skip to main content
15,904,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: adding webpage or text documnet Pin
BadJerry25-Nov-03 1:09
BadJerry25-Nov-03 1:09 
GeneralRe: adding webpage or text documnet Pin
N.Byarley25-Nov-03 5:04
N.Byarley25-Nov-03 5:04 
GeneralCreateWindow; Pin
Bo Hunter24-Nov-03 20:27
Bo Hunter24-Nov-03 20:27 
GeneralRe: CreateWindow; Pin
BaldwinMartin24-Nov-03 21:08
BaldwinMartin24-Nov-03 21:08 
GeneralRe: CreateWindow; Pin
Oliver Anhuth24-Nov-03 22:56
Oliver Anhuth24-Nov-03 22:56 
GeneralModifying Proxy setting of IE Pin
ssudhaiyer24-Nov-03 19:40
ssudhaiyer24-Nov-03 19:40 
GeneralRe: Modifying Proxy setting of IE Pin
John R. Shaw24-Nov-03 19:54
John R. Shaw24-Nov-03 19:54 
GeneralRe: Modifying Proxy setting of IE Pin
Joaquín M López Muñoz24-Nov-03 23:30
Joaquín M López Muñoz24-Nov-03 23:30 
The following snippet does what you want, I guess:
char szConnection[]=...; //name of the dial-up connection
char szProxy[]=...; // in format address:port
 
INTERNET_PER_CONN_OPTION_LIST    List;
INTERNET_PER_CONN_OPTION         Option[1];
unsigned long                    nSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
 
Option[0].dwOption = INTERNET_PER_CONN_PROXY_SERVER;
Option[0].Value.pszValue = (LPSTR)szProxy;
 
List.dwSize = sizeof(INTERNET_PER_CONN_OPTION_LIST);
List.pszConnection = (LPSTR)szConnection;
List.dwOptionCount = 1;
List.dwOptionError = 0;
List.pOptions = Option;
 
InternetSetOption(NULL, INTERNET_OPTION_PER_CONNECTION_OPTION, &List, nSize);
The proxy is set for all protocols within the connection (HTTP, FTP, etc.) Hope this helps.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralExplain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 17:31
BaldwinMartin24-Nov-03 17:31 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 20:22
Ilamparithi24-Nov-03 20:22 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 20:29
BaldwinMartin24-Nov-03 20:29 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 20:43
BaldwinMartin24-Nov-03 20:43 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 21:09
Ilamparithi24-Nov-03 21:09 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin24-Nov-03 21:18
BaldwinMartin24-Nov-03 21:18 
GeneralRe: Explain to me Net Bios Names! Pin
Ilamparithi24-Nov-03 22:07
Ilamparithi24-Nov-03 22:07 
GeneralRe: Explain to me Net Bios Names! Pin
speedpacer25-Nov-03 13:20
speedpacer25-Nov-03 13:20 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin25-Nov-03 15:10
BaldwinMartin25-Nov-03 15:10 
GeneralRe: Explain to me Net Bios Names! Pin
speedpacer25-Nov-03 16:21
speedpacer25-Nov-03 16:21 
GeneralRe: Explain to me Net Bios Names! Pin
BaldwinMartin25-Nov-03 16:27
BaldwinMartin25-Nov-03 16:27 
QuestionHow can I get the window handle from process id? Pin
Anonymous24-Nov-03 17:28
Anonymous24-Nov-03 17:28 
AnswerRe: How can I get the window handle from process id? Pin
John R. Shaw24-Nov-03 18:26
John R. Shaw24-Nov-03 18:26 
GeneralRe: How can I get the window handle from process id? Pin
Anonymous24-Nov-03 21:51
Anonymous24-Nov-03 21:51 
GeneralOriginal Window Procedure Pin
alex.barylski24-Nov-03 17:24
alex.barylski24-Nov-03 17:24 
GeneralRe: Original Window Procedure Pin
John R. Shaw24-Nov-03 18:05
John R. Shaw24-Nov-03 18:05 
GeneralRe: Original Window Procedure Pin
alex.barylski24-Nov-03 18:10
alex.barylski24-Nov-03 18:10 

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.