Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / Int32CAMarshaler.cs / 1 / Int32CAMarshaler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.Runtime.InteropServices; using System.ComponentModel; using System.Diagnostics; using System; ////// /// This class performs marshaling on a CADWORD struct given /// from native code. /// internal class Int32CAMarshaler : BaseCAMarshaler { public Int32CAMarshaler(NativeMethods.CA_STRUCT caStruct) : base(caStruct) { } ////// /// Returns the type of item this marshaler will /// return in the items array. In this case, the type is int. /// public override Type ItemType { get { return typeof(int); } } protected override Array CreateArray() { return new int[Count]; } ////// /// Override this member to perform marshalling of a single item /// given it's native address. /// protected override object GetItemFromAddress(IntPtr addr) { return addr.ToInt32(); } } } // 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
- MenuCommand.cs
- TemplateApplicationHelper.cs
- XmlSchemaAttribute.cs
- FamilyCollection.cs
- TextFragmentEngine.cs
- GridViewHeaderRowPresenter.cs
- CodeDirectiveCollection.cs
- SocketPermission.cs
- ContainerControl.cs
- _SslStream.cs
- FusionWrap.cs
- UpDownEvent.cs
- DataGridViewToolTip.cs
- WebChannelFactory.cs
- WebResourceUtil.cs
- ChtmlTextBoxAdapter.cs
- TextEditorSelection.cs
- XmlSchemaValidationException.cs
- XslTransform.cs
- ComponentEditorPage.cs
- IItemContainerGenerator.cs
- NamespaceEmitter.cs
- ConsoleCancelEventArgs.cs
- LicenseManager.cs
- Pts.cs
- SqlWebEventProvider.cs
- ApplicationSecurityInfo.cs
- WebPartDisplayModeEventArgs.cs
- XPathDocumentBuilder.cs
- SoapDocumentServiceAttribute.cs
- WebBrowser.cs
- ControlBuilderAttribute.cs
- XmlSchemaNotation.cs
- MasterPageParser.cs
- MatrixTransform.cs
- EntityRecordInfo.cs
- ScriptingWebServicesSectionGroup.cs
- Math.cs
- AudioSignalProblemOccurredEventArgs.cs
- XmlUtf8RawTextWriter.cs
- MouseOverProperty.cs
- AutomationElementCollection.cs
- X509CertificateInitiatorServiceCredential.cs
- HtmlGenericControl.cs
- PositiveTimeSpanValidator.cs
- BamlResourceDeserializer.cs
- StringSorter.cs
- _HeaderInfoTable.cs
- DoubleAnimationBase.cs
- ToolStripMenuItemCodeDomSerializer.cs
- XmlSchemaComplexContentRestriction.cs
- NumericPagerField.cs
- AsyncPostBackTrigger.cs
- FormatVersion.cs
- AsnEncodedData.cs
- SecurityUtils.cs
- Codec.cs
- RuntimeConfig.cs
- ZipIOExtraFieldZip64Element.cs
- FunctionDescription.cs
- TemplatedControlDesigner.cs
- Semaphore.cs
- PointHitTestParameters.cs
- WindowsGraphics.cs
- SafeFileHandle.cs
- DataGridPagerStyle.cs
- XmlUtilWriter.cs
- ProcessHostMapPath.cs
- XmlSiteMapProvider.cs
- EUCJPEncoding.cs
- IndentTextWriter.cs
- PackWebRequestFactory.cs
- Evidence.cs
- httpserverutility.cs
- PerformanceCounterManager.cs
- DeferredElementTreeState.cs
- SystemFonts.cs
- CallContext.cs
- TemplatedWizardStep.cs
- WCFBuildProvider.cs
- SharedConnectionListener.cs
- TemplatedWizardStep.cs
- ValidatingReaderNodeData.cs
- EnumerationRangeValidationUtil.cs
- Encoder.cs
- BehaviorEditorPart.cs
- SplineKeyFrames.cs
- CasesDictionary.cs
- SoapCodeExporter.cs
- MissingFieldException.cs
- XmlSchemaAll.cs
- HwndStylusInputProvider.cs
- TablePattern.cs
- CustomValidator.cs
- EndpointFilterProvider.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- MaterialCollection.cs
- QilInvokeLateBound.cs
- AnnotationStore.cs
- MenuItemCollection.cs