609 references to UnsafeNclNativeMethods
System (609)
net\System\Net\_AuthenticationManagerBase.cs (1)
80if (UnsafeNclNativeMethods.HttpApi.ExtendedProtectionSupported)
net\System\Net\_AutoWebProxyScriptEngine.cs (14)
61SafeRegistryHandle.RegOpenCurrentUser(UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out hkcu); 401UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, RegBlobWebProxyDataBuilder.ProxyKey); 407UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, RegBlobWebProxyDataBuilder.PolicyKey); 431errorCode = hkcu.RegOpenKeyEx(subKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key); 436errorCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND; 441errorCode = SafeRegistryHandle.RegOpenKeyEx(baseKey, subKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key); 452errorCode = key.RegNotifyChangeKeyValue(true, UnsafeNclNativeMethods.RegistryHelper.REG_NOTIFY_CHANGE_LAST_SET, changeEvent.SafeWaitHandle, true); 611UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, 646UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, 692private static volatile UnsafeNclNativeMethods.RasHelper s_RasHelper; 712s_CurrentAutoDetector = new AutoDetector(UnsafeNclNativeMethods.RasHelper.GetCurrentConnectoid(), 1); 717if (UnsafeNclNativeMethods.RasHelper.RasSupported) 719s_RasHelper = new UnsafeNclNativeMethods.RasHelper(); 752s_CurrentAutoDetector = new AutoDetector(UnsafeNclNativeMethods.RasHelper.GetCurrentConnectoid(), currentVersion);
net\System\Net\_AutoWebProxyScriptHelper.cs (7)
589UnsafeNclNativeMethods.OSSOCK.WSAStringToAddress( 601UnsafeNclNativeMethods.OSSOCK.WSAStringToAddress( 643int cbRequiredBytes = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS_LIST)) + 644 (SockAddrIn6List.Length -1)*Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS)); 660 UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS_LIST* pList 661 = (UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS_LIST*)pSocketAddressList; 663 UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS* pSocketAddresses =
net\System\Net\_ListenerAsyncResult.cs (11)
39if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 40errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 48if (errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 82if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 83statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) 119uint statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 125statusCode = UnsafeNclNativeMethods.HttpApi.HttpReceiveHttpRequest( 128(uint) UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY, 135if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_INVALID_PARAMETER && m_RequestContext.RequestBlob->RequestId != 0) 143else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 150else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS &&
net\System\Net\_ListenerRequestStream.cs (16)
126dataRead = UnsafeNclNativeMethods.HttpApi.GetChunks(m_HttpContext.Request.RequestBuffer, m_HttpContext.Request.OriginalBlobAddress, ref m_DataChunkIndex, ref m_DataChunkOffset, buffer, offset, size); 149flags = (uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY; 153UnsafeNclNativeMethods.HttpApi.HttpReceiveRequestEntityBody( 165if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) { 180if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF || dataRead == 0) { 211dataRead = UnsafeNclNativeMethods.HttpApi.GetChunks(m_HttpContext.Request.RequestBuffer, m_HttpContext.Request.OriginalBlobAddress, ref m_DataChunkIndex, ref m_DataChunkOffset, buffer, offset, size); 242flags = (uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY; 246UnsafeNclNativeMethods.HttpApi.HttpReceiveRequestEntityBody( 264if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) { 266if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) { 277else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 358return UnsafeNclNativeMethods.HttpApi.GetChunks(m_HttpContext.Request.RequestBuffer, 399if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) {
net\System\Net\_ListenerResponseStream.cs (48)
29internal UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS ComputeLeftToWrite() { 31UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; 36UnsafeNclNativeMethods.HttpApi.HTTP_VERB method = m_HttpContext.GetKnownMethod(); 37m_LeftToWrite = method != UnsafeNclNativeMethods.HttpApi.HTTP_VERB.HttpVerbHEAD ? m_HttpContext.Response.ContentLength64 : 0; 139UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = ComputeLeftToWrite(); 179UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK dataChunk = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 180dataChunk.DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 184flags |= m_LeftToWrite == size ? UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE : UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_MORE_DATA; 192UnsafeNclNativeMethods.HttpApi.HttpSendResponseEntityBody( 207statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 220if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) { 245UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = ComputeLeftToWrite(); 258flags |= m_LeftToWrite==size ? UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE : UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_MORE_DATA; 274UnsafeNclNativeMethods.HttpApi.HttpSendResponseEntityBody( 297if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) { 311if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && HttpListener.SkipIOCPCallbackOnSuccess) 318if ((flags & UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_MORE_DATA) == 0) 386UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = ComputeLeftToWrite(); 399flags |= UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_DISCONNECT; 403UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK* pDataChunk = null; 405UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK dataChunk = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 406dataChunk.DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 418UnsafeNclNativeMethods.HttpApi.HttpSendResponseEntityBody( 433statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 443if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) { 474UnsafeNclNativeMethods.CancelIoEx(requestQueueHandle, asyncState.m_pOverlapped); 481private UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK[] m_DataChunks; 497internal UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK* pDataChunks { 503return (UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK*)(Marshal.UnsafeAddrOfPinnedArrayElement(m_DataChunks, 0)); 522m_DataChunks = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK[chunked ? 3 : 1]; 535m_DataChunks[0] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 536m_DataChunks[0].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 541m_DataChunks[1] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 542m_DataChunks[1].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 547m_DataChunks[2] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 548m_DataChunks[2].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 555m_DataChunks[0] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 556m_DataChunks[0].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 589if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) {
net\System\Net\_LoggingObject.cs (1)
981UnsafeNclNativeMethods.DebugBreak();
net\System\Net\_NativeSSPI.cs (7)
119status = UnsafeNclNativeMethods.NativeNTSSPI.EncryptMessage(ref context._handle, 0, inputOutput, sequenceNumber); 146status = UnsafeNclNativeMethods.NativeNTSSPI.DecryptMessage(ref context._handle, inputOutput, sequenceNumber, null); 281status = UnsafeNclNativeMethods.NativeNTSSPI.EncryptMessage(ref context._handle, 0, inputOutput, sequenceNumber); 310status = UnsafeNclNativeMethods.NativeNTSSPI.DecryptMessage(ref context._handle, inputOutput, sequenceNumber, &qop); 348status = UnsafeNclNativeMethods.NativeNTSSPI.EncryptMessage(ref context._handle, SECQOP_WRAP_NO_ENCRYPT, inputOutput, sequenceNumber); 377status = UnsafeNclNativeMethods.NativeNTSSPI.DecryptMessage(ref context._handle, inputOutput, sequenceNumber, &qop); 450status = UnsafeNclNativeMethods.SafeNetHandles.QuerySecurityContextToken(ref phContext._handle, out safeHandle);
net\System\Net\_NTAuthentication.cs (1)
514SecurityStatus result = UnsafeNclNativeMethods.SspiHelper.SspiEncodeStringsAsAuthIdentity(
net\System\Net\_PooledStream.cs (3)
598if (UnsafeNclNativeMethods.CancelIoEx(socket.SafeHandle, IntPtr.Zero) == 0) { 623UnsafeNclNativeMethods.CancelIoEx(socket4.SafeHandle, IntPtr.Zero); 640UnsafeNclNativeMethods.CancelIoEx(socket6.SafeHandle, IntPtr.Zero);
net\System\Net\_RegBlobWebProxyDataBuilder.cs (6)
99errorCode = m_Registry.RegOpenKeyEx(ProxyKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key); 103errorCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND; 108errorCode = SafeRegistryHandle.RegOpenKeyEx(UnsafeNclNativeMethods.RegistryHelper.HKEY_LOCAL_MACHINE, ProxyKey, 0, UnsafeNclNativeMethods.RegistryHelper.KEY_READ, out key); 110if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 120if (errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS)
net\System\Net\_SafeNetHandles.cs (69)
264return UnsafeNclNativeMethods.SafeNetHandlesXPOrLater.GetAddrInfoW(nodename, servicename, ref hints, out outAddrInfo); 269UnsafeNclNativeMethods.SafeNetHandlesXPOrLater.freeaddrinfo(handle); 300return UnsafeNclNativeMethods.SafeNetHandles.CloseHandle(handle); 342return (UnsafeNclNativeMethods.SafeNetHandles.HttpCloseRequestQueue(handle) == 343UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS); 385return (UnsafeNclNativeMethods.HttpApi.HttpCloseServerSession(serverSessionId) == 386UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS); 429return UnsafeNclNativeMethods.WinHttp.WinHttpCloseHandle(handle); 447return UnsafeNclNativeMethods.SspiHelper.SspiFreeAuthIdentity(handle) == SecurityStatus.OK; 487res = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.EnumerateSecurityPackagesW(out pkgnum, out pkgArray_SECURITY); 555status = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.QueryContextAttributesW(ref phContext._handle, contextAttribute, buffer); 616status = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.SetContextAttributesW( 634return UnsafeNclNativeMethods.SafeNetHandles_SECURITY.FreeContextBuffer(handle) == 0; 665SafeLocalFree result = UnsafeNclNativeMethods.SafeNetHandles.LocalAlloc(LMEM_FIXED, (UIntPtr) cb); 675return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 696return UnsafeNclNativeMethods.SafeNetHandles.GlobalFree(handle) == IntPtr.Zero; 716SafeOverlappedFree result = UnsafeNclNativeMethods.SafeNetHandlesSafeOverlappedFree.LocalAlloc(LPTR, (UIntPtr) Win32.OverlappedSize); 754return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 782IntPtr hKernel32 = UnsafeNclNativeMethods.SafeNetHandles.GetModuleHandleW(KERNEL32); 785UnsafeNclNativeMethods.GetProcAddress(hKernel32, AddDllDirectory) != IntPtr.Zero) { 800SafeLoadLibrary result = UnsafeNclNativeMethods.SafeNetHandles.LoadLibraryExW(library, null, _flags); 809IntPtr ret = UnsafeNclNativeMethods.GetProcAddress(this, functionName); 814return UnsafeNclNativeMethods.SafeNetHandles.FreeLibrary(handle); 845UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateChain(handle); 880UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateChainList(handle); 931UnsafeNclNativeMethods.NativePKI.CERT_SELECT_CRITERIA criteria = 932new UnsafeNclNativeMethods.NativePKI.CERT_SELECT_CRITERIA(); 955criteria = new UnsafeNclNativeMethods.NativePKI.CERT_SELECT_CRITERIA(); 959UnsafeNclNativeMethods.NativePKI.CERT_EXTENSION certExtension = 960new UnsafeNclNativeMethods.NativePKI.CERT_EXTENSION(); 1030UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateContext(handle); 1119errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.AcquireCredentialsHandleW( 1172errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.AcquireCredentialsHandleW( 1221errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.AcquireCredentialsHandleW( 1277errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.AcquireCredentialsHandleW( 1384return UnsafeNclNativeMethods.SafeNetHandles_SECURITY.FreeCredentialsHandle(ref _handle) == 0; 1709errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.InitializeSecurityContextW( 2025errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.AcceptSecurityContext( 2164errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.CompleteAuthToken(contextHandle.IsZero? null: &contextHandle, inSecurityBufferDescriptor); 2287errorCode = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.ApplyControlToken(contextHandle.IsZero ? null : &contextHandle, inSecurityBufferDescriptor); 2330return UnsafeNclNativeMethods.SafeNetHandles_SECURITY.DeleteSecurityContext(ref _handle) == 0; 2586errorCode = UnsafeNclNativeMethods.SafeNetHandles.closesocket(handle); 2603errorCode = UnsafeNclNativeMethods.SafeNetHandles.ioctlsocket( 2613errorCode = UnsafeNclNativeMethods.SafeNetHandles.WSAEventSelect( 2620errorCode = UnsafeNclNativeMethods.SafeNetHandles.ioctlsocket( 2630errorCode = UnsafeNclNativeMethods.SafeNetHandles.closesocket(handle); 2653errorCode = UnsafeNclNativeMethods.SafeNetHandles.setsockopt( 2671errorCode = UnsafeNclNativeMethods.SafeNetHandles.closesocket(handle); 2718InnerSafeCloseSocket result = UnsafeNclNativeMethods.OSSOCK.WSASocket((AddressFamily) (-1),(SocketType) (-1),(ProtocolType) (-1), pinnedBuffer, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED); 2727InnerSafeCloseSocket result = UnsafeNclNativeMethods.OSSOCK.WSASocket(addressFamily, socketType, protocolType, IntPtr.Zero, 0, SocketConstructorFlags.WSA_FLAG_OVERLAPPED); 2736InnerSafeCloseSocket result = UnsafeNclNativeMethods.SafeNetHandles.accept(socketHandle.DangerousGetHandle(), socketAddress, ref socketAddressSize); 2829result = UnsafeNclNativeMethods.SafeNetHandles.LocalAllocChannelBinding(LMEM_FIXED, (UIntPtr)cb); 2842return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 2915status = UnsafeNclNativeMethods.SafeNetHandles_SECURITY.QueryContextAttributesW(ref phContext._handle, contextAttribute, buffer); 2938return UnsafeNclNativeMethods.SafeNetHandles_SECURITY.FreeContextBuffer(handle) == 0; 2972UnsafeNclNativeMethods.SafeNetHandles.UnlockUrlCacheEntryFileW(ptrStr, 0); 3001if (!UnsafeNclNativeMethods.SafeNetHandles.RetrieveUrlCacheEntryFileW(key, entryPtr, ref entryBufSize, 0)) 3031return UnsafeNclNativeMethods.RegistryHelper.RegOpenKeyEx(key, subKey, ulOptions, samDesired, out resultSubKey); 3036return UnsafeNclNativeMethods.RegistryHelper.RegOpenKeyEx(this, subKey, ulOptions, samDesired, out resultSubKey); 3056errorCode = UnsafeNclNativeMethods.RegistryHelper.RegQueryValueEx(this, name, IntPtr.Zero, out type, blob, ref size); 3057if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA && 3058(blob != null || errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS)) 3066if (errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 3073case UnsafeNclNativeMethods.RegistryHelper.REG_BINARY: 3081return UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 3084return UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_SUPPORTED; 3090return UnsafeNclNativeMethods.RegistryHelper.RegNotifyChangeKeyValue(this, watchSubTree, notifyFilter, regEvent, async); 3095return UnsafeNclNativeMethods.RegistryHelper.RegOpenCurrentUser(samDesired, out resultKey); 3102resClose = UnsafeNclNativeMethods.RegistryHelper.RegCloseKey(handle);
net\System\Net\_SecureChannel.cs (1)
1014UnsafeNclNativeMethods.AppXHelper.PrimaryWindowHandle.Value);
net\System\Net\_Semaphore.cs (2)
24Handle = UnsafeNclNativeMethods.CreateSemaphore(IntPtr.Zero, initialCount, maxCount, IntPtr.Zero); 45return UnsafeNclNativeMethods.ReleaseSemaphore(Handle, 1, IntPtr.Zero);
net\System\Net\_WinHttpWebProxyDataBuilder.cs (3)
15UnsafeNclNativeMethods.WinHttp.WINHTTP_CURRENT_USER_IE_PROXY_CONFIG ieProxyConfig = 16new UnsafeNclNativeMethods.WinHttp.WINHTTP_CURRENT_USER_IE_PROXY_CONFIG(); 22if (UnsafeNclNativeMethods.WinHttp.WinHttpGetIEProxyConfigForCurrentUser(ref ieProxyConfig))
net\System\Net\Cache\IERequestCache.cs (1)
177if (!UnsafeNclNativeMethods.UnsafeWinInetCache.UnlockUrlCacheEntryFileW(key, 0)) {
net\System\Net\Cache\WinInetCache.cs (6)
235bool found = UnsafeNclNativeMethods.UnsafeWinInetCache.GetUrlCacheEntryInfoW(entry.Key, entryPtr, ref size); 339StringBuilder sb = new StringBuilder(UnsafeNclNativeMethods.UnsafeWinInetCache.MAX_PATH); 340if (UnsafeNclNativeMethods.UnsafeWinInetCache.CreateUrlCacheEntryW(entry.Key, entry.OptionalLength, entry.FileExt, sb, 0)) { 367if (!UnsafeNclNativeMethods.UnsafeWinInetCache.CommitUrlCacheEntryW( 406if (!UnsafeNclNativeMethods.UnsafeWinInetCache.SetUrlCacheEntryInfoW(newEntry.Key, bytePtr, attributes)) { 504if (!UnsafeNclNativeMethods.UnsafeWinInetCache.DeleteUrlCacheEntryW(entry.Key)) {
net\System\Net\DNS.cs (4)
247UnsafeNclNativeMethods.OSSOCK.gethostbyname( 413UnsafeNclNativeMethods.OSSOCK.gethostbyaddr( 462UnsafeNclNativeMethods.OSSOCK.gethostname( 1205UnsafeNclNativeMethods.OSSOCK.GetNameInfoW(
net\System\Net\HttpListener.cs (92)
46private UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* m_MemoryBlob; 47private UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* m_OriginalBlobAddress; 51protected void BaseConstruction(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* requestBlob) 93internal UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* RequestBlob 122UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* blob = m_MemoryBlob; 127protected void SetBlob(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* requestBlob) 169private UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* Allocate(uint size) 184return (UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST*) Marshal.UnsafeAddrOfPinnedArrayElement(RequestBuffer, 0); 236private UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST* Allocate(int size) 252return (UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST*) Marshal.UnsafeAddrOfPinnedArrayElement(RequestBuffer, 0); 284private static readonly Type ChannelBindingStatusType = typeof(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_CHANNEL_BIND_STATUS); 286Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_CHANNEL_BIND_STATUS)); 367if (!UnsafeNclNativeMethods.HttpApi.Supported) { 371Debug.Assert(UnsafeNclNativeMethods.HttpApi.ApiVersion == 372UnsafeNclNativeMethods.HttpApi.HTTP_API_VERSION.Version20, "Invalid Http api version"); 501private void SetUrlGroupProperty(UnsafeNclNativeMethods.HttpApi.HTTP_SERVER_PROPERTY property, IntPtr info, uint infosize) { 502uint statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 510statusCode = UnsafeNclNativeMethods.HttpApi.HttpSetUrlGroupProperty( 513if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 524UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_LIMIT_INFO timeoutinfo = 525new UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_LIMIT_INFO(); 527timeoutinfo.Flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_PROPERTY_FLAG_PRESENT; 529(ushort)timeouts[(int)UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.DrainEntityBody]; 531(ushort)timeouts[(int)UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.EntityBody]; 533(ushort)timeouts[(int)UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.RequestQueue]; 535(ushort)timeouts[(int)UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.IdleConnection]; 537(ushort)timeouts[(int)UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.HeaderWait]; 543UnsafeNclNativeMethods.HttpApi.HTTP_SERVER_PROPERTY.HttpServerTimeoutsProperty, 544infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_LIMIT_INFO))); 557return UnsafeNclNativeMethods.HttpApi.Supported; 677if (statusCode!=UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 678if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_ALREADY_EXISTS) 777uint statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 797statusCode = UnsafeNclNativeMethods.HttpApi.HttpCreateServerSession( 798UnsafeNclNativeMethods.HttpApi.Version, &id, 0); 800if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 809statusCode = UnsafeNclNativeMethods.HttpApi.HttpCreateUrlGroup( 812if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 904uint statusCode = UnsafeNclNativeMethods.HttpApi.HttpCloseUrlGroup(m_UrlGroupId); 906if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 922UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO info = new UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO(); 923info.Flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_PROPERTY_FLAG_PRESENT; 928SetUrlGroupProperty(UnsafeNclNativeMethods.HttpApi.HTTP_SERVER_PROPERTY.HttpServerBindingProperty, 929infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO))); 942UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO info = new UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO(); 943info.Flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; 948uint statusCode = UnsafeNclNativeMethods.HttpApi.HttpSetUrlGroupProperty(m_UrlGroupId, 949UnsafeNclNativeMethods.HttpApi.HTTP_SERVER_PROPERTY.HttpServerBindingProperty, 950infoptr, (uint)Marshal.SizeOf(typeof(UnsafeNclNativeMethods.HttpApi.HTTP_BINDING_INFO))); 952if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 988uint statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 992UnsafeNclNativeMethods.SafeNetHandles.HttpCreateRequestQueue( 993UnsafeNclNativeMethods.HttpApi.Version, null, null, 0, out requestQueueHandle); 995if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 1001!UnsafeNclNativeMethods.SetFileCompletionNotificationModes( 1003UnsafeNclNativeMethods.FileCompletionNotificationModes.SkipCompletionPortOnSuccess | 1004UnsafeNclNativeMethods.FileCompletionNotificationModes.SkipSetEventOnHandle)) 1099UnsafeNclNativeMethods.HttpApi.HttpAddUrlToUrlGroup( 1112UnsafeNclNativeMethods.HttpApi.HttpRemoveUrlFromUrlGroup( 1117if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND) 1129if (statusCode!=UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 1130if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_ALREADY_EXISTS) 1154uint statusCode = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 1163UnsafeNclNativeMethods.HttpApi.HttpReceiveHttpRequest( 1166(uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY, 1174if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_INVALID_PARAMETER && requestId != 0) { 1180else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 1191if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 1262if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 1263statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) 1334string verb = UnsafeNclNativeMethods.HttpApi.GetVerb(memoryBlob.RequestBlob); 1335string authorizationHeader = UnsafeNclNativeMethods.HttpApi.GetKnownHeader(memoryBlob.RequestBlob, (int) HttpRequestHeader.Authorization); 2294uint statusCode = UnsafeNclNativeMethods.HttpApi.HttpWaitForDisconnect( 2301if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS || 2302statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) 2310if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && HttpListener.SkipIOCPCallbackOnSuccess) 2326UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE httpResponse = new UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE(); 2327httpResponse.Version = new UnsafeNclNativeMethods.HttpApi.HTTP_VERSION(); 2348UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER[] headersArray = null; 2354headersArray = new UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER[httpResponse.Headers.UnknownHeaderCount]; 2362httpResponse.Headers.pUnknownHeaders = (UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER*) Marshal.UnsafeAddrOfPinnedArrayElement(headersArray, 0); 2379UnsafeNclNativeMethods.HttpApi.HttpSendHttpResponse( 2415if (statusCode!=UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 2462statusCode = UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate( 2465(uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_RECEIVE_SECURE_CHANNEL_TOKEN, 2471if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 2484else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 2491else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_INVALID_PARAMETER) 2506} while (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS);
net\System\Net\HttpListenerContext.cs (5)
236internal UnsafeNclNativeMethods.HttpApi.HTTP_VERB GetKnownMethod() { 238return UnsafeNclNativeMethods.HttpApi.GetKnownVerb(Request.RequestBuffer, Request.OriginalBlobAddress); 246uint statusCode = UnsafeNclNativeMethods.HttpApi.HttpCancelHttpRequest(requestQueueHandle, requestId, 253uint statusCode = UnsafeNclNativeMethods.HttpApi.HttpCancelHttpRequest(requestQueueHandle, requestId, 259if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_CONNECTION_INVALID)
net\System\Net\HttpListenerRequest.cs (54)
39private UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* m_MemoryBlob; 50internal UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* RequestBlob 87m_MemoryBlob = (UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO*) Marshal.UnsafeAddrOfPinnedArrayElement(m_BackingBuffer, 0); 100if (errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 106UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* pClientCertInfo = asyncResult.RequestBlob; 111UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate( 114(uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE, 120if(errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING || 121(errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && !HttpListener.SkipIOCPCallbackOnSuccess)) 127if (errorCode!=UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 132UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* pClientCertInfo = asyncResult.m_MemoryBlob; 169if(errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING){ 268UnsafeNclNativeMethods.HttpApi.HTTP_COOKED_URL cookedUrl = memoryBlob.RequestBlob->CookedUrl; 425m_WebHeaders = UnsafeNclNativeMethods.HttpApi.GetHeaders(RequestBuffer, OriginalBlobAddress); 435m_HttpMethod = UnsafeNclNativeMethods.HttpApi.GetVerb(RequestBuffer, OriginalBlobAddress); 753m_RemoteEndPoint = UnsafeNclNativeMethods.HttpApi.GetRemoteEndPoint(RequestBuffer, OriginalBlobAddress); 763m_LocalEndPoint = UnsafeNclNativeMethods.HttpApi.GetLocalEndPoint(RequestBuffer, OriginalBlobAddress); 835UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate( 838(uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE, 845if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) 847UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* pClientCertInfo = asyncResult.RequestBlob; 852if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 853statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) { 860if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 927UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO* pClientCertInfo = (UnsafeNclNativeMethods.HttpApi.HTTP_SSL_CLIENT_CERT_INFO*) pClientCertInfoBlob; 933UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate( 936(uint)UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE, 943if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_MORE_DATA) { 947else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) { 972GlobalLog.Assert(statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND, "HttpListenerRequest#{0}::ProcessClientCertificate()|Call to UnsafeNclNativeMethods.HttpApi.HttpReceiveClientCertificate() failed with statusCode {1}.", ValidationHelper.HashString(this), statusCode); 1013return UnsafeNclNativeMethods.HttpApi.GetKnownHeader(RequestBuffer, OriginalBlobAddress, (int) header); 1031if (UnsafeNclNativeMethods.TokenBindingOSHelper.SupportsTokenBinding) 1068UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_TOKEN_BINDING_INFO* pTokenBindingInfo = UnsafeNclNativeMethods.HttpApi.GetTlsTokenBindingRequestInfo(RequestBuffer, OriginalBlobAddress); 1069UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_TOKEN_BINDING_INFO_V1* pTokenBindingInfo_V1 = null; 1075pTokenBindingInfo_V1 = UnsafeNclNativeMethods.HttpApi.GetTlsTokenBindingRequestInfo_V1(RequestBuffer, OriginalBlobAddress); 1086UnsafeNclNativeMethods.HttpApi.HeapAllocHandle handle = null; 1090UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_V2* request = (UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_V2*)pMemoryBlob; 1096m_TokenBindingVerifyMessageStatus = UnsafeNclNativeMethods.HttpApi.TokenBindingVerifyMessage_V1( 1108UnsafeNclNativeMethods.HttpApi.TokenBindingVerifyMessage( 1144private void GenerateTokenBindings(UnsafeNclNativeMethods.HttpApi.HeapAllocHandle handle) 1146UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_LIST* pResultList = (UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_LIST*)handle.DangerousGetHandle(); 1149UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_DATA* pThisResultData = &pResultList->resultData[i]; 1156if (pThisResultData->bindingType == UnsafeNclNativeMethods.HttpApi.TOKENBINDING_TYPE.TOKENBINDING_TYPE_PROVIDED) 1160else if (pThisResultData->bindingType == UnsafeNclNativeMethods.HttpApi.TOKENBINDING_TYPE.TOKENBINDING_TYPE_REFERRED) 1172private void GenerateTokenBindings_V1(UnsafeNclNativeMethods.HttpApi.HeapAllocHandle handle) 1174UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_LIST_V1* pResultList = (UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_LIST_V1*)handle.DangerousGetHandle(); 1177UnsafeNclNativeMethods.HttpApi.TOKENBINDING_RESULT_DATA_V1* pThisResultData = &pResultList->resultData[i]; 1189if (pThisResultData->identifierData->bindingType == UnsafeNclNativeMethods.HttpApi.TOKENBINDING_TYPE.TOKENBINDING_TYPE_PROVIDED) 1193else if (pThisResultData->identifierData->bindingType == UnsafeNclNativeMethods.HttpApi.TOKENBINDING_TYPE.TOKENBINDING_TYPE_REFERRED)
net\System\Net\HttpListenerResponse.cs (25)
37private UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE m_NativeResponse; 43m_NativeResponse = new UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE(); 182m_NativeResponse = new UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE(); 474internal unsafe uint SendHeaders(UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK* pDataChunk, 476UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags, 529fixed (UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE* pResponse = &m_NativeResponse) { 535UnsafeNclNativeMethods.HttpApi.HttpSendHttpResponse( 548statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 558fixed (UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE* pResponse = &m_NativeResponse) { 564UnsafeNclNativeMethods.HttpApi.HttpSendHttpResponse( 577statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 633internal UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS ComputeHeaders() { 634UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; 669flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; 676flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; // seems like HTTP_SEND_RESPONSE_FLAG_MORE_DATA but this hangs the app; 683if (flags==UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE) { 684flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_DISCONNECT; 707private List<GCHandle> SerializeHeaders(ref UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADERS headers, 709UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER[] unknownHeaders = null; 769lookup = UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.IndexOfKnownHeader(headerName); 786fixed (UnsafeNclNativeMethods.HttpApi.HTTP_KNOWN_HEADER* pKnownHeaders = &headers.KnownHeaders) { 790lookup = UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.IndexOfKnownHeader(headerName); 805unknownHeaders = new UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER[numUnknownHeaders]; 808headers.pUnknownHeaders = (UnsafeNclNativeMethods.HttpApi.HTTP_UNKNOWN_HEADER*)gcHandle.AddrOfPinnedObject();
net\System\Net\HttpListenerTimeoutManager.cs (12)
65private TimeSpan GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE type) 73private void SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE type, TimeSpan value) 114return GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.EntityBody); 118SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.EntityBody, value); 135return GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.DrainEntityBody); 139SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.DrainEntityBody, value); 151return GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.RequestQueue); 155SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.RequestQueue, value); 168return GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.IdleConnection); 172SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.IdleConnection, value); 186return GetTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.HeaderWait); 190SetTimespanTimeout(UnsafeNclNativeMethods.HttpApi.HTTP_TIMEOUT_TYPE.HeaderWait, value);
net\System\Net\Internal.cs (7)
560UnsafeNclNativeMethods.OSSOCK.ioctlsocket(ipv4Socket, IoctlSocketConstants.FIONBIO, ref blocking); 566UnsafeNclNativeMethods.OSSOCK.ioctlsocket(ipv6Socket,IoctlSocketConstants.FIONBIO,ref blocking); 578errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking( 593errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(ipv4Socket, ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange); 601errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking( 616errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(ipv6Socket, ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange); 2016UnsafeNclNativeMethods.NativePKI.CertVerifyCertificateChainPolicy(
net\System\Net\IPAddress.cs (2)
193UnsafeNclNativeMethods.OSSOCK.WSAStringToAddress( 450UnsafeNclNativeMethods.OSSOCK.WSAAddressToString(
net\System\Net\Logging.cs (1)
291uint threadId = UnsafeNclNativeMethods.GetCurrentThreadId();
net\System\Net\NetWebProxyFinder.cs (4)
463scriptLocation = SafeDetectAutoProxyUrl(UnsafeNclNativeMethods.WinHttp.AutoDetectType.Dhcp); 468scriptLocation = SafeDetectAutoProxyUrl(UnsafeNclNativeMethods.WinHttp.AutoDetectType.DnsA); 496UnsafeNclNativeMethods.WinHttp.AutoDetectType discoveryMethod) 505bool success = UnsafeNclNativeMethods.WinHttp.WinHttpDetectAutoProxyConfigUrl(discoveryMethod, out autoProxyUrl);
net\System\Net\NetworkCredential.cs (2)
138m_password = UnsafeNclNativeMethods.SecureStringHelper.CreateSecureString(value); 197string decryptedString = UnsafeNclNativeMethods.SecureStringHelper.CreateString(m_password);
net\System\Net\NetworkInformation\NetworkAddressChange.cs (6)
260UnsafeNclNativeMethods.OSSOCK.ioctlsocket(s_ipv4Socket, IoctlSocketConstants.FIONBIO,ref blocking); 267UnsafeNclNativeMethods.OSSOCK.ioctlsocket(s_ipv6Socket,IoctlSocketConstants.FIONBIO,ref blocking); 294errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking( 308errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(s_ipv4Socket, s_ipv4Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange); 322errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking( 336errorCode = (SocketError)UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(s_ipv6Socket, s_ipv6Socket.GetEventHandle().SafeWaitHandle, AsyncEventBits.FdAddressListChange);
net\System\Net\NetworkInformation\ping.cs (1)
704if (async && error == UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING)
net\System\Net\NetworkInformation\SafeCancelMibChangeNotify.cs (1)
20return (err == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS);
net\System\Net\NetworkInformation\TeredoHelper.cs (3)
73uint err = UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS; 94if (err == UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) 106if (err != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS)
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (1)
82errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt(
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
361bool success = UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(
net\System\Net\Sockets\_ConnectOverlappedAsyncResult.cs (1)
41errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt(
net\System\Net\Sockets\_DynamicWinsockMethods.cs (1)
119errorCode = UnsafeNclNativeMethods.OSSOCK.WSAIoctl(
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (11)
24private UnsafeNclNativeMethods.OSSOCK.WSAMsg* m_Message; 33private static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 34private static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)); 36private static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAMsg)); 117m_Message = (UnsafeNclNativeMethods.OSSOCK.WSAMsg*) Marshal.UnsafeAddrOfPinnedArrayElement(m_MessageBuffer, 0); 143UnsafeNclNativeMethods.OSSOCK.ControlData controlData = (UnsafeNclNativeMethods.OSSOCK.ControlData)Marshal.PtrToStructure(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 152UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)Marshal.PtrToStructure(m_Message->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6));
net\System\Net\Sockets\Socket.cs (98)
114private readonly static int protocolInformationSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO)); 185UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO protocolInfo = (UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO)Marshal.PtrToStructure((IntPtr)pinnedBuffer, typeof(UnsafeNclNativeMethods.OSSOCK.WSAPROTOCOL_INFO)); 232errorCode = UnsafeNclNativeMethods.OSSOCK.getsockname( 354SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.ioctlsocket( 408SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockname( 455SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getpeername( 950SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.bind( 1175SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.listen( 1343errorCode = UnsafeNclNativeMethods.OSSOCK.WSASend_Blocking( 1458!UnsafeNclNativeMethods.OSSOCK.TransmitFile_Blocking(m_Handle.DangerousGetHandle(), fileHandle, 0, 0, SafeNativeOverlapped.Zero, asyncResult.TransmitFileBuffers, flags) : 1459!UnsafeNclNativeMethods.OSSOCK.TransmitFile_Blocking2(m_Handle.DangerousGetHandle(), IntPtr.Zero, 0, 0, SafeNativeOverlapped.Zero, asyncResult.TransmitFileBuffers, flags)) 1546bytesTransferred = UnsafeNclNativeMethods.OSSOCK.send(m_Handle.DangerousGetHandle(), null, 0, socketFlags); 1549bytesTransferred = UnsafeNclNativeMethods.OSSOCK.send( 1632bytesTransferred = UnsafeNclNativeMethods.OSSOCK.sendto( 1644bytesTransferred = UnsafeNclNativeMethods.OSSOCK.sendto( 1777bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recv(m_Handle.DangerousGetHandle(), null, 0, socketFlags); 1780bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recv(m_Handle.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags); 1879errorCode = UnsafeNclNativeMethods.OSSOCK.WSARecv_Blocking( 2102bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(m_Handle.DangerousGetHandle(), null, 0, socketFlags, socketAddress.m_Buffer, ref socketAddress.m_Size ); 2104bytesTransferred = UnsafeNclNativeMethods.OSSOCK.recvfrom(m_Handle.DangerousGetHandle(), pinnedBuffer+offset, size, socketFlags, socketAddress.m_Buffer, ref socketAddress.m_Size ); 2197SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking( 2250SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.WSAIoctl_Blocking_Internal( 2323SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 2432SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 2470SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 2506SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 2559UnsafeNclNativeMethods.OSSOCK.select( 2568UnsafeNclNativeMethods.OSSOCK.select( 2636UnsafeNclNativeMethods.OSSOCK.select( 2645UnsafeNclNativeMethods.OSSOCK.select( 2810errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.WSADuplicateSocket(m_Handle, (uint)targetProcessId, pinnedBuffer); 2884SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.WSAConnect( 3022errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEnumNetworkEvents( 3523errorCode = UnsafeNclNativeMethods.OSSOCK.WSASend( 3642result = UnsafeNclNativeMethods.OSSOCK.TransmitFile(m_Handle,fileHandle,0,0,asyncResult.OverlappedHandle,asyncResult.TransmitFileBuffers,flags); 3645result = UnsafeNclNativeMethods.OSSOCK.TransmitFile2(m_Handle,IntPtr.Zero,0,0,asyncResult.OverlappedHandle,asyncResult.TransmitFileBuffers,flags); 3757errorCode = UnsafeNclNativeMethods.OSSOCK.WSASend( 4027errorCode = UnsafeNclNativeMethods.OSSOCK.WSASendTo( 4269errorCode = UnsafeNclNativeMethods.OSSOCK.WSARecv( 4385errorCode = UnsafeNclNativeMethods.OSSOCK.WSARecv( 4847errorCode = UnsafeNclNativeMethods.OSSOCK.WSARecvFrom( 5640SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.shutdown(m_Handle, (int) how); 5962UnsafeNclNativeMethods.OSSOCK.WSAStartup( 5994UnsafeNclNativeMethods.OSSOCK.WSASocket( 6010UnsafeNclNativeMethods.OSSOCK.WSASocket( 6184SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.WSAConnect( 6312errorCode = UnsafeNclNativeMethods.OSSOCK.ioctlsocket( 6328errorCode = UnsafeNclNativeMethods.OSSOCK.shutdown(m_Handle, (int) SocketShutdown.Send); 6332errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 6348errorCode = (SocketError) UnsafeNclNativeMethods.OSSOCK.recv(m_Handle.DangerousGetHandle(), null, 0, SocketFlags.None); 6361errorCode = UnsafeNclNativeMethods.OSSOCK.ioctlsocket( 6436UnsafeNclNativeMethods.OSSOCK.shutdown(m_Handle, (int)how); 6478errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 6550SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 6588SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 6619SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.setsockopt( 6647SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 6678SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 6731SocketError errorCode = UnsafeNclNativeMethods.OSSOCK.getsockopt( 6777errorCode = UnsafeNclNativeMethods.OSSOCK.ioctlsocket( 7005errorCode = UnsafeNclNativeMethods.OSSOCK.WSASend_Blocking( 7235errorCode = UnsafeNclNativeMethods.OSSOCK.WSASend( 7469errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(m_Handle, IntPtr.Zero, AsyncEventBits.FdNone); 7556errorCode = UnsafeNclNativeMethods.OSSOCK.WSAEventSelect(m_Handle, m_AsyncEvent.SafeWaitHandle, blockEventBits); 7994socketError = UnsafeNclNativeMethods.OSSOCK.WSARecv( 8004socketError = UnsafeNclNativeMethods.OSSOCK.WSARecv( 8083socketError = UnsafeNclNativeMethods.OSSOCK.WSARecvFrom( 8094socketError = UnsafeNclNativeMethods.OSSOCK.WSARecvFrom( 8236socketError = UnsafeNclNativeMethods.OSSOCK.WSASend( 8246socketError = UnsafeNclNativeMethods.OSSOCK.WSASend( 8387socketError = UnsafeNclNativeMethods.OSSOCK.WSASendTo( 8398socketError = UnsafeNclNativeMethods.OSSOCK.WSASendTo( 8475internal UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags m_Flags; 8501Initialize(filepath, null, offset, count, UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags.File, 8524Initialize(null, buffer, offset, count, UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags.Memory, 8529UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags flags, bool endOfPacket) { 8537m_Flags |= UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags.EndOfPacket; 8563get { return (m_Flags & UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElementFlags.EndOfPacket) != 0; } 8581internal static readonly int s_ControlDataSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 8582internal static readonly int s_ControlDataIPv6Size = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)); 8583internal static readonly int s_WSAMsgSize = Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.WSAMsg)); 8668internal UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElement[] m_SendPacketsDescriptor; 9228UnsafeNclNativeMethods.OSSOCK.WSAMsg* pMessage = (UnsafeNclNativeMethods.OSSOCK.WSAMsg*)m_PtrWSAMessageBuffer;; 9619new UnsafeNclNativeMethods.OSSOCK.TransmitPacketsElement[m_SendPacketsElementsFileCount + m_SendPacketsElementsBufferCount]; 9830socketError = UnsafeNclNativeMethods.OSSOCK.setsockopt( 9866socketError = UnsafeNclNativeMethods.OSSOCK.setsockopt( 9948UnsafeNclNativeMethods.OSSOCK.WSAMsg* PtrMessage = (UnsafeNclNativeMethods.OSSOCK.WSAMsg*)Marshal.UnsafeAddrOfPinnedArrayElement(m_WSAMessageBuffer, 0); 9952UnsafeNclNativeMethods.OSSOCK.ControlData controlData = (UnsafeNclNativeMethods.OSSOCK.ControlData)Marshal.PtrToStructure(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlData)); 9960UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6 controlData = (UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)Marshal.PtrToStructure(PtrMessage->controlBuffer.Pointer, typeof(UnsafeNclNativeMethods.OSSOCK.ControlDataIPv6)); 10054bool success = UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(
net\System\Net\Sockets\SocketErrors.cs (2)
392IOPending = (int) UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING, // 997 398OperationAborted = (int) UnsafeNclNativeMethods.ErrorCodes.ERROR_OPERATION_ABORTED, // 995, WSA_OPERATION_ABORTED
net\System\Net\WebHeaderCollection.cs (11)
273return this[UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_HEADER_ID.ToString((int)header)]; 279this[UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_HEADER_ID.ToString((int)header)] = value; 301return this[UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header)]; 312this[UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header)] = value; 320this.Add(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_HEADER_ID.ToString((int)header), value); 332this.Add(UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header), value); 339this.Set(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_HEADER_ID.ToString((int)header), value); 351this.Set(UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header), value); 364this.SetInternal(UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header), value); 372this.Remove(UnsafeNclNativeMethods.HttpApi.HTTP_REQUEST_HEADER_ID.ToString((int)header)); 379this.Remove(UnsafeNclNativeMethods.HttpApi.HTTP_RESPONSE_HEADER_ID.ToString((int)header));
net\System\Net\WebSockets\WebSocketHelpers.cs (3)
310UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_OPAQUE | 311UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_MORE_DATA | 312UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (22)
269UnsafeNclNativeMethods.HttpApi.HttpReceiveRequestEntityBody2( 278if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 279statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING && 280statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF) 284else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 493UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS flags = UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.NONE; 511flags |= UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_DISCONNECT; 515flags |= UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_MORE_DATA; 519flags |= UnsafeNclNativeMethods.HttpApi.HTTP_FLAGS.HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA; 525UnsafeNclNativeMethods.HttpApi.HttpSendResponseEntityBody2( 537if (statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 538statusCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_IO_PENDING) 542else if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS && 858private UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK[] m_DataChunks; 1121m_DataChunks = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK[2]; 1123m_DataChunks[0] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 1124m_DataChunks[0].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 1125m_DataChunks[1] = new UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK(); 1126m_DataChunks[1].DataChunkType = UnsafeNclNativeMethods.HttpApi.HTTP_DATA_CHUNK_TYPE.HttpDataChunkFromMemory; 1265if (errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS || 1266errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_HANDLE_EOF)
net\System\Net\WinHttpWebProxyFinder.cs (40)
21session = UnsafeNclNativeMethods.WinHttp.WinHttpOpen(null, 22UnsafeNclNativeMethods.WinHttp.AccessType.NoProxy, null, null, 0); 40if (!UnsafeNclNativeMethods.WinHttp.WinHttpSetTimeouts(session, timeout, timeout, timeout, timeout)) 68int errorCode = (int)UnsafeNclNativeMethods.WinHttp.ErrorCodes.AudodetectionFailed; 79if (errorCode == (int)UnsafeNclNativeMethods.WinHttp.ErrorCodes.UnrecognizedScheme) 157UnsafeNclNativeMethods.WinHttp.WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions = 158new UnsafeNclNativeMethods.WinHttp.WINHTTP_AUTOPROXY_OPTIONS(); 168autoProxyOptions.Flags = UnsafeNclNativeMethods.WinHttp.AutoProxyFlags.AutoDetect; 170autoProxyOptions.AutoDetectFlags = UnsafeNclNativeMethods.WinHttp.AutoDetectType.Dhcp | 171UnsafeNclNativeMethods.WinHttp.AutoDetectType.DnsA; 176autoProxyOptions.Flags = UnsafeNclNativeMethods.WinHttp.AutoProxyFlags.AutoProxyConfigUrl; 178autoProxyOptions.AutoDetectFlags = UnsafeNclNativeMethods.WinHttp.AutoDetectType.None; 190if ((errorCode == (int)UnsafeNclNativeMethods.WinHttp.ErrorCodes.LoginFailure) && 210ref UnsafeNclNativeMethods.WinHttp.WINHTTP_AUTOPROXY_OPTIONS autoProxyOptions, 216UnsafeNclNativeMethods.WinHttp.WINHTTP_PROXY_INFO proxyInfo = 217new UnsafeNclNativeMethods.WinHttp.WINHTTP_PROXY_INFO(); 225success = UnsafeNclNativeMethods.WinHttp.WinHttpGetProxyForUrl(session, 256GlobalLog.Assert(errorCode != UnsafeNclNativeMethods.ErrorCodes.ERROR_INVALID_PARAMETER, 262switch ((UnsafeNclNativeMethods.WinHttp.ErrorCodes)errorCode) 264case UnsafeNclNativeMethods.WinHttp.ErrorCodes.AutoProxyServiceError: 265case UnsafeNclNativeMethods.WinHttp.ErrorCodes.AudodetectionFailed: 266case UnsafeNclNativeMethods.WinHttp.ErrorCodes.BadAutoProxyScript: 267case UnsafeNclNativeMethods.WinHttp.ErrorCodes.LoginFailure: 268case UnsafeNclNativeMethods.WinHttp.ErrorCodes.OperationCancelled: 269case UnsafeNclNativeMethods.WinHttp.ErrorCodes.Timeout: 270case UnsafeNclNativeMethods.WinHttp.ErrorCodes.UnableToDownloadScript: 271case UnsafeNclNativeMethods.WinHttp.ErrorCodes.UnrecognizedScheme: 280if (errorCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS) 285switch ((UnsafeNclNativeMethods.WinHttp.ErrorCodes)errorCode) 287case UnsafeNclNativeMethods.WinHttp.ErrorCodes.AudodetectionFailed: 290case UnsafeNclNativeMethods.WinHttp.ErrorCodes.UnableToDownloadScript: 293case UnsafeNclNativeMethods.WinHttp.ErrorCodes.UnrecognizedScheme: 296case UnsafeNclNativeMethods.WinHttp.ErrorCodes.BadAutoProxyScript: 297case UnsafeNclNativeMethods.WinHttp.ErrorCodes.InvalidUrl: 298case UnsafeNclNativeMethods.WinHttp.ErrorCodes.AutoProxyServiceError: 327switch ((UnsafeNclNativeMethods.WinHttp.ErrorCodes)errorCode) 329case UnsafeNclNativeMethods.WinHttp.ErrorCodes.Success: 330case UnsafeNclNativeMethods.WinHttp.ErrorCodes.InvalidUrl: 333case UnsafeNclNativeMethods.WinHttp.ErrorCodes.BadAutoProxyScript: 336case UnsafeNclNativeMethods.WinHttp.ErrorCodes.AutoProxyServiceError:
net\System\URI.cs (2)
267UnsafeNclNativeMethods.CoCreateInstance( 270UnsafeNclNativeMethods.CLSCTX_SERVER,