Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSimpleContentExtension.cs
- ExpanderAutomationPeer.cs
- RoutedPropertyChangedEventArgs.cs
- ExtensionMethods.cs
- PeerApplication.cs
- ActiveXContainer.cs
- TextWriterEngine.cs
- DataObject.cs
- LinqDataSourceInsertEventArgs.cs
- HostingEnvironmentWrapper.cs
- CodeConditionStatement.cs
- AdobeCFFWrapper.cs
- ReceiveSecurityHeader.cs
- ActivityStateQuery.cs
- ListViewContainer.cs
- ZoneIdentityPermission.cs
- ErrorFormatterPage.cs
- CodeTypeReferenceCollection.cs
- ParameterReplacerVisitor.cs
- ChangeTracker.cs
- ConfigurationSectionCollection.cs
- XhtmlBasicLiteralTextAdapter.cs
- SignatureConfirmationElement.cs
- WebContentFormatHelper.cs
- ImageButton.cs
- ExclusiveHandleList.cs
- SqlServices.cs
- FamilyTypefaceCollection.cs
- WindowsFormsSynchronizationContext.cs
- FontSourceCollection.cs
- _UriTypeConverter.cs
- TempFiles.cs
- XmlTextReaderImplHelpers.cs
- QualifiedCellIdBoolean.cs
- DataGridViewCellCollection.cs
- ConsumerConnectionPoint.cs
- ExternalFile.cs
- ChangeInterceptorAttribute.cs
- FixedTextView.cs
- _NestedSingleAsyncResult.cs
- CalendarDateRange.cs
- Visitors.cs
- GenericTextProperties.cs
- EmissiveMaterial.cs
- FixedPageProcessor.cs
- JobInputBins.cs
- EventTask.cs
- BinaryObjectInfo.cs
- BinaryKeyIdentifierClause.cs
- DynamicRenderer.cs
- BitmapEffectInputData.cs
- DetailsViewDeleteEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- UdpReplyToBehavior.cs
- ExceptionUtil.cs
- CodeDOMProvider.cs
- RowToFieldTransformer.cs
- GradientBrush.cs
- ClientSession.cs
- HotCommands.cs
- ListParagraph.cs
- FormViewInsertEventArgs.cs
- FormViewUpdatedEventArgs.cs
- PointLight.cs
- EntityDescriptor.cs
- FeatureSupport.cs
- ParsedAttributeCollection.cs
- CompressionTransform.cs
- ContextMenuService.cs
- ToolStripHighContrastRenderer.cs
- WizardForm.cs
- OleDbWrapper.cs
- CustomWebEventKey.cs
- UpDownBase.cs
- XmlSequenceWriter.cs
- XmlEntityReference.cs
- CodeAccessSecurityEngine.cs
- documentsequencetextview.cs
- StyleSheetComponentEditor.cs
- PrintEvent.cs
- ToolStrip.cs
- MaskInputRejectedEventArgs.cs
- ProviderSettings.cs
- SectionXmlInfo.cs
- DelegateHelpers.cs
- AdapterUtil.cs
- RegistryKey.cs
- EntityModelBuildProvider.cs
- ellipse.cs
- MetadataImporter.cs
- MouseCaptureWithinProperty.cs
- _Connection.cs
- XmlDocumentSurrogate.cs
- Timer.cs
- JumpList.cs
- OptimalBreakSession.cs
- SyndicationSerializer.cs
- GregorianCalendarHelper.cs
- XsdCachingReader.cs
- FormatStringEditor.cs