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
- BamlLocalizableResource.cs
- NotConverter.cs
- RequestQueue.cs
- RbTree.cs
- CrossSiteScriptingValidation.cs
- PasswordBox.cs
- ScrollData.cs
- PartialList.cs
- HtmlInputButton.cs
- Converter.cs
- SeekStoryboard.cs
- RemotingConfigParser.cs
- OleDbParameter.cs
- DbCommandDefinition.cs
- PackageRelationship.cs
- EventData.cs
- EventSinkHelperWriter.cs
- Model3DGroup.cs
- TemplateAction.cs
- ErrorRuntimeConfig.cs
- DecimalConverter.cs
- DependencyPropertyHelper.cs
- DataChangedEventManager.cs
- ExpandCollapsePattern.cs
- COM2ExtendedUITypeEditor.cs
- OdbcHandle.cs
- Int64AnimationUsingKeyFrames.cs
- Decimal.cs
- StylusShape.cs
- SamlDoNotCacheCondition.cs
- SerialPinChanges.cs
- DockAndAnchorLayout.cs
- _ConnectStream.cs
- AstNode.cs
- SaveFileDialog.cs
- EventLogWatcher.cs
- ResourceReferenceExpression.cs
- MostlySingletonList.cs
- TagPrefixInfo.cs
- Win32SafeHandles.cs
- HtmlSelectionListAdapter.cs
- ProfileEventArgs.cs
- DateTimeOffset.cs
- EventLogPermissionEntryCollection.cs
- UserMapPath.cs
- ThrowHelper.cs
- FormsAuthentication.cs
- ReversePositionQuery.cs
- EntityConnection.cs
- ListView.cs
- Variable.cs
- ProxyGenerationError.cs
- Rfc2898DeriveBytes.cs
- SqlAliaser.cs
- DrawingBrush.cs
- MarkupExtensionParser.cs
- XPathMessageFilter.cs
- EdmValidator.cs
- MenuScrollingVisibilityConverter.cs
- baseaxisquery.cs
- TransportOutputChannel.cs
- UnhandledExceptionEventArgs.cs
- ToolStripGrip.cs
- WebConfigurationHost.cs
- SmiEventSink_DeferedProcessing.cs
- SafeNativeMethods.cs
- ToolStripDropDownButton.cs
- GreaterThanOrEqual.cs
- DescendentsWalkerBase.cs
- NamedPermissionSet.cs
- MultiAsyncResult.cs
- DeferredReference.cs
- HierarchicalDataTemplate.cs
- XmlILTrace.cs
- JoinTreeSlot.cs
- safemediahandle.cs
- XmlSchemaComplexType.cs
- RectIndependentAnimationStorage.cs
- SqlDependencyUtils.cs
- TypedElement.cs
- Debug.cs
- ResolveMatchesCD1.cs
- SocketException.cs
- SortedSet.cs
- _ProxyChain.cs
- DocumentScope.cs
- ComplusEndpointConfigContainer.cs
- KeyValueInternalCollection.cs
- TextReader.cs
- MessageQueueKey.cs
- CharUnicodeInfo.cs
- DesignerActionKeyboardBehavior.cs
- UIElementCollection.cs
- DBNull.cs
- HttpCookiesSection.cs
- ClientBuildManager.cs
- ObjectTypeMapping.cs
- TextEditorContextMenu.cs
- TreeNode.cs
- SimpleMailWebEventProvider.cs