Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== /*============================================================ ** ** 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2PictureConverter.cs
- DataControlFieldCell.cs
- RunWorkerCompletedEventArgs.cs
- CanonicalFormWriter.cs
- IisTraceWebEventProvider.cs
- RawStylusInputReport.cs
- QilReference.cs
- DbProviderConfigurationHandler.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- DataGridViewSortCompareEventArgs.cs
- HyperLinkColumn.cs
- XmlFormatExtensionPrefixAttribute.cs
- ToolboxControl.cs
- COM2Properties.cs
- UrlMappingsSection.cs
- QilXmlWriter.cs
- BrowserDefinitionCollection.cs
- TextViewBase.cs
- ADMembershipUser.cs
- CheckBoxPopupAdapter.cs
- PcmConverter.cs
- DetailsViewModeEventArgs.cs
- Form.cs
- AdRotatorDesigner.cs
- FontSource.cs
- EventSetter.cs
- ReadOnlyDataSource.cs
- ISAPIApplicationHost.cs
- DataPagerCommandEventArgs.cs
- X509Certificate2.cs
- Debugger.cs
- AutomationPeer.cs
- CompilerTypeWithParams.cs
- HtmlInputButton.cs
- SchemaNamespaceManager.cs
- FormattedText.cs
- ListManagerBindingsCollection.cs
- SchemaInfo.cs
- RuleSetBrowserDialog.cs
- ReflectionUtil.cs
- BaseComponentEditor.cs
- StreamInfo.cs
- PkcsUtils.cs
- XmlSchemaSimpleType.cs
- LeaseManager.cs
- KeyInterop.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DeobfuscatingStream.cs
- GridViewDeleteEventArgs.cs
- SerializerProvider.cs
- EnterpriseServicesHelper.cs
- XmlSchemaProviderAttribute.cs
- MarkupCompilePass1.cs
- DataGridViewImageColumn.cs
- ListBindingConverter.cs
- ToolStripHighContrastRenderer.cs
- Decoder.cs
- SettingsContext.cs
- RadialGradientBrush.cs
- XsltLoader.cs
- DbgUtil.cs
- VSWCFServiceContractGenerator.cs
- AesCryptoServiceProvider.cs
- httpapplicationstate.cs
- PreviewPrintController.cs
- FunctionQuery.cs
- DatatypeImplementation.cs
- StylusPointProperty.cs
- DecoderReplacementFallback.cs
- ArrayItemValue.cs
- DrawingCollection.cs
- TaiwanCalendar.cs
- ArrayList.cs
- HttpResponseInternalWrapper.cs
- XPathDocumentBuilder.cs
- CodeDomDecompiler.cs
- HashHelper.cs
- HttpValueCollection.cs
- DispatcherHooks.cs
- UriTemplateMatch.cs
- SetterBase.cs
- ObjectStateEntryDbDataRecord.cs
- StringFormat.cs
- BinHexDecoder.cs
- DataGridViewColumn.cs
- TabItem.cs
- StandardTransformFactory.cs
- JournalEntryListConverter.cs
- SplashScreenNativeMethods.cs
- StructuralType.cs
- XmlSortKey.cs
- StrokeDescriptor.cs
- StylusPoint.cs
- Documentation.cs
- BamlRecordWriter.cs
- ComponentResourceManager.cs
- WebDisplayNameAttribute.cs
- MemberMemberBinding.cs
- SoapIncludeAttribute.cs
- FunctionNode.cs