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
- Exceptions.cs
- HtmlInputButton.cs
- FontDifferentiator.cs
- AssemblyResourceLoader.cs
- PublisherIdentityPermission.cs
- IPAddress.cs
- SafeProcessHandle.cs
- SafeHandle.cs
- HitTestParameters.cs
- ToolboxSnapDragDropEventArgs.cs
- CmsInterop.cs
- EventRecordWrittenEventArgs.cs
- MarkupCompilePass1.cs
- PagerSettings.cs
- TableStyle.cs
- AsyncResult.cs
- StatusBarItem.cs
- basecomparevalidator.cs
- LoginName.cs
- HandledEventArgs.cs
- HttpRuntime.cs
- input.cs
- DatagridviewDisplayedBandsData.cs
- PackageRelationshipSelector.cs
- ToolBar.cs
- RedistVersionInfo.cs
- XmlDictionaryReader.cs
- StickyNoteAnnotations.cs
- FormsAuthenticationEventArgs.cs
- CodeDomSerializer.cs
- __TransparentProxy.cs
- LockCookie.cs
- BasicBrowserDialog.cs
- CommentAction.cs
- EntityDesignerUtils.cs
- ColorAnimationBase.cs
- EntityDataSourceSelectingEventArgs.cs
- BrowserPolicyValidator.cs
- PrePostDescendentsWalker.cs
- SyndicationPerson.cs
- OdbcEnvironmentHandle.cs
- OperatorExpressions.cs
- Pts.cs
- JavaScriptSerializer.cs
- InnerItemCollectionView.cs
- ConnectionManagementElementCollection.cs
- HorizontalAlignConverter.cs
- WebBrowser.cs
- FamilyTypefaceCollection.cs
- DataGridTextBox.cs
- DbProviderFactoriesConfigurationHandler.cs
- TextContainer.cs
- IntSecurity.cs
- PlatformCulture.cs
- ComboBoxRenderer.cs
- StaticFileHandler.cs
- ImageAutomationPeer.cs
- AssemblyAssociatedContentFileAttribute.cs
- DataGridViewRowConverter.cs
- IntSumAggregationOperator.cs
- StaticResourceExtension.cs
- GlobalProxySelection.cs
- NativeMethods.cs
- ThreadPool.cs
- Privilege.cs
- StyleSheetComponentEditor.cs
- ScopeCompiler.cs
- DelegatingHeader.cs
- AutomationElementIdentifiers.cs
- PageWrapper.cs
- ConfigurationStrings.cs
- PtsPage.cs
- SiteMapProvider.cs
- DataControlFieldHeaderCell.cs
- ClientSideProviderDescription.cs
- EventLogPermission.cs
- ParentQuery.cs
- HeaderLabel.cs
- GroupQuery.cs
- Trace.cs
- MapPathBasedVirtualPathProvider.cs
- StringCollectionEditor.cs
- CodeIdentifiers.cs
- XmlName.cs
- ResourceDescriptionAttribute.cs
- StreamSecurityUpgradeInitiator.cs
- OleDbDataAdapter.cs
- ExpandSegment.cs
- PropertyPath.cs
- FormsAuthentication.cs
- StrokeNode.cs
- FixedSOMImage.cs
- CodeCatchClauseCollection.cs
- _SingleItemRequestCache.cs
- ToolStripMenuItem.cs
- CommandConverter.cs
- CustomCategoryAttribute.cs
- LineMetrics.cs
- DataService.cs
- MemberDescriptor.cs