Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RowSpanVector.cs
- XamlTemplateSerializer.cs
- DSASignatureFormatter.cs
- MemberProjectionIndex.cs
- ThrowHelper.cs
- PathNode.cs
- LayoutUtils.cs
- DictionarySurrogate.cs
- MimeWriter.cs
- SqlConnectionString.cs
- ChannelServices.cs
- ProxyGenerator.cs
- PopupEventArgs.cs
- FunctionQuery.cs
- CodeSnippetCompileUnit.cs
- pingexception.cs
- ScriptServiceAttribute.cs
- ListContractAdapter.cs
- WaitForChangedResult.cs
- XmlSerializerNamespaces.cs
- StdValidatorsAndConverters.cs
- CodeMemberMethod.cs
- TextDpi.cs
- TCEAdapterGenerator.cs
- TaskScheduler.cs
- ContainerSelectorBehavior.cs
- AffineTransform3D.cs
- RecognitionResult.cs
- MemberDomainMap.cs
- Point3DIndependentAnimationStorage.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SslStreamSecurityUpgradeProvider.cs
- EpmSyndicationContentSerializer.cs
- ApplicationCommands.cs
- WizardPanelChangingEventArgs.cs
- Enlistment.cs
- StretchValidation.cs
- CodeDomComponentSerializationService.cs
- BorderSidesEditor.cs
- BitmapEffectInput.cs
- BindingCompleteEventArgs.cs
- XdrBuilder.cs
- SoapIncludeAttribute.cs
- TypeUtil.cs
- RightsManagementManager.cs
- UICuesEvent.cs
- XmlAttribute.cs
- GlyphRun.cs
- SoapFormatter.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SectionXmlInfo.cs
- ReflectionUtil.cs
- XmlUnspecifiedAttribute.cs
- Debug.cs
- StatusBarAutomationPeer.cs
- DesignerMetadata.cs
- HybridObjectCache.cs
- FontNamesConverter.cs
- AssemblyAttributesGoHere.cs
- TextCharacters.cs
- XmlExpressionDumper.cs
- TextCompositionManager.cs
- DynamicRouteExpression.cs
- UserPreferenceChangedEventArgs.cs
- _AuthenticationState.cs
- Utility.cs
- DictionaryContent.cs
- ColorEditor.cs
- FunctionImportElement.cs
- XmlNotation.cs
- CategoryState.cs
- VisualBrush.cs
- HttpCacheVaryByContentEncodings.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ChooseAction.cs
- SoapFaultCodes.cs
- COM2TypeInfoProcessor.cs
- Number.cs
- COSERVERINFO.cs
- ParenExpr.cs
- AssemblyNameProxy.cs
- SignatureResourcePool.cs
- Automation.cs
- shaperfactoryquerycachekey.cs
- WeakReferenceKey.cs
- CasesDictionary.cs
- DocumentCollection.cs
- WebPartDescription.cs
- PackWebResponse.cs
- DataServices.cs
- MailHeaderInfo.cs
- XmlExtensionFunction.cs
- CallContext.cs
- MetadataWorkspace.cs
- ObjectKeyFrameCollection.cs
- SessionStateItemCollection.cs
- FactoryMaker.cs
- CroppedBitmap.cs
- ValueSerializer.cs
- MetadataArtifactLoaderComposite.cs