Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Log / System / IO / Log / SafeMarshalContext.cs / 1 / SafeMarshalContext.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.IO.Log { using System; using System.Runtime.InteropServices; using System.Runtime.ConstrainedExecution; using System.Security; internal sealed class SafeMarshalContext : SafeHandle { public SafeMarshalContext() : base(IntPtr.Zero, true) { } public override bool IsInvalid { get { return IsClosed || this.handle == IntPtr.Zero; } } [DllImport("clfsw32.dll"), SuppressUnmanagedCodeSecurity, ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] private static extern bool DeleteLogMarshallingArea(IntPtr ptr); override protected bool ReleaseHandle() { return DeleteLogMarshallingArea(this.handle); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlChildEnumerator.cs
- ContainerVisual.cs
- PropertyBuilder.cs
- UnsafeNativeMethods.cs
- MimePart.cs
- CodeCommentStatement.cs
- SchemaImporterExtensionElementCollection.cs
- InheritanceContextHelper.cs
- HttpCookie.cs
- BindingElementExtensionElement.cs
- ListParaClient.cs
- PointAnimationUsingPath.cs
- ColorDialog.cs
- BackStopAuthenticationModule.cs
- BuildManagerHost.cs
- InputScopeNameConverter.cs
- ExtentJoinTreeNode.cs
- BlurBitmapEffect.cs
- ToolStripItemEventArgs.cs
- ClockController.cs
- Matrix3D.cs
- TypeNameConverter.cs
- DebugTrace.cs
- TextElementEnumerator.cs
- DateTime.cs
- dataprotectionpermissionattribute.cs
- ConfigurationSectionGroupCollection.cs
- COM2IProvidePropertyBuilderHandler.cs
- ReachFixedPageSerializerAsync.cs
- WebPartHelpVerb.cs
- HttpResponseWrapper.cs
- ProcessModelSection.cs
- ExecutionProperties.cs
- OracleTransaction.cs
- ThicknessKeyFrameCollection.cs
- CodeAttributeArgumentCollection.cs
- LocalServiceSecuritySettings.cs
- AttributeXamlType.cs
- ProxyElement.cs
- DoubleLink.cs
- NavigationProperty.cs
- WebPartTransformerAttribute.cs
- SelectedDatesCollection.cs
- InlineObject.cs
- recordstatescratchpad.cs
- EnumUnknown.cs
- ProfileModule.cs
- DataGridTablesFactory.cs
- PerspectiveCamera.cs
- MenuCommand.cs
- XPathException.cs
- BufferBuilder.cs
- PointKeyFrameCollection.cs
- TimeEnumHelper.cs
- ServiceHostingEnvironmentSection.cs
- TypedTableBase.cs
- WebResourceAttribute.cs
- ButtonField.cs
- RequestCachingSection.cs
- ListBindingHelper.cs
- AttributeEmitter.cs
- FixedPageStructure.cs
- InvalidProgramException.cs
- OverflowException.cs
- ACE.cs
- WebPartEditorOkVerb.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- SafeSystemMetrics.cs
- XmlNode.cs
- ByValueEqualityComparer.cs
- SqlResolver.cs
- CommonDialog.cs
- TrackingServices.cs
- ListParagraph.cs
- TransformCollection.cs
- WsdlImporterElementCollection.cs
- PropertyIDSet.cs
- ShellProvider.cs
- ModelUIElement3D.cs
- Decimal.cs
- FlowDocumentPageViewerAutomationPeer.cs
- XmlCustomFormatter.cs
- UTF32Encoding.cs
- MetadataPropertyAttribute.cs
- MenuItem.cs
- DataGridViewSelectedRowCollection.cs
- PerformanceCounterPermission.cs
- CompletionProxy.cs
- SignatureDescription.cs
- ObjectViewQueryResultData.cs
- HttpBrowserCapabilitiesBase.cs
- BamlCollectionHolder.cs
- ConfigurationValues.cs
- base64Transforms.cs
- XmlSchemaCollection.cs
- WindowsGrip.cs
- Mappings.cs
- PinnedBufferMemoryStream.cs
- autovalidator.cs
- DefaultTypeArgumentAttribute.cs