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
- FreezableOperations.cs
- FlowPanelDesigner.cs
- ContextProperty.cs
- ReflectionPermission.cs
- _SecureChannel.cs
- MsmqIntegrationElement.cs
- wgx_exports.cs
- SqlDataSourceCustomCommandEditor.cs
- Main.cs
- CustomError.cs
- WinEventQueueItem.cs
- SqlComparer.cs
- CompositeScriptReference.cs
- AdapterUtil.cs
- CachedTypeface.cs
- AdornerLayer.cs
- ImageButton.cs
- ColorContextHelper.cs
- MouseWheelEventArgs.cs
- AVElementHelper.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- StatusBar.cs
- WebHeaderCollection.cs
- FamilyTypefaceCollection.cs
- StringUtil.cs
- WorkingDirectoryEditor.cs
- CatalogZoneDesigner.cs
- _LocalDataStoreMgr.cs
- MemberCollection.cs
- SimplePropertyEntry.cs
- ObjectSerializerFactory.cs
- ActivityBindForm.cs
- IList.cs
- ChangeDirector.cs
- InertiaTranslationBehavior.cs
- StreamGeometry.cs
- CommonDialog.cs
- LayoutManager.cs
- Hex.cs
- RootNamespaceAttribute.cs
- QualifiedCellIdBoolean.cs
- DataReceivedEventArgs.cs
- Wildcard.cs
- StatusBarPanel.cs
- TraceSource.cs
- RegisteredDisposeScript.cs
- WindowsListViewItemCheckBox.cs
- OracleMonthSpan.cs
- AccessedThroughPropertyAttribute.cs
- Permission.cs
- UnsignedPublishLicense.cs
- safesecurityhelperavalon.cs
- HtmlInputRadioButton.cs
- SerializationObjectManager.cs
- DependentTransaction.cs
- NonClientArea.cs
- SeekableReadStream.cs
- CodeIndexerExpression.cs
- ProfilePropertySettings.cs
- BuildProvider.cs
- DigestComparer.cs
- TagMapCollection.cs
- DynamicValidatorEventArgs.cs
- AppDomain.cs
- WebBrowserHelper.cs
- RouteValueExpressionBuilder.cs
- WinOEToolBoxItem.cs
- LockedHandleGlyph.cs
- OpenFileDialog.cs
- HtmlLabelAdapter.cs
- DesignerCategoryAttribute.cs
- nulltextnavigator.cs
- HtmlCalendarAdapter.cs
- ImportRequest.cs
- SqlSupersetValidator.cs
- CodeCompileUnit.cs
- StorageSetMapping.cs
- TransformedBitmap.cs
- DesignerSerializationVisibilityAttribute.cs
- Serializer.cs
- SecurityToken.cs
- ShaderRenderModeValidation.cs
- DBParameter.cs
- StringPropertyBuilder.cs
- HyperLinkField.cs
- Error.cs
- SimpleNameService.cs
- BufferedReadStream.cs
- XsltQilFactory.cs
- HtmlFormWrapper.cs
- UIElementPropertyUndoUnit.cs
- SimpleModelProvider.cs
- PerformanceCountersElement.cs
- RadioButtonRenderer.cs
- SafeNativeMethodsMilCoreApi.cs
- PeerResolverElement.cs
- ToolStripTextBox.cs
- OutputScopeManager.cs
- ExpressionBindingCollection.cs
- ExpressionQuoter.cs