Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.33 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.33 KB

WinINet Connection Security

A small example of using the Windows Internet (WinINet) API to interrogate open internet handles for negotiated security protocols and ciphers.

Usage:

IntPtr internetHandle = InternetServices.InternetOpen("Debug", 1, null, null, 0);
internetHandle = InternetServices.InternetOpenUrl(
    internetHandle, @"https://www.google.com/", null, 0, 2147483648, IntPtr.Zero);
SecurityInfo securityInfo = InternetServices.GetSecurityInfo(internetHandle);

// When creating internet handles make sure to free them once they are no longer needed.
InternetServices.InternetCloseHandle(internetHandle);

Locals View

All necessary functions have been wrapped for you and further documentation can be found below: