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
- SmiConnection.cs
- DESCryptoServiceProvider.cs
- DbBuffer.cs
- FixedSOMSemanticBox.cs
- BamlMapTable.cs
- MsmqIntegrationSecurity.cs
- RelationshipConverter.cs
- QuadraticBezierSegment.cs
- CommandBindingCollection.cs
- Facet.cs
- SafeRegistryKey.cs
- DataGridItemCollection.cs
- DrawingState.cs
- HostingEnvironment.cs
- BuildProvidersCompiler.cs
- RangeValuePatternIdentifiers.cs
- OdbcConnectionPoolProviderInfo.cs
- MouseButtonEventArgs.cs
- GifBitmapDecoder.cs
- SendOperation.cs
- ItemsPanelTemplate.cs
- HyperLinkField.cs
- RoleGroup.cs
- QueryExecutionOption.cs
- LocalServiceSecuritySettingsElement.cs
- PointUtil.cs
- GroupItem.cs
- PaperSource.cs
- CommandBindingCollection.cs
- ConcurrentDictionary.cs
- ComplexPropertyEntry.cs
- SocketElement.cs
- OdbcConnectionHandle.cs
- ThreadAttributes.cs
- DataGridViewBand.cs
- WebEventTraceProvider.cs
- UserControlBuildProvider.cs
- AliasedSlot.cs
- GridViewAutomationPeer.cs
- SwitchAttribute.cs
- Point4DValueSerializer.cs
- PropertyItem.cs
- GPStream.cs
- ChannelEndpointElementCollection.cs
- HierarchicalDataSourceControl.cs
- ControlTemplate.cs
- ExpandableObjectConverter.cs
- CancelEventArgs.cs
- RtfToXamlReader.cs
- TokenCreationParameter.cs
- XpsManager.cs
- HtmlSelect.cs
- Duration.cs
- AnimatedTypeHelpers.cs
- BinaryCommonClasses.cs
- FileLevelControlBuilderAttribute.cs
- MemberDescriptor.cs
- Parameter.cs
- SizeAnimation.cs
- EnvelopedPkcs7.cs
- FileUpload.cs
- DayRenderEvent.cs
- TypeExtension.cs
- RegexGroup.cs
- TextCompositionEventArgs.cs
- EmptyCollection.cs
- LifetimeServices.cs
- WindowsFont.cs
- SafeFindHandle.cs
- DependencyPropertyConverter.cs
- TransportDefaults.cs
- WebChannelFactory.cs
- WebPartExportVerb.cs
- SqlDelegatedTransaction.cs
- HtmlProps.cs
- FileStream.cs
- SqlMethodAttribute.cs
- XmlSchemaValidator.cs
- PickBranchDesigner.xaml.cs
- RawMouseInputReport.cs
- DescendentsWalkerBase.cs
- RuntimeHelpers.cs
- AnimatedTypeHelpers.cs
- NativeStructs.cs
- FormsAuthenticationUser.cs
- SqlParameter.cs
- PeerCollaboration.cs
- Cursors.cs
- categoryentry.cs
- XmlSchemaSubstitutionGroup.cs
- AssertFilter.cs
- WebConfigurationFileMap.cs
- SerializationInfo.cs
- RealProxy.cs
- EventToken.cs
- SettingsSavedEventArgs.cs
- CurrentTimeZone.cs
- IteratorFilter.cs
- AnimatedTypeHelpers.cs
- OperationAbortedException.cs