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
- SafeArrayTypeMismatchException.cs
- ErrorInfoXmlDocument.cs
- PresentationAppDomainManager.cs
- XmlNullResolver.cs
- AutomationProperty.cs
- TextPattern.cs
- FullTextBreakpoint.cs
- TokenDescriptor.cs
- EasingKeyFrames.cs
- baseshape.cs
- ControlDesigner.cs
- SqlNotificationRequest.cs
- SQLCharsStorage.cs
- Point3DCollectionValueSerializer.cs
- IdnMapping.cs
- Wildcard.cs
- SqlOuterApplyReducer.cs
- IISUnsafeMethods.cs
- ApplyTemplatesAction.cs
- XmlAttributeOverrides.cs
- DoubleUtil.cs
- LinkGrep.cs
- ConfigurationManagerInternalFactory.cs
- BezierSegment.cs
- DateTimeFormatInfo.cs
- TypeCollectionPropertyEditor.cs
- XmlIgnoreAttribute.cs
- MediaPlayerState.cs
- RawStylusInputCustomDataList.cs
- WhitespaceRuleReader.cs
- OleDbConnectionInternal.cs
- WebConfigurationManager.cs
- IDispatchConstantAttribute.cs
- SimpleLine.cs
- MetadataArtifactLoaderComposite.cs
- IdnMapping.cs
- objectresult_tresulttype.cs
- XmlHierarchyData.cs
- UniqueEventHelper.cs
- AttributeAction.cs
- TransactionBridge.cs
- NativeMethodsOther.cs
- PathFigureCollectionConverter.cs
- StorageAssociationSetMapping.cs
- HtmlInputCheckBox.cs
- EventTrigger.cs
- DbFunctionCommandTree.cs
- GridItem.cs
- ToolStripPanelRow.cs
- InheritablePropertyChangeInfo.cs
- Atom10FeedFormatter.cs
- MatrixStack.cs
- ComponentManagerBroker.cs
- TextTreeTextBlock.cs
- FreeFormDragDropManager.cs
- InvalidOleVariantTypeException.cs
- CodeGen.cs
- TrustSection.cs
- SafeLibraryHandle.cs
- RijndaelManaged.cs
- InheritanceAttribute.cs
- CommandSet.cs
- TextSimpleMarkerProperties.cs
- FileCodeGroup.cs
- DiscardableAttribute.cs
- CheckBoxFlatAdapter.cs
- BufferModesCollection.cs
- ClonableStack.cs
- SpotLight.cs
- EntityContainerEmitter.cs
- RecordsAffectedEventArgs.cs
- Version.cs
- HttpStaticObjectsCollectionBase.cs
- ListItem.cs
- ComplexTypeEmitter.cs
- safelink.cs
- SEHException.cs
- PathParser.cs
- COM2PictureConverter.cs
- NavigationExpr.cs
- ClientUtils.cs
- XmlNodeChangedEventArgs.cs
- SafeLibraryHandle.cs
- StorageAssociationSetMapping.cs
- XPathSelfQuery.cs
- DependencyProperty.cs
- PlanCompiler.cs
- _WebProxyDataBuilder.cs
- ActivationArguments.cs
- PeerNearMe.cs
- ChangeInterceptorAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- AnalyzedTree.cs
- listviewsubitemcollectioneditor.cs
- DelegateArgumentReference.cs
- ChooseAction.cs
- cookiecontainer.cs
- FunctionDetailsReader.cs
- CodeMethodInvokeExpression.cs
- OdbcEnvironmentHandle.cs