Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / MULTI_QI.cs / 1 / MULTI_QI.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Configuration { using System.Collections; using System.Configuration; using System.Configuration.Internal; using System.Web; using System.Web.Util; using System.Security; using System.IO; using System.Web.Hosting; using System.Runtime.InteropServices; using System.Reflection; using System.Collections.Specialized; using System.Xml; using System.Security.Principal; using System.Threading; using System.Globalization; [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI : IDisposable { internal MULTI_QI(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct MULTI_QI_X64 : IDisposable { internal MULTI_QI_X64(IntPtr pid) { piid = pid; pItf = IntPtr.Zero; hr = 0; padding = 0; } internal IntPtr piid; // 'Guid' can't be marshaled to GUID* here? use IntPtr buffer trick instead internal IntPtr pItf; internal int hr; #pragma warning disable 0649 internal int padding; #pragma warning restore 0649 void IDisposable.Dispose() { if (pItf != IntPtr.Zero) { Marshal.Release(pItf); pItf = IntPtr.Zero; } if (piid != IntPtr.Zero) { Marshal.FreeCoTaskMem(piid); piid = IntPtr.Zero; } GC.SuppressFinalize(this); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSimpleContentExtension.cs
- CodeSpit.cs
- ReachPrintTicketSerializer.cs
- ButtonColumn.cs
- LayoutEngine.cs
- DriveNotFoundException.cs
- DataSetUtil.cs
- TableAutomationPeer.cs
- SecurityHeaderElementInferenceEngine.cs
- CustomAttributeFormatException.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- SectionInput.cs
- SpecularMaterial.cs
- sqlcontext.cs
- BypassElement.cs
- RawKeyboardInputReport.cs
- AddInDeploymentState.cs
- ErasingStroke.cs
- InvalidOperationException.cs
- EpmContentSerializer.cs
- TemplateControlCodeDomTreeGenerator.cs
- DateTimeParse.cs
- DataGridViewCellStyleEditor.cs
- SafeRegistryHandle.cs
- TcpProcessProtocolHandler.cs
- ISAPIApplicationHost.cs
- HtmlTextArea.cs
- PageSettings.cs
- DesignerSerializationVisibilityAttribute.cs
- ProfileService.cs
- ListMarkerLine.cs
- WebBrowser.cs
- DiagnosticTrace.cs
- StylusButtonEventArgs.cs
- TreeWalker.cs
- SqlNodeAnnotation.cs
- DataGridAutomationPeer.cs
- DataGridViewColumnHeaderCell.cs
- CLRBindingWorker.cs
- CoTaskMemSafeHandle.cs
- DefaultMergeHelper.cs
- NavigateEvent.cs
- HierarchicalDataSourceControl.cs
- FtpWebResponse.cs
- HttpModulesSection.cs
- RunInstallerAttribute.cs
- TailCallAnalyzer.cs
- DataSourceUtil.cs
- SystemPens.cs
- MsmqIntegrationSecurityElement.cs
- MulticastNotSupportedException.cs
- TriggerActionCollection.cs
- ImportContext.cs
- Border.cs
- ConfigXmlComment.cs
- PrePrepareMethodAttribute.cs
- DispatcherObject.cs
- DelayedRegex.cs
- CodeAttributeDeclaration.cs
- ForEachAction.cs
- VectorAnimationBase.cs
- StateRuntime.cs
- Int64Storage.cs
- RecordBuilder.cs
- WebPartActionVerb.cs
- FormattedTextSymbols.cs
- TransformDescriptor.cs
- WebPartZoneBase.cs
- ProviderIncompatibleException.cs
- XmlSchemaExporter.cs
- GridToolTip.cs
- UnauthorizedAccessException.cs
- DataGridViewCellStyleConverter.cs
- XmlSchemaObject.cs
- MustUnderstandBehavior.cs
- DescendantBaseQuery.cs
- SerializationEventsCache.cs
- Rectangle.cs
- XmlMembersMapping.cs
- _Rfc2616CacheValidators.cs
- RangeBaseAutomationPeer.cs
- MessageEncoderFactory.cs
- GroupBoxAutomationPeer.cs
- HGlobalSafeHandle.cs
- ProviderException.cs
- ConfigurationValidatorBase.cs
- GraphicsPathIterator.cs
- SimpleMailWebEventProvider.cs
- CompilationUtil.cs
- Point3DAnimationUsingKeyFrames.cs
- ValidatorUtils.cs
- wgx_sdk_version.cs
- IPGlobalProperties.cs
- Accessible.cs
- EllipseGeometry.cs
- QueryStringParameter.cs
- SecurityCredentialsManager.cs
- XamlBrushSerializer.cs
- DesignerContextDescriptor.cs
- ClientEventManager.cs