Desktop Functions: Smart Device Functions:
|
InternetOpen (wininet)
C# Signature:const int INTERNET_OPEN_TYPE_PRECONFIG = 0; // use registry configuration const int INTERNET_OPEN_TYPE_DIRECT = 1; // direct to net const int INTERNET_OPEN_TYPE_PROXY = 3; // via named proxy const int INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4; // prevent using java/script/INS
[DllImport("wininet.dll", SetLastError=true, CharSet=CharSet.Auto)] VB Signature:Const INTERNET_OPEN_TYPE_PRECONFIG = 0 ' // use registry configuration Const INTERNET_OPEN_TYPE_DIRECT = 1 ' // direct to net Const INTERNET_OPEN_TYPE_PROXY = 3 ' // via named proxy Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4 ' // prevent using java/script/INS
Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" ( _ Notes:
sAgent can be any string, it is just to identify the connection None. Tips & Tricks:Please add some! Sample Code:C# Sample:
IntPtr hInternet = InternetOpen("browser", INTERNET_OPEN_TYPE_DIRECT, null, null, 0); VB Sample:
Dim hInet As Int32 = InternetOpen(HttpAgent, INTERNET_OPEN_TYPE_PRECONFIG, _ Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|