Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than wininet, prefix the name with the module name and a period.
<DllImport("wininet.dll", SetLastError:=True)> Shared Function InternetQueryOption(ByVal hInternet As IntPtr, ByVal dwOption As UInteger, ByVal lpBuffer() As Char, ByRef lpdwBufferLength As Integer) As Boolean
End Function
Declare Function InternetQueryOption Lib "wininet.dll" (TODO) As TODO
[StructLayout(LayoutKind.Sequential)]
public struct INTERNET_VERSION_INFO
{
public int dwMajorVersion;
public int dwMinorVersion;
};
// Note that I named the imported fcn "InternetQueryVersion" due to custom arg signature
[DllImport("wininet.dll", EntryPoint = "InternetQueryOption")]
private extern static bool InternetQueryVersion(int Handle, int OptionFlag, ref INTERNET_VERSION_INFO Version, ref int size);
INTERNET_VERSION_INFO Version = new INTERNET_VERSION_INFO();
int size = Marshal.SizeOf(Version);
bool r = InternetQueryVersion(0, INTERNET_OPTION_VERSION, ref Version, ref size);
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
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).