Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / Microsoft / Win32 / SafeHandles / SafeFindHandle.cs / 1 / 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 { internal sealed class SafeFindHandle : SafeHandleZeroOrMinusOneIsInvalid { [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode=true)] internal SafeFindHandle() : base(true) {} override protected bool ReleaseHandle() { return Win32Native.FindClose(handle); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PolygonHotSpot.cs
- SystemInfo.cs
- DbConnectionPoolOptions.cs
- SqlDataSource.cs
- ControlCommandSet.cs
- ComNativeDescriptor.cs
- OdbcError.cs
- ServiceMemoryGates.cs
- RootProfilePropertySettingsCollection.cs
- DragCompletedEventArgs.cs
- WebBaseEventKeyComparer.cs
- StorageEndPropertyMapping.cs
- ObjectConverter.cs
- SystemWebSectionGroup.cs
- CodeExpressionStatement.cs
- NullableDecimalMinMaxAggregationOperator.cs
- base64Transforms.cs
- SqlServer2KCompatibilityCheck.cs
- LicenseContext.cs
- String.cs
- ExtenderProvidedPropertyAttribute.cs
- FastEncoderWindow.cs
- URLMembershipCondition.cs
- NavigationProgressEventArgs.cs
- TextContainerChangedEventArgs.cs
- WebRequestModuleElementCollection.cs
- FileDialogCustomPlace.cs
- StyleSheetRefUrlEditor.cs
- StringArrayEditor.cs
- HostedTcpTransportManager.cs
- DateTimeFormat.cs
- AssemblyAttributes.cs
- TagPrefixInfo.cs
- DesignerDataSchemaClass.cs
- PixelFormatConverter.cs
- Int64.cs
- IISMapPath.cs
- Char.cs
- GiveFeedbackEventArgs.cs
- ExpressionBuilder.cs
- ByteStream.cs
- SqlBinder.cs
- ClonableStack.cs
- ImplicitInputBrush.cs
- TypeExtension.cs
- TextSpan.cs
- SubMenuStyleCollection.cs
- DataObjectPastingEventArgs.cs
- EncodingNLS.cs
- XmlSchemaSet.cs
- SchemaNamespaceManager.cs
- ISAPIApplicationHost.cs
- WebPartsSection.cs
- AutomationTextAttribute.cs
- ButtonStandardAdapter.cs
- ComponentSerializationService.cs
- WebConfigurationFileMap.cs
- ConstraintEnumerator.cs
- EntityKey.cs
- HttpApplicationFactory.cs
- DataGridViewSortCompareEventArgs.cs
- DocumentationServerProtocol.cs
- SystemUdpStatistics.cs
- DecoderFallback.cs
- XmlCollation.cs
- NestPullup.cs
- ZipIOCentralDirectoryFileHeader.cs
- TypedAsyncResult.cs
- TreeNodeStyleCollection.cs
- ObfuscateAssemblyAttribute.cs
- HtmlInputHidden.cs
- FixedBufferAttribute.cs
- RefreshPropertiesAttribute.cs
- IntegerValidator.cs
- HttpResponse.cs
- AnnotationResource.cs
- ExpressionPrefixAttribute.cs
- KerberosTicketHashIdentifierClause.cs
- PowerModeChangedEventArgs.cs
- HttpCapabilitiesBase.cs
- _ServiceNameStore.cs
- ColorMap.cs
- PrefixHandle.cs
- RolePrincipal.cs
- XsdDateTime.cs
- PseudoWebRequest.cs
- SortedDictionary.cs
- OrderByQueryOptionExpression.cs
- QilTypeChecker.cs
- Int32AnimationBase.cs
- ValueTypeFixupInfo.cs
- SqlAliaser.cs
- ImageInfo.cs
- AdjustableArrowCap.cs
- ServiceCredentials.cs
- __Filters.cs
- PerformanceCounterPermission.cs
- FixedSOMElement.cs
- FixedHighlight.cs
- FastEncoder.cs