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
- EUCJPEncoding.cs
- CreateDataSourceDialog.cs
- FixedTextView.cs
- Avt.cs
- LicenseProviderAttribute.cs
- RootBrowserWindowProxy.cs
- MatrixAnimationUsingKeyFrames.cs
- BitmapCodecInfoInternal.cs
- RichTextBoxAutomationPeer.cs
- NativeMethods.cs
- KnownColorTable.cs
- TabPanel.cs
- SeekStoryboard.cs
- SiteIdentityPermission.cs
- HttpRuntimeSection.cs
- ObjectStateEntry.cs
- ReceiveContext.cs
- RijndaelManagedTransform.cs
- EncoderBestFitFallback.cs
- wmiprovider.cs
- SemanticValue.cs
- BoundingRectTracker.cs
- FormViewCommandEventArgs.cs
- SchemaCollectionCompiler.cs
- SystemColors.cs
- DefinitionUpdate.cs
- ParallelTimeline.cs
- SevenBitStream.cs
- XmlSchemaParticle.cs
- EmptyQuery.cs
- ProxyElement.cs
- RegexGroup.cs
- FrameworkContentElementAutomationPeer.cs
- StyleSheetDesigner.cs
- QilStrConcatenator.cs
- VectorAnimation.cs
- XmlSchemaImporter.cs
- IdnMapping.cs
- XamlBrushSerializer.cs
- Helper.cs
- InstallerTypeAttribute.cs
- SqlWriter.cs
- HijriCalendar.cs
- SynchronizationLockException.cs
- StringCollection.cs
- DataKey.cs
- Serializer.cs
- ContractType.cs
- ReferencedAssembly.cs
- GroupQuery.cs
- PreviewPrintController.cs
- WSFederationHttpSecurityElement.cs
- Stream.cs
- ListViewTableCell.cs
- HttpConfigurationSystem.cs
- Encoder.cs
- TypePropertyEditor.cs
- ReadOnlyPropertyMetadata.cs
- UIElement.cs
- ThumbAutomationPeer.cs
- XPathAncestorQuery.cs
- SymDocumentType.cs
- Lock.cs
- ValidationSummaryDesigner.cs
- FormsAuthenticationConfiguration.cs
- UIElement3DAutomationPeer.cs
- RelatedPropertyManager.cs
- Page.cs
- SQLGuid.cs
- CircleEase.cs
- StylusSystemGestureEventArgs.cs
- wmiprovider.cs
- SByte.cs
- UdpChannelFactory.cs
- HandleCollector.cs
- GeneralTransformGroup.cs
- SoapMessage.cs
- ZipPackage.cs
- FormsAuthenticationCredentials.cs
- LinkLabelLinkClickedEvent.cs
- ToolStripDropDownItemDesigner.cs
- CapabilitiesUse.cs
- MutexSecurity.cs
- ImageUrlEditor.cs
- FlagsAttribute.cs
- HostProtectionPermission.cs
- RegexCompiler.cs
- ZipArchive.cs
- DataComponentMethodGenerator.cs
- List.cs
- FormViewPagerRow.cs
- HtmlTableCell.cs
- DbModificationClause.cs
- CapabilitiesState.cs
- ContentFileHelper.cs
- EmbeddedMailObject.cs
- ConstrainedGroup.cs
- ConfigurationSectionCollection.cs
- ComEventsSink.cs
- Compensation.cs