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
- NetNamedPipeBindingCollectionElement.cs
- NativeCppClassAttribute.cs
- AppearanceEditorPart.cs
- Helpers.cs
- WinFormsComponentEditor.cs
- XmlBinaryReader.cs
- DataSetFieldSchema.cs
- BoolExpressionVisitors.cs
- MruCache.cs
- SpnEndpointIdentityExtension.cs
- ContextItemManager.cs
- XmlStreamNodeWriter.cs
- AutoFocusStyle.xaml.cs
- XmlEventCache.cs
- SettingsPropertyNotFoundException.cs
- UndoManager.cs
- SslStream.cs
- CriticalHandle.cs
- GridView.cs
- UnsupportedPolicyOptionsException.cs
- EventHandlersStore.cs
- TextEditorParagraphs.cs
- FileChangesMonitor.cs
- Viewport3DAutomationPeer.cs
- DtdParser.cs
- HtmlControl.cs
- RootProfilePropertySettingsCollection.cs
- CheckBox.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SystemMulticastIPAddressInformation.cs
- ProtocolElement.cs
- Clock.cs
- WindowsServiceElement.cs
- CharacterMetricsDictionary.cs
- TypeLibConverter.cs
- ByteStack.cs
- CultureInfoConverter.cs
- AllMembershipCondition.cs
- SqlMethods.cs
- PreservationFileWriter.cs
- TransferRequestHandler.cs
- WebExceptionStatus.cs
- ParseHttpDate.cs
- MobileSysDescriptionAttribute.cs
- Pair.cs
- UrlMappingsModule.cs
- ObfuscateAssemblyAttribute.cs
- SharedPerformanceCounter.cs
- RequestQueue.cs
- AmbientProperties.cs
- TraceContext.cs
- LayoutTableCell.cs
- ByteRangeDownloader.cs
- XmlReaderSettings.cs
- CustomAttributeFormatException.cs
- StructuralType.cs
- ComponentSerializationService.cs
- PointHitTestParameters.cs
- ObjectQuery.cs
- XmlAttributeOverrides.cs
- HttpCookieCollection.cs
- OutputCacheModule.cs
- ListControl.cs
- TagPrefixAttribute.cs
- MaterialCollection.cs
- StateItem.cs
- ActivityDelegate.cs
- Attributes.cs
- InternalsVisibleToAttribute.cs
- TemplateBindingExpressionConverter.cs
- SelectingProviderEventArgs.cs
- DispatcherFrame.cs
- MouseEvent.cs
- RawStylusSystemGestureInputReport.cs
- SoapSchemaExporter.cs
- BatchParser.cs
- FreeFormDesigner.cs
- GPPOINT.cs
- ZipIOCentralDirectoryBlock.cs
- BasicKeyConstraint.cs
- TextBoxBase.cs
- DependencyPropertyDescriptor.cs
- Rect.cs
- ColorBlend.cs
- ScriptingJsonSerializationSection.cs
- SchemaType.cs
- GlobalAllocSafeHandle.cs
- PseudoWebRequest.cs
- EventLogPermission.cs
- CustomErrorCollection.cs
- XmlSchemaGroupRef.cs
- FilteredAttributeCollection.cs
- WindowsGraphicsWrapper.cs
- TextLineBreak.cs
- SqlDataSourceCommandEventArgs.cs
- CodeVariableDeclarationStatement.cs
- PersonalizableTypeEntry.cs
- ToolStripSeparator.cs
- IntranetCredentialPolicy.cs
- DataFormat.cs