Code:
/ DotNET / DotNET / 8.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
- COM2IVsPerPropertyBrowsingHandler.cs
- ModuleConfigurationInfo.cs
- MetafileHeaderWmf.cs
- SelectionListComponentEditor.cs
- UnsafeNativeMethodsTablet.cs
- SystemIPGlobalProperties.cs
- StringStorage.cs
- FunctionDetailsReader.cs
- SafeLibraryHandle.cs
- PageThemeCodeDomTreeGenerator.cs
- IPipelineRuntime.cs
- Quad.cs
- TreeChangeInfo.cs
- MessageSecurityTokenVersion.cs
- XmlWrappingReader.cs
- CompositionAdorner.cs
- InheritedPropertyChangedEventArgs.cs
- UIPermission.cs
- ToolboxComponentsCreatingEventArgs.cs
- AmbientEnvironment.cs
- JsonDeserializer.cs
- TextRangeBase.cs
- InkCanvasFeedbackAdorner.cs
- DataColumnCollection.cs
- MatrixValueSerializer.cs
- ProfileGroupSettings.cs
- ByteStorage.cs
- XmlAggregates.cs
- TriggerBase.cs
- ObjectDataSource.cs
- WindowsAuthenticationModule.cs
- Boolean.cs
- SpeechUI.cs
- SizeValueSerializer.cs
- HttpChannelListener.cs
- IntranetCredentialPolicy.cs
- MsmqInputChannelListener.cs
- ScriptingRoleServiceSection.cs
- EdmComplexTypeAttribute.cs
- EntityContainerEntitySet.cs
- PositiveTimeSpanValidator.cs
- EpmCustomContentSerializer.cs
- TabletDevice.cs
- EmissiveMaterial.cs
- AdornerPresentationContext.cs
- rsa.cs
- TableLayoutPanelCodeDomSerializer.cs
- Graphics.cs
- CompressionTransform.cs
- StructuralType.cs
- MatrixCamera.cs
- ICollection.cs
- QueryContinueDragEvent.cs
- DispatcherExceptionEventArgs.cs
- HttpWebResponse.cs
- SystemWebSectionGroup.cs
- LeafCellTreeNode.cs
- TraceProvider.cs
- ColorMap.cs
- DataSourceListEditor.cs
- RawKeyboardInputReport.cs
- FunctionDescription.cs
- AxHostDesigner.cs
- Attributes.cs
- PluralizationServiceUtil.cs
- Code.cs
- EncoderReplacementFallback.cs
- Command.cs
- PeerSecurityHelpers.cs
- HttpApplication.cs
- BmpBitmapEncoder.cs
- SQLBinary.cs
- HtmlFormParameterReader.cs
- InlineUIContainer.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PathGeometry.cs
- ConstantSlot.cs
- QuaternionRotation3D.cs
- DataGridTableCollection.cs
- SinglePageViewer.cs
- LookupBindingPropertiesAttribute.cs
- ClassDataContract.cs
- RightNameExpirationInfoPair.cs
- GridItem.cs
- TargetConverter.cs
- XPathNodeIterator.cs
- DbConnectionPoolIdentity.cs
- StringFreezingAttribute.cs
- EntityConnectionStringBuilderItem.cs
- HMACRIPEMD160.cs
- HttpCacheVary.cs
- PassportAuthenticationEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- MergePropertyDescriptor.cs
- MailDefinition.cs
- X509CertificateCollection.cs
- ApplicationFileParser.cs
- ResXFileRef.cs
- TextMetrics.cs
- XPathAxisIterator.cs