Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / 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; [System.Security.SecurityCritical] // auto-generated [HostProtectionAttribute(MayLeakOnAbort = true)] sealed internal class SafeLibraryHandle : SafeHandleZeroOrMinusOneIsInvalid { internal SafeLibraryHandle() : base(true) {} [System.Security.SecurityCritical] override protected bool ReleaseHandle() { return UnsafeNativeMethods.FreeLibrary(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; [System.Security.SecurityCritical] // auto-generated [HostProtectionAttribute(MayLeakOnAbort = true)] sealed internal class SafeLibraryHandle : SafeHandleZeroOrMinusOneIsInvalid { internal SafeLibraryHandle() : base(true) {} [System.Security.SecurityCritical] 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
- DataServiceResponse.cs
- CurrencyWrapper.cs
- TagPrefixCollection.cs
- initElementDictionary.cs
- EasingFunctionBase.cs
- QuadraticBezierSegment.cs
- IndexOutOfRangeException.cs
- XhtmlBasicObjectListAdapter.cs
- HotSpotCollection.cs
- XmlMembersMapping.cs
- UnmanagedHandle.cs
- DataGridRow.cs
- ServiceAuthorizationBehavior.cs
- EdmComplexTypeAttribute.cs
- WebPartMovingEventArgs.cs
- TemplatingOptionsDialog.cs
- CodeStatement.cs
- ManipulationDelta.cs
- DataContractAttribute.cs
- KeyedCollection.cs
- DataGridViewCheckBoxCell.cs
- EpmCustomContentDeSerializer.cs
- ipaddressinformationcollection.cs
- ExecutionScope.cs
- OptimizedTemplateContent.cs
- EditorZone.cs
- SessionEndingCancelEventArgs.cs
- AvTraceDetails.cs
- PageClientProxyGenerator.cs
- DataGridViewTopRowAccessibleObject.cs
- TableAdapterManagerHelper.cs
- CodeGenerator.cs
- StyleXamlTreeBuilder.cs
- querybuilder.cs
- AnonymousIdentificationSection.cs
- ReadOnlyDataSourceView.cs
- ByteStreamMessageUtility.cs
- TypeUsage.cs
- SectionInput.cs
- ForceCopyBuildProvider.cs
- CounterSample.cs
- TextServicesHost.cs
- ObjectDataSource.cs
- ImmutableObjectAttribute.cs
- InputScopeConverter.cs
- SafeMarshalContext.cs
- ParallelTimeline.cs
- TraceContextEventArgs.cs
- LineGeometry.cs
- NetworkCredential.cs
- XPSSignatureDefinition.cs
- ToolStripScrollButton.cs
- BitmapEffectInput.cs
- VoiceInfo.cs
- XmlTypeMapping.cs
- WebPartMenuStyle.cs
- GridViewRowCollection.cs
- BitmapEffect.cs
- NumberFormatInfo.cs
- Stack.cs
- WebBrowser.cs
- PropertyIDSet.cs
- ProtocolsConfiguration.cs
- FullTextState.cs
- FixedSOMLineRanges.cs
- SQLByteStorage.cs
- UTF32Encoding.cs
- SendReply.cs
- DialogResultConverter.cs
- Byte.cs
- WeakEventManager.cs
- PointF.cs
- DependencyProperty.cs
- webproxy.cs
- HtmlContainerControl.cs
- ComplusEndpointConfigContainer.cs
- StrongNameUtility.cs
- InternalSafeNativeMethods.cs
- XmlAnyElementAttribute.cs
- PreProcessor.cs
- PropagatorResult.cs
- EntityDataSourceWizardForm.cs
- ThicknessKeyFrameCollection.cs
- _ListenerRequestStream.cs
- BitmapEffectInputConnector.cs
- BaseProcessor.cs
- GC.cs
- FrameworkElement.cs
- XamlSerializer.cs
- HttpCookiesSection.cs
- StringConverter.cs
- InputLanguage.cs
- Mutex.cs
- TransformerConfigurationWizardBase.cs
- KnownBoxes.cs
- ImportCatalogPart.cs
- LayoutManager.cs
- EnterpriseServicesHelper.cs
- PathTooLongException.cs
- DataObjectFieldAttribute.cs