Code:
/ FX-1434 / FX-1434 / 1.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
- PointF.cs
- RemoteWebConfigurationHostServer.cs
- SecurityAlgorithmSuiteConverter.cs
- DataGridViewMethods.cs
- ClientTargetSection.cs
- ToolStripDropDownClosingEventArgs.cs
- SqlFunctionAttribute.cs
- ChineseLunisolarCalendar.cs
- Pair.cs
- TextRangeSerialization.cs
- Win32Native.cs
- XsltException.cs
- MenuRendererStandards.cs
- JsonDeserializer.cs
- TreeNodeCollection.cs
- SHA1.cs
- BrowserCapabilitiesCodeGenerator.cs
- SelfIssuedAuthAsymmetricKey.cs
- _SslStream.cs
- AppDomainUnloadedException.cs
- SerialStream.cs
- PostBackOptions.cs
- DbProviderFactoriesConfigurationHandler.cs
- BulletDecorator.cs
- MissingManifestResourceException.cs
- SafeCloseHandleCritical.cs
- SchemaCollectionCompiler.cs
- ScriptControlDescriptor.cs
- HttpInputStream.cs
- NameValueFileSectionHandler.cs
- WindowsScrollBarBits.cs
- GridViewRowCollection.cs
- BitHelper.cs
- ServicesUtilities.cs
- DocumentSequenceHighlightLayer.cs
- KnownBoxes.cs
- PaperSource.cs
- CSharpCodeProvider.cs
- selecteditemcollection.cs
- WindowsGraphics2.cs
- Executor.cs
- StrongNameKeyPair.cs
- InstanceDataCollectionCollection.cs
- LocalizeDesigner.cs
- InputLanguage.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- GridView.cs
- ListViewItemMouseHoverEvent.cs
- WindowsListViewSubItem.cs
- DataTableNameHandler.cs
- StronglyTypedResourceBuilder.cs
- HtmlInputControl.cs
- UnorderedHashRepartitionStream.cs
- WebPartAuthorizationEventArgs.cs
- TranslateTransform3D.cs
- FocusWithinProperty.cs
- Pair.cs
- TransformProviderWrapper.cs
- TreeViewItemAutomationPeer.cs
- ProjectionPlan.cs
- CheckedListBox.cs
- MembershipUser.cs
- VideoDrawing.cs
- NameHandler.cs
- RootBrowserWindow.cs
- ListenerElementsCollection.cs
- XmlElementCollection.cs
- BaseAsyncResult.cs
- RoleManagerModule.cs
- SymbolPair.cs
- TextCharacters.cs
- HttpProfileGroupBase.cs
- SpanIndex.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- MembershipSection.cs
- TreeNodeStyle.cs
- WebConfigurationHost.cs
- ProfileProvider.cs
- CancelEventArgs.cs
- DataGridViewLinkColumn.cs
- XsdDuration.cs
- DnsPermission.cs
- FileUtil.cs
- ColumnResizeUndoUnit.cs
- ResourceDescriptionAttribute.cs
- TypedReference.cs
- RightsManagementPermission.cs
- XmlHierarchyData.cs
- InstanceLockQueryResult.cs
- ConnectionPoolManager.cs
- ObjectToIdCache.cs
- WorkflowDefinitionDispenser.cs
- TaskFileService.cs
- ConstructorExpr.cs
- FontDriver.cs
- RecommendedAsConfigurableAttribute.cs
- Binding.cs
- RuntimeHelpers.cs
- EntityUtil.cs
- RecordBuilder.cs