Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / Microsoft / Win32 / SafeHandles / SafePipeHandle.cs / 1305376 / SafePipeHandle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: SafePipeHandle ** ============================================================*/ namespace Microsoft.Win32.SafeHandles { using System; using System.IO; using System.Runtime.Versioning; using System.Security.Permissions; using Microsoft.Win32.SafeHandles; //// #pragma warning disable 618 // Have not migrated to v4 transparency yet [System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)] #pragma warning restore 618 [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)] [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class SafePipeHandle : SafeHandleZeroOrMinusOneIsInvalid { private SafePipeHandle() : base(true) { } public SafePipeHandle(IntPtr preexistingHandle, bool ownsHandle) : base(ownsHandle) { SetHandle(preexistingHandle); } [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] protected override bool ReleaseHandle() { return UnsafeNativeMethods.CloseHandle(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
- DataSourceXmlClassAttribute.cs
- HitTestParameters.cs
- IriParsingElement.cs
- LoginUtil.cs
- CodeArgumentReferenceExpression.cs
- PingOptions.cs
- ConvertTextFrag.cs
- ToolboxComponentsCreatingEventArgs.cs
- MeasureData.cs
- CompilationSection.cs
- CookieParameter.cs
- Catch.cs
- TableDetailsCollection.cs
- SQLByte.cs
- BitStack.cs
- ObjectParameter.cs
- AffineTransform3D.cs
- MessageSecurityVersionConverter.cs
- Shape.cs
- GeneralTransform3DGroup.cs
- OleDbError.cs
- Operators.cs
- MouseButton.cs
- XmlRawWriter.cs
- SamlAudienceRestrictionCondition.cs
- CaseInsensitiveComparer.cs
- LinkLabelLinkClickedEvent.cs
- ConvertTextFrag.cs
- TypeContext.cs
- DelegatingTypeDescriptionProvider.cs
- MappedMetaModel.cs
- SharedPerformanceCounter.cs
- WindowsEditBox.cs
- ToolStripItemClickedEventArgs.cs
- CheckBox.cs
- DateTimeUtil.cs
- FontStretchConverter.cs
- TreeNodeStyle.cs
- MouseActionConverter.cs
- SuppressMessageAttribute.cs
- TextEditorCharacters.cs
- SimpleLine.cs
- ActivityBindForm.cs
- ResourceCategoryAttribute.cs
- DataException.cs
- DescendentsWalker.cs
- VoiceSynthesis.cs
- RenderData.cs
- TreeNodeStyleCollection.cs
- ParameterElement.cs
- FixedDocument.cs
- UserPersonalizationStateInfo.cs
- TimelineCollection.cs
- GZipObjectSerializer.cs
- ContextStaticAttribute.cs
- MetadataItemCollectionFactory.cs
- DependencyPropertyDescriptor.cs
- XmlDocumentSurrogate.cs
- QueuePathEditor.cs
- InputQueueChannelAcceptor.cs
- XMLSyntaxException.cs
- FormViewInsertEventArgs.cs
- RouteParametersHelper.cs
- CounterSet.cs
- LocalizabilityAttribute.cs
- FormViewInsertEventArgs.cs
- CookieHandler.cs
- SplineKeyFrames.cs
- HwndSource.cs
- WebPermission.cs
- TextMetrics.cs
- HttpDateParse.cs
- XamlClipboardData.cs
- XmlAttributes.cs
- DbInsertCommandTree.cs
- DocumentPageTextView.cs
- RelatedImageListAttribute.cs
- StringUtil.cs
- ScriptModule.cs
- XmlNamespaceDeclarationsAttribute.cs
- OutgoingWebRequestContext.cs
- CriticalHandle.cs
- SoapTransportImporter.cs
- ButtonColumn.cs
- OleDbConnectionInternal.cs
- ClientData.cs
- _NetRes.cs
- GenericTextProperties.cs
- DockPanel.cs
- SmtpReplyReader.cs
- TextPointerBase.cs
- DriveNotFoundException.cs
- LogFlushAsyncResult.cs
- LoginUtil.cs
- HtmlInputImage.cs
- ToolStripDropDownClosingEventArgs.cs
- LogExtent.cs
- DataGridViewComboBoxColumn.cs
- WeakRefEnumerator.cs
- UnsafeNativeMethodsMilCoreApi.cs