26 references to SafeNetHandles
System (26)
net\System\Net\_NativeSSPI.cs (1)
450status = UnsafeNclNativeMethods.SafeNetHandles.QuerySecurityContextToken(ref phContext._handle, out safeHandle);
net\System\Net\_SafeNetHandles.cs (24)
300return UnsafeNclNativeMethods.SafeNetHandles.CloseHandle(handle); 342return (UnsafeNclNativeMethods.SafeNetHandles.HttpCloseRequestQueue(handle) == 665SafeLocalFree result = UnsafeNclNativeMethods.SafeNetHandles.LocalAlloc(LMEM_FIXED, (UIntPtr) cb); 675return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 696return UnsafeNclNativeMethods.SafeNetHandles.GlobalFree(handle) == IntPtr.Zero; 754return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero; 782IntPtr hKernel32 = UnsafeNclNativeMethods.SafeNetHandles.GetModuleHandleW(KERNEL32); 800SafeLoadLibrary result = UnsafeNclNativeMethods.SafeNetHandles.LoadLibraryExW(library, null, _flags); 814return UnsafeNclNativeMethods.SafeNetHandles.FreeLibrary(handle); 845UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateChain(handle); 880UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateChainList(handle); 1030UnsafeNclNativeMethods.SafeNetHandles.CertFreeCertificateContext(handle); 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); 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; 2972UnsafeNclNativeMethods.SafeNetHandles.UnlockUrlCacheEntryFileW(ptrStr, 0); 3001if (!UnsafeNclNativeMethods.SafeNetHandles.RetrieveUrlCacheEntryFileW(key, entryPtr, ref entryBufSize, 0))
net\System\Net\HttpListener.cs (1)
992UnsafeNclNativeMethods.SafeNetHandles.HttpCreateRequestQueue(