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
- ServiceObjectContainer.cs
- TransactionFilter.cs
- ConnectionStringsSection.cs
- AlgoModule.cs
- SamlSecurityToken.cs
- BoundField.cs
- BatchParser.cs
- SamlAdvice.cs
- GridViewColumnHeaderAutomationPeer.cs
- DataBoundControl.cs
- DispatchRuntime.cs
- SqlStream.cs
- WebPartHelpVerb.cs
- DeploymentSectionCache.cs
- filewebresponse.cs
- _StreamFramer.cs
- TemplateBuilder.cs
- SqlVisitor.cs
- DecimalKeyFrameCollection.cs
- OperandQuery.cs
- CompensationHandlingFilter.cs
- ProxyHwnd.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BooleanStorage.cs
- LoginName.cs
- Win32PrintDialog.cs
- RelationshipEndCollection.cs
- Canvas.cs
- TextServicesDisplayAttribute.cs
- FrameworkElement.cs
- FloaterBaseParagraph.cs
- SessionStateUtil.cs
- EmptyReadOnlyDictionaryInternal.cs
- StyleSelector.cs
- ServiceKnownTypeAttribute.cs
- ControlsConfig.cs
- JapaneseCalendar.cs
- WebPartHelpVerb.cs
- HttpTransportSecurity.cs
- _AutoWebProxyScriptWrapper.cs
- RadioButtonStandardAdapter.cs
- PnrpPeerResolver.cs
- WindowsPen.cs
- baseshape.cs
- Cell.cs
- FtpWebRequest.cs
- PixelFormatConverter.cs
- BypassElement.cs
- DateRangeEvent.cs
- DataGridViewTextBoxCell.cs
- HtmlTableCell.cs
- ImageButton.cs
- LinkDesigner.cs
- Int32RectValueSerializer.cs
- ChtmlCalendarAdapter.cs
- MessageSecurityOverMsmqElement.cs
- DataGridItemEventArgs.cs
- ProfileBuildProvider.cs
- TabletCollection.cs
- ClassicBorderDecorator.cs
- RadioButtonBaseAdapter.cs
- BindingMAnagerBase.cs
- SpeakCompletedEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- smtpconnection.cs
- LoadWorkflowCommand.cs
- ObjectViewEntityCollectionData.cs
- ButtonPopupAdapter.cs
- DrawingGroup.cs
- WindowPatternIdentifiers.cs
- GeometryModel3D.cs
- DeclarativeCatalogPart.cs
- EventLogQuery.cs
- TypeDescriptorContext.cs
- Emitter.cs
- NamespaceListProperty.cs
- WebServiceParameterData.cs
- TimeManager.cs
- NumericPagerField.cs
- DataColumnCollection.cs
- GiveFeedbackEvent.cs
- WindowsToolbarAsMenu.cs
- _Connection.cs
- ResourcePermissionBaseEntry.cs
- Vector3D.cs
- GreaterThan.cs
- DynamicDocumentPaginator.cs
- ExitEventArgs.cs
- WindowsListViewGroup.cs
- BasicHttpSecurity.cs
- ExceptionRoutedEventArgs.cs
- DataGridViewCellParsingEventArgs.cs
- ExtendedPropertyDescriptor.cs
- EventHandlersStore.cs
- ScriptManagerProxy.cs
- QuaternionRotation3D.cs
- AssemblyUtil.cs
- DynamicRenderer.cs
- QilInvoke.cs
- DefinitionBase.cs