Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / NetworkInformation / SafeCancelMibChangeNotify.cs / 1305376 / SafeCancelMibChangeNotify.cs
using System; using System.Security; using Microsoft.Win32.SafeHandles; namespace System.Net.NetworkInformation { // This class guarantees that any in-progress notifications will be canceled before the AppDomain gets unloaded. // CancelMibChangeNotify2 guarantees that after it returns, the callback will NEVER be called. It may block // for a small amount of time if the callback is currently in progress, which is fine (and, intentional). [SuppressUnmanagedCodeSecurity] internal class SafeCancelMibChangeNotify : SafeHandleZeroOrMinusOneIsInvalid { public SafeCancelMibChangeNotify() : base(true) { } protected override bool ReleaseHandle() { uint err = UnsafeNetInfoNativeMethods.CancelMibChangeNotify2(base.handle); base.handle = IntPtr.Zero; return (err == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XsdBuildProvider.cs
- SqlConnectionHelper.cs
- filewebresponse.cs
- ServicePointManagerElement.cs
- Size.cs
- TreeNodeCollectionEditor.cs
- PrintingPermission.cs
- SimpleRecyclingCache.cs
- FaultDescriptionCollection.cs
- OdbcInfoMessageEvent.cs
- DateTimeConverter2.cs
- SqlClientPermission.cs
- ReadOnlyCollectionBase.cs
- FrameDimension.cs
- LoadItemsEventArgs.cs
- SiteMapNodeItem.cs
- MenuItemBinding.cs
- InternalConfigSettingsFactory.cs
- SafeNativeMethods.cs
- CriticalFinalizerObject.cs
- MostlySingletonList.cs
- FileInfo.cs
- XmlElement.cs
- ScaleTransform.cs
- RoutedUICommand.cs
- MediaElement.cs
- OleDbErrorCollection.cs
- ResolveMatchesApril2005.cs
- HttpFileCollection.cs
- CanonicalFontFamilyReference.cs
- Composition.cs
- Pointer.cs
- RuleSettings.cs
- DataPagerFieldCommandEventArgs.cs
- ListViewGroupCollectionEditor.cs
- ComponentResourceKeyConverter.cs
- DataMember.cs
- TemplateInstanceAttribute.cs
- UIElementAutomationPeer.cs
- ServiceModelSecurityTokenTypes.cs
- SubpageParaClient.cs
- XmlnsDefinitionAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- ScrollEventArgs.cs
- AssemblyBuilder.cs
- InstallerTypeAttribute.cs
- QueryCacheManager.cs
- ToolStripContentPanelDesigner.cs
- QueryAccessibilityHelpEvent.cs
- CryptoProvider.cs
- GridLength.cs
- SystemIPv4InterfaceProperties.cs
- XPathNodeHelper.cs
- Drawing.cs
- EmissiveMaterial.cs
- PageContent.cs
- EntityModelSchemaGenerator.cs
- ReadContentAsBinaryHelper.cs
- FrameSecurityDescriptor.cs
- XsdValidatingReader.cs
- RouteValueDictionary.cs
- TextParaClient.cs
- XmlSchemaGroup.cs
- Optimizer.cs
- XamlInt32CollectionSerializer.cs
- QilBinary.cs
- DateTimeValueSerializerContext.cs
- DataListItem.cs
- XmlAtomicValue.cs
- WebPartsSection.cs
- VirtualDirectoryMapping.cs
- SecurityTokenRequirement.cs
- DynamicPropertyReader.cs
- SoapObjectReader.cs
- RC2CryptoServiceProvider.cs
- QuaternionIndependentAnimationStorage.cs
- BulletChrome.cs
- ContextMenu.cs
- ImageListStreamer.cs
- FileUtil.cs
- WebPartDisplayModeEventArgs.cs
- SafeNativeMethods.cs
- Range.cs
- control.ime.cs
- NodeLabelEditEvent.cs
- SelectionListComponentEditor.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ConfigurationValues.cs
- RtfNavigator.cs
- SystemIPGlobalProperties.cs
- XmlAnyAttributeAttribute.cs
- CellConstantDomain.cs
- DataBindingList.cs
- RangeContentEnumerator.cs
- EncoderParameters.cs
- ArrayWithOffset.cs
- FrameAutomationPeer.cs
- MemberInfoSerializationHolder.cs
- SerialReceived.cs
- WebControlAdapter.cs