Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Log / System / IO / Log / SafeMarshalContext.cs / 1305376 / 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.Runtime.Versioning; 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)] [ResourceExposure(ResourceScope.None)] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcConnectionOpen.cs
- MethodRental.cs
- TreeViewHitTestInfo.cs
- Simplifier.cs
- Model3DGroup.cs
- Baml6Assembly.cs
- XmlDataSourceDesigner.cs
- XamlDesignerSerializationManager.cs
- DesignerVerbCollection.cs
- SpoolingTaskBase.cs
- PhysicalAddress.cs
- _SpnDictionary.cs
- StorageFunctionMapping.cs
- TreeNodeMouseHoverEvent.cs
- RemoteCryptoTokenProvider.cs
- RegexRunner.cs
- Compress.cs
- SelectionRangeConverter.cs
- ParallelForEach.cs
- InfoCardTraceRecord.cs
- ListManagerBindingsCollection.cs
- StopStoryboard.cs
- EditorPart.cs
- BaseParser.cs
- MatrixTransform3D.cs
- NavigationFailedEventArgs.cs
- DataGridCheckBoxColumn.cs
- TextCharacters.cs
- PtsHelper.cs
- IOThreadTimer.cs
- brushes.cs
- OdbcStatementHandle.cs
- XmlFormatReaderGenerator.cs
- WebPartConnectionsCancelVerb.cs
- SnapshotChangeTrackingStrategy.cs
- ListQueryResults.cs
- WpfKnownType.cs
- IResourceProvider.cs
- TracePayload.cs
- RequestQueue.cs
- ImageSource.cs
- OrderedDictionary.cs
- DataSysAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DataGridViewColumn.cs
- SafeMILHandle.cs
- RootProfilePropertySettingsCollection.cs
- CellIdBoolean.cs
- OdbcConnectionString.cs
- MetafileHeaderEmf.cs
- MaterialGroup.cs
- WebHeaderCollection.cs
- AsyncOperation.cs
- UIElement3DAutomationPeer.cs
- XamlPoint3DCollectionSerializer.cs
- TimelineCollection.cs
- RealProxy.cs
- RuntimeHandles.cs
- ISO2022Encoding.cs
- XmlRawWriterWrapper.cs
- SymbolEqualComparer.cs
- Clause.cs
- SymbolUsageManager.cs
- DirectionalLight.cs
- WindowsFont.cs
- SchemaElementDecl.cs
- SQLDecimalStorage.cs
- Timer.cs
- OpenTypeCommon.cs
- RoutedEventConverter.cs
- BuildProviderCollection.cs
- InstanceBehavior.cs
- ChineseLunisolarCalendar.cs
- Formatter.cs
- ObsoleteAttribute.cs
- SQLBytes.cs
- SQLString.cs
- TreeView.cs
- IdleTimeoutMonitor.cs
- WCFModelStrings.Designer.cs
- DocumentReferenceCollection.cs
- ReferentialConstraint.cs
- XmlElementAttribute.cs
- DispatchChannelSink.cs
- XPathExpr.cs
- EdmEntityTypeAttribute.cs
- RuntimeConfig.cs
- ApplicationException.cs
- DockProviderWrapper.cs
- DataListItem.cs
- Path.cs
- TextEncodedRawTextWriter.cs
- FormViewPageEventArgs.cs
- FileStream.cs
- ObjectDataSourceMethodEventArgs.cs
- EmbeddedMailObjectCollectionEditor.cs
- Number.cs
- SQLRoleProvider.cs
- CompoundFileDeflateTransform.cs
- HtmlControlPersistable.cs