Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / Tools / WSATConfig / Configuration / SafeCertificateStore.cs / 1305376 / SafeCertificateStore.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.Tools.ServiceModel.WsatConfig { using System; using System.Security; using System.Security.Permissions; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.ConstrainedExecution; using Microsoft.Win32.SafeHandles; sealed class SafeCertificateStore : SafeHandleZeroOrMinusOneIsInvalid { [SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)] SafeCertificateStore() : base(false) { return; } public override bool IsInvalid { get { return handle == IntPtr.Zero; } } protected override bool ReleaseHandle() { #pragma warning suppress 56523 return SafeNativeMethods.CertCloseStore(handle, 0); } } } // 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
- x509store.cs
- CommonProperties.cs
- PageFunction.cs
- CodeTypeReferenceExpression.cs
- HostingEnvironment.cs
- StatusBarDesigner.cs
- WorkflowViewService.cs
- UrlPropertyAttribute.cs
- GeometryModel3D.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- IteratorFilter.cs
- DiscoveryReferences.cs
- DynamicActivityProperty.cs
- ModifierKeysConverter.cs
- MouseGesture.cs
- ToolBarButtonClickEvent.cs
- ForeignKeyFactory.cs
- TcpClientChannel.cs
- HtmlWindowCollection.cs
- remotingproxy.cs
- InputScope.cs
- BrushValueSerializer.cs
- SafeRightsManagementHandle.cs
- ControlDesigner.cs
- Sequence.cs
- DBPropSet.cs
- MappingModelBuildProvider.cs
- LineServicesCallbacks.cs
- HitTestParameters.cs
- DependencySource.cs
- PriorityQueue.cs
- HttpCookiesSection.cs
- FrugalList.cs
- SrgsElementFactory.cs
- ImportStoreException.cs
- XsltException.cs
- updateconfighost.cs
- X509SecurityToken.cs
- Transform.cs
- DebugInfoExpression.cs
- CodeGotoStatement.cs
- _UncName.cs
- ValidationError.cs
- Parser.cs
- EntityDesignerUtils.cs
- Sentence.cs
- IxmlLineInfo.cs
- QilScopedVisitor.cs
- SafeNativeMethods.cs
- TextEffectResolver.cs
- ButtonChrome.cs
- CompositeScriptReference.cs
- CallContext.cs
- Line.cs
- ArgumentFixer.cs
- Empty.cs
- Symbol.cs
- _NetworkingPerfCounters.cs
- ContainerControl.cs
- CollectionContainer.cs
- RenderDataDrawingContext.cs
- DecoderBestFitFallback.cs
- RecordsAffectedEventArgs.cs
- PropertyInfoSet.cs
- LeaseManager.cs
- DataKeyCollection.cs
- GridViewHeaderRowPresenter.cs
- DetailsViewUpdatedEventArgs.cs
- ClientFormsIdentity.cs
- ButtonBase.cs
- HttpConfigurationSystem.cs
- DbQueryCommandTree.cs
- HybridDictionary.cs
- RuleConditionDialog.cs
- FormsIdentity.cs
- RoleExceptions.cs
- XsltCompileContext.cs
- CompletionCallbackWrapper.cs
- Types.cs
- Point3DAnimation.cs
- AssemblyCache.cs
- RawStylusActions.cs
- PrintControllerWithStatusDialog.cs
- tibetanshape.cs
- ReflectionServiceProvider.cs
- UserNamePasswordValidator.cs
- StateMachineSubscriptionManager.cs
- IdentitySection.cs
- GeneralTransform3DGroup.cs
- Stack.cs
- CompModSwitches.cs
- RoleManagerModule.cs
- SpeechSeg.cs
- DataMisalignedException.cs
- ExecutedRoutedEventArgs.cs
- IisTraceListener.cs
- ContentPosition.cs
- NavigationExpr.cs
- DeferredElementTreeState.cs
- Int32CollectionConverter.cs