Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / Microsoft / Win32 / SafeHandles / SafeLibraryHandle.cs / 1305376 / SafeLibraryHandle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafeLibraryHandle ** ============================================================*/ namespace Microsoft.Win32 { using Microsoft.Win32; using Microsoft.Win32.SafeHandles; using System; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; //// #pragma warning disable 618 // Have not migrated to v4 transparency yet [System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)] #pragma warning restore 618 [HostProtectionAttribute(MayLeakOnAbort = true)] sealed internal class SafeLibraryHandle : SafeHandleZeroOrMinusOneIsInvalid { internal SafeLibraryHandle() : base(true) {} override protected bool ReleaseHandle() { return UnsafeNativeMethods.FreeLibrary(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.//
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CommonRemoteMemoryBlock.cs
- DefaultShape.cs
- SpeakProgressEventArgs.cs
- BitHelper.cs
- ToolBarButtonClickEvent.cs
- NavigationPropertyEmitter.cs
- Comparer.cs
- CodeExporter.cs
- LinqDataSourceStatusEventArgs.cs
- DLinqColumnProvider.cs
- ContextMarshalException.cs
- _OSSOCK.cs
- PropertyEmitterBase.cs
- DecoderExceptionFallback.cs
- CustomWebEventKey.cs
- SvcMapFileLoader.cs
- X509Utils.cs
- TreeNodeBinding.cs
- PersonalizationDictionary.cs
- DbUpdateCommandTree.cs
- COM2PropertyDescriptor.cs
- PlacementWorkspace.cs
- CngProperty.cs
- WeakRefEnumerator.cs
- ChunkedMemoryStream.cs
- ToolStripSplitStackLayout.cs
- XmlStreamStore.cs
- Freezable.cs
- EncoderParameter.cs
- DataBindingCollectionConverter.cs
- DataServiceExpressionVisitor.cs
- Compiler.cs
- sitestring.cs
- PeerService.cs
- TraceInternal.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- GregorianCalendarHelper.cs
- SecurityHelper.cs
- WorkflowMarkupSerializationException.cs
- TimeSpanValidatorAttribute.cs
- JoinElimination.cs
- _LazyAsyncResult.cs
- UIElement3D.cs
- NavigationProperty.cs
- KeysConverter.cs
- TypeBuilder.cs
- ProfileProvider.cs
- GPPOINT.cs
- Sentence.cs
- WorkflowViewManager.cs
- AlphabeticalEnumConverter.cs
- HeaderElement.cs
- HexParser.cs
- Pen.cs
- ValueChangedEventManager.cs
- PropertyConverter.cs
- LogSwitch.cs
- InfoCardAsymmetricCrypto.cs
- GetRecipientListRequest.cs
- DoubleLink.cs
- BindingMAnagerBase.cs
- DbParameterCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- SecurityTokenSerializer.cs
- StrongNameUtility.cs
- KeyValueInternalCollection.cs
- WrappedIUnknown.cs
- Compiler.cs
- NameScopePropertyAttribute.cs
- RuleSettingsCollection.cs
- SqlClientWrapperSmiStream.cs
- AssemblyName.cs
- PenCursorManager.cs
- precedingsibling.cs
- X509Chain.cs
- SecurityPolicySection.cs
- StorageComplexTypeMapping.cs
- CodeIdentifiers.cs
- TogglePattern.cs
- SHA512Managed.cs
- GridToolTip.cs
- SingleConverter.cs
- SkewTransform.cs
- HyperLinkStyle.cs
- SafeNativeMethods.cs
- RequestCacheManager.cs
- MobileControlDesigner.cs
- MatrixAnimationUsingPath.cs
- NCryptNative.cs
- LineMetrics.cs
- PnrpPeerResolver.cs
- TextEditor.cs
- LocalTransaction.cs
- WebPartsPersonalization.cs
- WebPartVerbCollection.cs
- HostedHttpTransportManager.cs
- DataBoundLiteralControl.cs
- SqlConnectionString.cs
- EffectiveValueEntry.cs