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
- Listbox.cs
- LinqExpressionNormalizer.cs
- OleDbRowUpdatedEvent.cs
- PolyBezierSegment.cs
- ExtentKey.cs
- XmlMembersMapping.cs
- ColorTranslator.cs
- VScrollBar.cs
- LifetimeServices.cs
- RotateTransform3D.cs
- ColorInterpolationModeValidation.cs
- URL.cs
- FormatVersion.cs
- SurrogateEncoder.cs
- ClientConfigurationHost.cs
- UIElement.cs
- FileDialog_Vista_Interop.cs
- SQLBytesStorage.cs
- HttpListenerRequest.cs
- EntityTemplateFactory.cs
- LastQueryOperator.cs
- FontWeightConverter.cs
- FieldToken.cs
- connectionpool.cs
- ModuleConfigurationInfo.cs
- GrammarBuilderWildcard.cs
- MemberRelationshipService.cs
- SingleStorage.cs
- WindowsClaimSet.cs
- _BasicClient.cs
- BinaryObjectReader.cs
- ActivityExecutor.cs
- ProfileSettings.cs
- MemoryMappedViewAccessor.cs
- NavigationWindow.cs
- TypeDescriptorFilterService.cs
- StorageModelBuildProvider.cs
- TransformerConfigurationWizardBase.cs
- BitmapEffectCollection.cs
- XPathSelfQuery.cs
- Trigger.cs
- DrawingGroup.cs
- PasswordRecovery.cs
- AddInSegmentDirectoryNotFoundException.cs
- MobileListItem.cs
- WebMessageEncodingBindingElement.cs
- StoreUtilities.cs
- Stack.cs
- DoubleLink.cs
- NotificationContext.cs
- FileDialog_Vista.cs
- SiteMapNodeItemEventArgs.cs
- AbstractExpressions.cs
- CodeMemberMethod.cs
- securitymgrsite.cs
- RecognizedAudio.cs
- MarginsConverter.cs
- MenuEventArgs.cs
- ConfigurationConverterBase.cs
- TokenCreationException.cs
- HttpProfileGroupBase.cs
- SqlCacheDependencyDatabase.cs
- CompiledQueryCacheEntry.cs
- OdbcCommand.cs
- FtpRequestCacheValidator.cs
- ScalarConstant.cs
- SQLDecimalStorage.cs
- RijndaelManagedTransform.cs
- TablePattern.cs
- EasingQuaternionKeyFrame.cs
- ComPlusTypeValidator.cs
- PrintControllerWithStatusDialog.cs
- TextElementEditingBehaviorAttribute.cs
- XsltContext.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- DbCommandTree.cs
- SelectedCellsChangedEventArgs.cs
- XmlTextAttribute.cs
- StatusBarAutomationPeer.cs
- HttpDebugHandler.cs
- NavigateUrlConverter.cs
- SslSecurityTokenParameters.cs
- HMACSHA1.cs
- ConnectorSelectionGlyph.cs
- MeshGeometry3D.cs
- XPathScanner.cs
- DataPointer.cs
- DateBoldEvent.cs
- StrokeNodeOperations2.cs
- TagPrefixAttribute.cs
- TraceContextRecord.cs
- SqlFormatter.cs
- DesignBindingPropertyDescriptor.cs
- ByteRangeDownloader.cs
- ServiceDescriptionImporter.cs
- RbTree.cs
- DbProviderFactories.cs
- CodeMemberProperty.cs
- ExpressionBuilderContext.cs
- BaseDataListActionList.cs