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
- FlowDocumentPage.cs
- PropertyCondition.cs
- CancellationState.cs
- CompilerInfo.cs
- Vector3dCollection.cs
- MarshalByRefObject.cs
- AssemblyCache.cs
- TextEditor.cs
- XamlInt32CollectionSerializer.cs
- Rotation3DAnimation.cs
- WSDualHttpBindingCollectionElement.cs
- ServicePerformanceCounters.cs
- TextServicesContext.cs
- WebCategoryAttribute.cs
- WindowsGraphics.cs
- UriSection.cs
- StorageConditionPropertyMapping.cs
- Matrix.cs
- CompressionTransform.cs
- DefaultValueTypeConverter.cs
- selecteditemcollection.cs
- FileVersion.cs
- CursorConverter.cs
- HtmlMobileTextWriter.cs
- MsmqProcessProtocolHandler.cs
- HttpModuleCollection.cs
- Parsers.cs
- FloaterBaseParagraph.cs
- InstanceLockLostException.cs
- ViewStateAttachedPropertyFeature.cs
- PolicyException.cs
- FillBehavior.cs
- IisTraceListener.cs
- RootDesignerSerializerAttribute.cs
- XPathNavigator.cs
- SelectionItemProviderWrapper.cs
- BinaryObjectWriter.cs
- UrlPath.cs
- TableDetailsCollection.cs
- ToolStripDropTargetManager.cs
- BindingGroup.cs
- CreateRefExpr.cs
- FixedSOMImage.cs
- ConfigXmlWhitespace.cs
- Margins.cs
- WebContentFormatHelper.cs
- ObjectHandle.cs
- Rotation3DAnimationUsingKeyFrames.cs
- TagMapCollection.cs
- BitmapEffectOutputConnector.cs
- GridViewRowCollection.cs
- XslNumber.cs
- ValidatorCollection.cs
- AmbientLight.cs
- TdsParserSessionPool.cs
- ShapeTypeface.cs
- SortedList.cs
- UserControl.cs
- OrElse.cs
- SignatureHelper.cs
- DocumentApplicationJournalEntry.cs
- ToggleProviderWrapper.cs
- ClientType.cs
- PeerCollaboration.cs
- MobilePage.cs
- DocumentSequence.cs
- WebPartVerbCollection.cs
- PrinterSettings.cs
- EditingCoordinator.cs
- TypeToken.cs
- TokenBasedSetEnumerator.cs
- StrokeSerializer.cs
- LinkedDataMemberFieldEditor.cs
- OSEnvironmentHelper.cs
- ConfigurationElement.cs
- OleDbFactory.cs
- TextProperties.cs
- RectangleHotSpot.cs
- connectionpool.cs
- SvcFileManager.cs
- DefaultBinder.cs
- PropertyGridView.cs
- KeyboardNavigation.cs
- wgx_exports.cs
- RowBinding.cs
- UnionQueryOperator.cs
- TextRunProperties.cs
- TraceHwndHost.cs
- ConfigsHelper.cs
- ToolStripPanelRenderEventArgs.cs
- CatalogPartDesigner.cs
- ServicePointManager.cs
- XmlDownloadManager.cs
- NamespaceMapping.cs
- PrintPreviewControl.cs
- PresentationAppDomainManager.cs
- LicenseManager.cs
- GeometryDrawing.cs
- RelativeSource.cs
- QueryRelOp.cs