46 references to WinHttp
System (46)
net\System\Net\_SafeNetHandles.cs (1)
429
return UnsafeNclNativeMethods.
WinHttp
.WinHttpCloseHandle(handle);
net\System\Net\_WinHttpWebProxyDataBuilder.cs (3)
15
UnsafeNclNativeMethods.
WinHttp
.WINHTTP_CURRENT_USER_IE_PROXY_CONFIG ieProxyConfig =
16
new UnsafeNclNativeMethods.
WinHttp
.WINHTTP_CURRENT_USER_IE_PROXY_CONFIG();
22
if (UnsafeNclNativeMethods.
WinHttp
.WinHttpGetIEProxyConfigForCurrentUser(ref ieProxyConfig))
net\System\Net\NetWebProxyFinder.cs (4)
463
scriptLocation = SafeDetectAutoProxyUrl(UnsafeNclNativeMethods.
WinHttp
.AutoDetectType.Dhcp);
468
scriptLocation = SafeDetectAutoProxyUrl(UnsafeNclNativeMethods.
WinHttp
.AutoDetectType.DnsA);
496
UnsafeNclNativeMethods.
WinHttp
.AutoDetectType discoveryMethod)
505
bool success = UnsafeNclNativeMethods.
WinHttp
.WinHttpDetectAutoProxyConfigUrl(discoveryMethod, out autoProxyUrl);
net\System\Net\WinHttpWebProxyFinder.cs (38)
21
session = UnsafeNclNativeMethods.
WinHttp
.WinHttpOpen(null,
22
UnsafeNclNativeMethods.
WinHttp
.AccessType.NoProxy, null, null, 0);
40
if (!UnsafeNclNativeMethods.
WinHttp
.WinHttpSetTimeouts(session, timeout, timeout, timeout, timeout))
68
int errorCode = (int)UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AudodetectionFailed;
79
if (errorCode == (int)UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.UnrecognizedScheme)
157
UnsafeNclNativeMethods.
WinHttp
.WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions =
158
new UnsafeNclNativeMethods.
WinHttp
.WINHTTP_AUTOPROXY_OPTIONS();
168
autoProxyOptions.Flags = UnsafeNclNativeMethods.
WinHttp
.AutoProxyFlags.AutoDetect;
170
autoProxyOptions.AutoDetectFlags = UnsafeNclNativeMethods.
WinHttp
.AutoDetectType.Dhcp |
171
UnsafeNclNativeMethods.
WinHttp
.AutoDetectType.DnsA;
176
autoProxyOptions.Flags = UnsafeNclNativeMethods.
WinHttp
.AutoProxyFlags.AutoProxyConfigUrl;
178
autoProxyOptions.AutoDetectFlags = UnsafeNclNativeMethods.
WinHttp
.AutoDetectType.None;
190
if ((errorCode == (int)UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.LoginFailure) &&
210
ref UnsafeNclNativeMethods.
WinHttp
.WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions,
216
UnsafeNclNativeMethods.
WinHttp
.WINHTTP_PROXY_INFO proxyInfo =
217
new UnsafeNclNativeMethods.
WinHttp
.WINHTTP_PROXY_INFO();
225
success = UnsafeNclNativeMethods.
WinHttp
.WinHttpGetProxyForUrl(session,
262
switch ((UnsafeNclNativeMethods.
WinHttp
.ErrorCodes)errorCode)
264
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AutoProxyServiceError:
265
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AudodetectionFailed:
266
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.BadAutoProxyScript:
267
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.LoginFailure:
268
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.OperationCancelled:
269
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.Timeout:
270
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.UnableToDownloadScript:
271
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.UnrecognizedScheme:
285
switch ((UnsafeNclNativeMethods.
WinHttp
.ErrorCodes)errorCode)
287
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AudodetectionFailed:
290
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.UnableToDownloadScript:
293
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.UnrecognizedScheme:
296
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.BadAutoProxyScript:
297
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.InvalidUrl:
298
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AutoProxyServiceError:
327
switch ((UnsafeNclNativeMethods.
WinHttp
.ErrorCodes)errorCode)
329
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.Success:
330
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.InvalidUrl:
333
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.BadAutoProxyScript:
336
case UnsafeNclNativeMethods.
WinHttp
.ErrorCodes.AutoProxyServiceError: