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
- OdbcConnectionString.cs
- CompilerHelpers.cs
- UnicodeEncoding.cs
- PublisherMembershipCondition.cs
- PageCatalogPart.cs
- Attribute.cs
- TextEditorTables.cs
- sqlser.cs
- XmlNamedNodeMap.cs
- PropertyGroupDescription.cs
- control.ime.cs
- JsonFormatReaderGenerator.cs
- TextEmbeddedObject.cs
- TypeSystem.cs
- CTreeGenerator.cs
- XmlValidatingReaderImpl.cs
- BoundConstants.cs
- ResolvedKeyFrameEntry.cs
- DbModificationClause.cs
- clipboard.cs
- DelegatingConfigHost.cs
- ContentPresenter.cs
- UnsafeNativeMethods.cs
- Table.cs
- DesignerDataTable.cs
- GeneralTransform2DTo3DTo2D.cs
- SystemPens.cs
- CriticalExceptions.cs
- WebPartEditorApplyVerb.cs
- ExpressionPrefixAttribute.cs
- NaturalLanguageHyphenator.cs
- EventLogger.cs
- MaskInputRejectedEventArgs.cs
- PasswordPropertyTextAttribute.cs
- StoreContentChangedEventArgs.cs
- TextRunCache.cs
- Win32Native.cs
- XmlLoader.cs
- SchemaImporter.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConnectionInterfaceCollection.cs
- BasicSecurityProfileVersion.cs
- ProfileSettingsCollection.cs
- DmlSqlGenerator.cs
- HttpModuleCollection.cs
- FileChangesMonitor.cs
- XmlValidatingReader.cs
- XmlTextAttribute.cs
- BrushMappingModeValidation.cs
- Light.cs
- GridErrorDlg.cs
- DefaultBinder.cs
- PropertyReference.cs
- DllNotFoundException.cs
- SemanticResultValue.cs
- ScaleTransform3D.cs
- StreamInfo.cs
- VisualStyleRenderer.cs
- HtmlTitle.cs
- CaretElement.cs
- InputGestureCollection.cs
- SR.Designer.cs
- DoubleCollectionValueSerializer.cs
- PageThemeParser.cs
- WebPartCatalogAddVerb.cs
- ElementNotEnabledException.cs
- CodeIterationStatement.cs
- StringConverter.cs
- DefaultAsyncDataDispatcher.cs
- BatchParser.cs
- SamlAuthorizationDecisionClaimResource.cs
- AnimationLayer.cs
- WebBrowserProgressChangedEventHandler.cs
- ScalarConstant.cs
- ResourceDictionary.cs
- MenuCommands.cs
- XsltArgumentList.cs
- ExpandedWrapper.cs
- FontDifferentiator.cs
- UriScheme.cs
- HitTestParameters.cs
- ValueChangedEventManager.cs
- NullableIntSumAggregationOperator.cs
- Simplifier.cs
- TextEditorCopyPaste.cs
- SoapReflectionImporter.cs
- SimpleMailWebEventProvider.cs
- InheritedPropertyDescriptor.cs
- AnimationTimeline.cs
- InfoCardBinaryReader.cs
- DataServiceException.cs
- GacUtil.cs
- PropertyMetadata.cs
- StringComparer.cs
- QueryContinueDragEvent.cs
- GenericIdentity.cs
- RepeatButtonAutomationPeer.cs
- HttpProtocolImporter.cs
- DataRowCollection.cs
- Missing.cs