Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventLogTraceListener.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DefaultHttpHandler.cs
- TiffBitmapDecoder.cs
- SystemColorTracker.cs
- VisualStateGroup.cs
- HScrollProperties.cs
- HtmlInputControl.cs
- FileInfo.cs
- WindowsListBox.cs
- OleDbConnectionInternal.cs
- RuntimeConfigLKG.cs
- TrustManagerMoreInformation.cs
- SystemWebCachingSectionGroup.cs
- SafeLocalAllocation.cs
- FormViewModeEventArgs.cs
- XmlCharType.cs
- PieceDirectory.cs
- HttpRawResponse.cs
- WebPartTransformerAttribute.cs
- ThaiBuddhistCalendar.cs
- _AutoWebProxyScriptEngine.cs
- Vector3DAnimationBase.cs
- WebRequestModuleElementCollection.cs
- MarkupCompilePass1.cs
- TextServicesCompartmentContext.cs
- SpellerStatusTable.cs
- GeometryGroup.cs
- ImageDesigner.cs
- Matrix3D.cs
- PerformanceCounterLib.cs
- DataServiceSaveChangesEventArgs.cs
- RegistrationServices.cs
- HuffmanTree.cs
- DbParameterCollection.cs
- CoreSwitches.cs
- AspNetSynchronizationContext.cs
- Utils.cs
- Avt.cs
- EntityConnectionStringBuilderItem.cs
- RuntimeIdentifierPropertyAttribute.cs
- HttpApplication.cs
- Mouse.cs
- IdnMapping.cs
- TypeUnloadedException.cs
- Propagator.JoinPropagator.cs
- SqlUnionizer.cs
- DeviceContexts.cs
- EndPoint.cs
- TypeConverterAttribute.cs
- DiffuseMaterial.cs
- Directory.cs
- HtmlTableRowCollection.cs
- AppDomain.cs
- JoinSymbol.cs
- DetailsViewUpdateEventArgs.cs
- XmlNavigatorStack.cs
- DataControlImageButton.cs
- ProfileInfo.cs
- InvokeSchedule.cs
- SqlLiftIndependentRowExpressions.cs
- CanonicalFontFamilyReference.cs
- ObjectQueryProvider.cs
- HasCopySemanticsAttribute.cs
- DeclarationUpdate.cs
- InputScopeManager.cs
- UInt32.cs
- VirtualizedCellInfoCollection.cs
- XmlNamespaceMappingCollection.cs
- AppSettingsReader.cs
- MLangCodePageEncoding.cs
- MetadataCache.cs
- TextEndOfLine.cs
- HandleExceptionArgs.cs
- CngProvider.cs
- XslTransform.cs
- Rfc2898DeriveBytes.cs
- SqlDataSourceParameterParser.cs
- MetabaseSettings.cs
- AsyncOperationManager.cs
- RectConverter.cs
- ListViewInsertEventArgs.cs
- RangeValuePatternIdentifiers.cs
- UInt16Converter.cs
- DataGridTableCollection.cs
- EventLogger.cs
- FunctionNode.cs
- ExportException.cs
- WebPartConnectionsCloseVerb.cs
- BindingNavigator.cs
- Int16AnimationBase.cs
- UidPropertyAttribute.cs
- DbConnectionClosed.cs
- FieldBuilder.cs
- InvokeMethodDesigner.xaml.cs
- StringExpressionSet.cs
- PointAnimation.cs
- CompilerScopeManager.cs
- DataGridTablesFactory.cs
- WebBrowsableAttribute.cs