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
- counter.cs
- XmlSchemaDocumentation.cs
- PersonalizationProviderHelper.cs
- FileLoadException.cs
- SectionXmlInfo.cs
- DataRowChangeEvent.cs
- InvokeDelegate.cs
- PersonalizationAdministration.cs
- BindableTemplateBuilder.cs
- ContextMenu.cs
- ItemCheckEvent.cs
- EqualityComparer.cs
- NativeMethods.cs
- MD5CryptoServiceProvider.cs
- SecUtil.cs
- XmlAnyAttributeAttribute.cs
- SyntaxCheck.cs
- DbConnectionHelper.cs
- MetadataItemEmitter.cs
- ObjectDataSourceEventArgs.cs
- PerfCounterSection.cs
- IdentifierCreationService.cs
- DLinqAssociationProvider.cs
- FileInfo.cs
- ArgIterator.cs
- Math.cs
- Rfc2898DeriveBytes.cs
- KeySplineConverter.cs
- InfoCardArgumentException.cs
- CompositeCollectionView.cs
- CollectionConverter.cs
- SmiRecordBuffer.cs
- TrackingLocation.cs
- TrimSurroundingWhitespaceAttribute.cs
- UserControlCodeDomTreeGenerator.cs
- DBSqlParserColumn.cs
- PackagingUtilities.cs
- GeneralTransformGroup.cs
- DataBoundControlHelper.cs
- ColumnWidthChangingEvent.cs
- ImportContext.cs
- EditingCommands.cs
- XmlNamespaceManager.cs
- EllipticalNodeOperations.cs
- PenCursorManager.cs
- NullableConverter.cs
- RawStylusActions.cs
- SourceFileInfo.cs
- XmlEventCache.cs
- AsyncPostBackTrigger.cs
- DataServiceBuildProvider.cs
- NeutralResourcesLanguageAttribute.cs
- UseAttributeSetsAction.cs
- EventDescriptor.cs
- ApplicationBuildProvider.cs
- Utility.cs
- GeometryHitTestResult.cs
- RegexParser.cs
- DataGridColumnHeader.cs
- InheritanceContextHelper.cs
- AgileSafeNativeMemoryHandle.cs
- WeakKeyDictionary.cs
- Content.cs
- InertiaTranslationBehavior.cs
- TypeUtil.cs
- CompositeScriptReferenceEventArgs.cs
- LicenseProviderAttribute.cs
- InfiniteIntConverter.cs
- ColorBlend.cs
- FamilyCollection.cs
- EnterpriseServicesHelper.cs
- TeredoHelper.cs
- DesignOnlyAttribute.cs
- ComplexLine.cs
- PenThread.cs
- ValueUtilsSmi.cs
- VBCodeProvider.cs
- SaveFileDialog.cs
- FragmentQueryKB.cs
- HttpRuntime.cs
- DataViewManager.cs
- SchemaExporter.cs
- HandlerBase.cs
- DirectionalLight.cs
- SystemDropShadowChrome.cs
- ServiceMemoryGates.cs
- regiisutil.cs
- MergePropertyDescriptor.cs
- SiteMapNodeItem.cs
- FlowDocumentScrollViewer.cs
- WorkflowRuntimeServiceElementCollection.cs
- SQLDateTimeStorage.cs
- ValidatedMobileControlConverter.cs
- BaseDataList.cs
- PositiveTimeSpanValidator.cs
- RefreshEventArgs.cs
- PriorityItem.cs
- Solver.cs
- PenLineCapValidation.cs
- PersonalizationAdministration.cs