Code:
/ FX-1434 / FX-1434 / 1.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
- PerformanceCounterPermissionEntry.cs
- BamlBinaryReader.cs
- SafePointer.cs
- CurrentChangingEventManager.cs
- GroupBoxRenderer.cs
- CharAnimationBase.cs
- ServiceContractGenerator.cs
- MailAddressCollection.cs
- AssociatedControlConverter.cs
- Point4DConverter.cs
- WorkflowControlEndpoint.cs
- EntityDataSourceWrapper.cs
- TemplateBindingExtension.cs
- GradientSpreadMethodValidation.cs
- BStrWrapper.cs
- RenderingBiasValidation.cs
- GroupBox.cs
- ResourcePart.cs
- RegisteredDisposeScript.cs
- HtmlWindowCollection.cs
- TrustLevel.cs
- MenuStrip.cs
- TextServicesManager.cs
- ArrayEditor.cs
- ItemList.cs
- SapiRecoInterop.cs
- DataGridViewRowsAddedEventArgs.cs
- SafeCoTaskMem.cs
- DataError.cs
- EventlogProvider.cs
- PersonalizationStateInfoCollection.cs
- DbUpdateCommandTree.cs
- LambdaCompiler.Address.cs
- FrameworkTemplate.cs
- DataRecordInternal.cs
- BitmapImage.cs
- EditorZoneBase.cs
- SmtpFailedRecipientsException.cs
- PerformanceCountersElement.cs
- ToolStripDropDown.cs
- TreeViewAutomationPeer.cs
- XmlSiteMapProvider.cs
- SimpleHandlerFactory.cs
- XsltArgumentList.cs
- SqlExpander.cs
- ButtonDesigner.cs
- DbProviderFactories.cs
- Inflater.cs
- EventPrivateKey.cs
- SqlRemoveConstantOrderBy.cs
- EncodingInfo.cs
- CellTreeSimplifier.cs
- PackageStore.cs
- RangeExpression.cs
- CompareValidator.cs
- RoutedEventHandlerInfo.cs
- OrderPreservingSpoolingTask.cs
- LinearGradientBrush.cs
- CalendarDataBindingHandler.cs
- XamlSerializer.cs
- SymDocumentType.cs
- shaperfactory.cs
- RemoteTokenFactory.cs
- SafeEventLogWriteHandle.cs
- AppDomainGrammarProxy.cs
- IApplicationTrustManager.cs
- backend.cs
- ThemeDirectoryCompiler.cs
- Panel.cs
- Rule.cs
- PropertyToken.cs
- RichTextBox.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SubclassTypeValidator.cs
- Resources.Designer.cs
- UnknownExceptionActionHelper.cs
- QilGeneratorEnv.cs
- BrowserCapabilitiesCompiler.cs
- Timer.cs
- StaticFileHandler.cs
- CodeIdentifiers.cs
- compensatingcollection.cs
- UIPermission.cs
- WsdlWriter.cs
- RSAPKCS1SignatureDeformatter.cs
- UInt64.cs
- EntityDataSourceContextDisposingEventArgs.cs
- SoapHttpTransportImporter.cs
- Accessible.cs
- Imaging.cs
- safelink.cs
- TriggerCollection.cs
- LogManagementAsyncResult.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SrgsSubset.cs
- PersonalizableAttribute.cs
- AuthenticateEventArgs.cs
- ActivityValidator.cs
- NumericExpr.cs
- SystemPens.cs