Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / Log / System / IO / Log / SafeArchiveContext.cs / 1 / SafeArchiveContext.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 SafeArchiveContext : SafeHandle { public SafeArchiveContext() : 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 TerminateLogArchive(IntPtr ptr); override protected bool ReleaseHandle() { return TerminateLogArchive(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
- WebServiceFault.cs
- WebPartDisplayMode.cs
- OutOfProcStateClientManager.cs
- SqlNotificationEventArgs.cs
- ConnectivityStatus.cs
- SynchronizedDispatch.cs
- IgnoreSectionHandler.cs
- PageFunction.cs
- ByteStack.cs
- AttachedAnnotation.cs
- TextStore.cs
- DebugView.cs
- TraceContextRecord.cs
- TransformerConfigurationWizardBase.cs
- TimelineGroup.cs
- AttributeEmitter.cs
- GifBitmapEncoder.cs
- ComboBox.cs
- Debug.cs
- FocusWithinProperty.cs
- SystemMulticastIPAddressInformation.cs
- ConnectionStringsExpressionBuilder.cs
- Rfc2898DeriveBytes.cs
- X509Extension.cs
- ScopelessEnumAttribute.cs
- ActivityBindForm.Designer.cs
- SystemResourceHost.cs
- EditingScope.cs
- KeyValueConfigurationCollection.cs
- EditorBrowsableAttribute.cs
- SigningProgress.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AssemblyName.cs
- ControlBuilder.cs
- MultiBindingExpression.cs
- SQLChars.cs
- AsyncOperationContext.cs
- ToolStrip.cs
- ChannelReliableSession.cs
- SamlAttributeStatement.cs
- DataPagerCommandEventArgs.cs
- AutomationInteropProvider.cs
- LightweightCodeGenerator.cs
- Speller.cs
- xmlglyphRunInfo.cs
- StandardBindingElement.cs
- XmlFormatWriterGenerator.cs
- WmfPlaceableFileHeader.cs
- CharConverter.cs
- pingexception.cs
- BamlRecordReader.cs
- WindowAutomationPeer.cs
- DateTimeFormat.cs
- MaskedTextProvider.cs
- HttpRawResponse.cs
- InkPresenter.cs
- WebAdminConfigurationHelper.cs
- DocumentOrderQuery.cs
- ResourcePermissionBase.cs
- SimplePropertyEntry.cs
- Attributes.cs
- dbdatarecord.cs
- ToolStripDropDownClosingEventArgs.cs
- OleServicesContext.cs
- VectorValueSerializer.cs
- WebPartActionVerb.cs
- MemberAccessException.cs
- SoapClientMessage.cs
- DBCommand.cs
- ToolboxItem.cs
- DateTimePicker.cs
- IdnMapping.cs
- GuidelineSet.cs
- GeometryModel3D.cs
- EditorZoneBase.cs
- returneventsaver.cs
- RawUIStateInputReport.cs
- ManifestSignedXml.cs
- SByte.cs
- GridViewItemAutomationPeer.cs
- WebPartDisplayModeEventArgs.cs
- CounterCreationData.cs
- WindowsListBox.cs
- FormsAuthentication.cs
- RSAOAEPKeyExchangeDeformatter.cs
- OleDbRowUpdatingEvent.cs
- Viewport3DVisual.cs
- MULTI_QI.cs
- WmlListAdapter.cs
- BamlResourceContent.cs
- HttpCookie.cs
- SvcMapFile.cs
- ActionMessageFilter.cs
- CommandConverter.cs
- SolidColorBrush.cs
- DoubleUtil.cs
- WebScriptServiceHost.cs
- ListDictionaryInternal.cs
- SchemaTypeEmitter.cs
- OwnerDrawPropertyBag.cs