Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / Microsoft / Win32 / SafeHandles / SafeFindHandle.cs / 1305376 / SafeFindHandle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafeFindHandle ** ** ** A wrapper for find handles ** ** ===========================================================*/ using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32; namespace Microsoft.Win32.SafeHandles { [System.Security.SecurityCritical] // auto-generated internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid { [System.Security.SecurityCritical] // auto-generated_required internal SafeFindHandle() : base(true) {} [System.Security.SecurityCritical] override protected bool ReleaseHandle() { return Win32Native.FindClose(handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafeFindHandle ** ** ** A wrapper for find handles ** ** ===========================================================*/ using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32; namespace Microsoft.Win32.SafeHandles { [System.Security.SecurityCritical] // auto-generated internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid { [System.Security.SecurityCritical] // auto-generated_required internal SafeFindHandle() : base(true) {} [System.Security.SecurityCritical] override protected bool ReleaseHandle() { return Win32Native.FindClose(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
- TraceSwitch.cs
- PolicyStatement.cs
- IdentityNotMappedException.cs
- CodeArgumentReferenceExpression.cs
- ToolStripManager.cs
- HttpCacheVaryByContentEncodings.cs
- TreeNodeMouseHoverEvent.cs
- ProviderMetadata.cs
- DesignerOptions.cs
- CalendarAutomationPeer.cs
- DBCommandBuilder.cs
- XmlCharCheckingWriter.cs
- IInstanceTable.cs
- StylusPointPropertyInfoDefaults.cs
- BindableAttribute.cs
- IApplicationTrustManager.cs
- ResourceReferenceExpression.cs
- Translator.cs
- ZoneIdentityPermission.cs
- Font.cs
- RemoteWebConfigurationHost.cs
- ProfileBuildProvider.cs
- ArrangedElement.cs
- RegistrationServices.cs
- COM2ComponentEditor.cs
- DoubleLink.cs
- DataGridViewMethods.cs
- TrackingQueryElement.cs
- Int16AnimationUsingKeyFrames.cs
- Merger.cs
- Clause.cs
- JsonDeserializer.cs
- ResizeGrip.cs
- ProfileGroupSettingsCollection.cs
- httpapplicationstate.cs
- DrawingAttributesDefaultValueFactory.cs
- PriorityRange.cs
- SqlUserDefinedAggregateAttribute.cs
- ImageClickEventArgs.cs
- OrderedDictionary.cs
- _NegoState.cs
- StreamSecurityUpgradeAcceptorBase.cs
- SoapConverter.cs
- XmlSchemaAnyAttribute.cs
- RewritingProcessor.cs
- PriorityBindingExpression.cs
- CLRBindingWorker.cs
- XhtmlTextWriter.cs
- InlineUIContainer.cs
- EntityContainerEmitter.cs
- LicenseManager.cs
- COM2IDispatchConverter.cs
- ResolveNameEventArgs.cs
- ShaperBuffers.cs
- OleDbCommandBuilder.cs
- CngKeyBlobFormat.cs
- OutputCacheModule.cs
- GridViewRow.cs
- ExpandSegment.cs
- JavaScriptSerializer.cs
- TextParagraphCache.cs
- DataReceivedEventArgs.cs
- BitmapFrameEncode.cs
- Connection.cs
- ObjectHelper.cs
- XMLUtil.cs
- ApplicationId.cs
- AmbiguousMatchException.cs
- PersonalizableTypeEntry.cs
- SqlCachedBuffer.cs
- HttpPostClientProtocol.cs
- DBBindings.cs
- ListViewTableRow.cs
- BitmapDownload.cs
- RTLAwareMessageBox.cs
- CursorConverter.cs
- StateBag.cs
- Module.cs
- WebPartsSection.cs
- SslStream.cs
- ScalarConstant.cs
- NavigationPropertyEmitter.cs
- UnknownBitmapEncoder.cs
- XhtmlBasicValidationSummaryAdapter.cs
- X509RawDataKeyIdentifierClause.cs
- Clipboard.cs
- ToolBarButtonClickEvent.cs
- XPathDescendantIterator.cs
- WaitingCursor.cs
- ValueChangedEventManager.cs
- SimpleType.cs
- TableLayoutColumnStyleCollection.cs
- ToolStripPanelCell.cs
- BindingGraph.cs
- LogLogRecordHeader.cs
- DragCompletedEventArgs.cs
- DesignerSelectionListAdapter.cs
- ElementHostAutomationPeer.cs
- ObjectDataSourceFilteringEventArgs.cs
- UIntPtr.cs