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
- DependencySource.cs
- GeneralTransform3DGroup.cs
- XmlDataSourceView.cs
- DBSqlParserColumn.cs
- TextRangeEdit.cs
- SocketPermission.cs
- EpmSyndicationContentDeSerializer.cs
- Rotation3D.cs
- XmlSchemaExporter.cs
- CategoryGridEntry.cs
- MembershipSection.cs
- FileReader.cs
- ContextMenuStrip.cs
- DiscoveryClientDocuments.cs
- Activator.cs
- Asn1IntegerConverter.cs
- UInt64Converter.cs
- CmsInterop.cs
- CaseInsensitiveHashCodeProvider.cs
- TimelineGroup.cs
- Rule.cs
- XmlWellformedWriter.cs
- Preprocessor.cs
- TextDecorationLocationValidation.cs
- DataSourceConverter.cs
- PingOptions.cs
- PrimitiveCodeDomSerializer.cs
- Rules.cs
- LocalBuilder.cs
- HTTPNotFoundHandler.cs
- RsaSecurityTokenParameters.cs
- QueryCacheEntry.cs
- HandoffBehavior.cs
- StylusButtonEventArgs.cs
- formatter.cs
- TabControlEvent.cs
- StickyNote.cs
- FunctionParameter.cs
- XMLSchema.cs
- WebPartsSection.cs
- RoutedEventValueSerializer.cs
- PeerSecurityManager.cs
- FileVersionInfo.cs
- ZipQueryOperator.cs
- PaintEvent.cs
- DoubleStorage.cs
- StringBuilder.cs
- SchemaImporterExtensionElementCollection.cs
- AttributeTableBuilder.cs
- FixedBufferAttribute.cs
- SafeLocalMemHandle.cs
- StringOutput.cs
- DocComment.cs
- ContextMenu.cs
- BitVec.cs
- IApplicationTrustManager.cs
- Rotation3DAnimation.cs
- TextServicesHost.cs
- MediaSystem.cs
- BitmapScalingModeValidation.cs
- ListDictionaryInternal.cs
- PriorityChain.cs
- ToolStripLocationCancelEventArgs.cs
- TextServicesHost.cs
- EncryptedReference.cs
- PowerEase.cs
- CssTextWriter.cs
- TypeBinaryExpression.cs
- PackagingUtilities.cs
- FeatureSupport.cs
- SoapHeaderAttribute.cs
- CustomCredentialPolicy.cs
- SamlAuthorizationDecisionStatement.cs
- ProcessModuleDesigner.cs
- EdmItemError.cs
- BooleanStorage.cs
- SecurityAttributeGenerationHelper.cs
- BitmapPalette.cs
- BindingSource.cs
- dataSvcMapFileLoader.cs
- EmptyQuery.cs
- CommandConverter.cs
- DrawingContextWalker.cs
- UInt32.cs
- EditingCoordinator.cs
- DataTableNewRowEvent.cs
- ComboBox.cs
- FocusManager.cs
- WebPartDeleteVerb.cs
- DesignerVerb.cs
- SmtpClient.cs
- TableLayoutCellPaintEventArgs.cs
- DesignOnlyAttribute.cs
- RemotingConfigParser.cs
- ConfigPathUtility.cs
- LogEntrySerializationException.cs
- PreDigestedSignedInfo.cs
- EntityDataSourceContainerNameItem.cs
- CreatingCookieEventArgs.cs
- Update.cs