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
- ButtonFlatAdapter.cs
- XPathSelfQuery.cs
- DocumentApplicationJournalEntry.cs
- XmlSchemaComplexType.cs
- SamlAction.cs
- SqlProvider.cs
- DeleteHelper.cs
- RectangleGeometry.cs
- BasicKeyConstraint.cs
- DataServiceQuery.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ImageMetadata.cs
- SerializationAttributes.cs
- ChangeNode.cs
- Renderer.cs
- TraceEventCache.cs
- VisualBasicSettingsHandler.cs
- HealthMonitoringSectionHelper.cs
- WebConfigurationHostFileChange.cs
- ComponentEditorPage.cs
- FileUtil.cs
- PrintDialogException.cs
- TextServicesManager.cs
- ButtonChrome.cs
- ChtmlTextWriter.cs
- util.cs
- Stopwatch.cs
- SineEase.cs
- figurelength.cs
- QueryOptionExpression.cs
- ServiceDocumentFormatter.cs
- XmlSchemaAttributeGroupRef.cs
- ResXBuildProvider.cs
- Compiler.cs
- DirectoryObjectSecurity.cs
- SymmetricCryptoHandle.cs
- RadioButtonPopupAdapter.cs
- ProfileSettingsCollection.cs
- DesignOnlyAttribute.cs
- RightsManagementErrorHandler.cs
- DecimalConverter.cs
- CommandArguments.cs
- CatalogZoneBase.cs
- AtomServiceDocumentSerializer.cs
- CacheSection.cs
- WSHttpBindingBase.cs
- InkCollectionBehavior.cs
- XmlValidatingReader.cs
- BinHexDecoder.cs
- XXXInfos.cs
- TraceHandlerErrorFormatter.cs
- EventInfo.cs
- ConfigPathUtility.cs
- VariableQuery.cs
- BooleanConverter.cs
- CustomAttributeBuilder.cs
- TimeSpanSecondsConverter.cs
- AvTraceFormat.cs
- AbsoluteQuery.cs
- SplitterCancelEvent.cs
- RandomNumberGenerator.cs
- SchemaHelper.cs
- WebPartCollection.cs
- FaultPropagationQuery.cs
- SqlWriter.cs
- FontFamily.cs
- EndpointDiscoveryElement.cs
- SafeHandles.cs
- RolePrincipal.cs
- TreeViewCancelEvent.cs
- PropertySourceInfo.cs
- SqlDataRecord.cs
- TextSerializer.cs
- FlowDocumentPageViewerAutomationPeer.cs
- cache.cs
- _DigestClient.cs
- ProcessInputEventArgs.cs
- PerformanceCounterPermission.cs
- CollectionContainer.cs
- AxDesigner.cs
- EventProviderWriter.cs
- DataGridViewColumnDesigner.cs
- ResourceDictionaryCollection.cs
- Attribute.cs
- UnsafeNativeMethods.cs
- StandardCommands.cs
- NeutralResourcesLanguageAttribute.cs
- SchemaImporter.cs
- Matrix3DStack.cs
- Repeater.cs
- _DigestClient.cs
- ConfigurationStrings.cs
- NullPackagingPolicy.cs
- DataSourceControl.cs
- XmlSerializationGeneratedCode.cs
- ToolStripItemCollection.cs
- WebPartVerbCollection.cs
- Vertex.cs
- _SSPIWrapper.cs
- Int32AnimationUsingKeyFrames.cs