Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / RpcResponse.cs / 1 / RpcResponse.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using System; using IS = System.Runtime.InteropServices; internal struct RpcResponse { public int Length; public IntPtr Data; public IntPtr Marshal() { return Create( Data, Length ); } public static IntPtr Create( IntPtr data, int length ) { RpcResponse response = new RpcResponse(); IntPtr nativeType = IS.Marshal.AllocHGlobal( IS.Marshal.SizeOf( typeof( RpcResponse ) ) ); try { response.Length = length; response.Data = data; IS.Marshal.StructureToPtr( response, nativeType, false ); return nativeType; } catch { if( null != nativeType ) { IS.Marshal.FreeHGlobal( nativeType ); } throw; } } } } // 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
- VisualStyleElement.cs
- RepeaterItemEventArgs.cs
- WebPartEditorApplyVerb.cs
- base64Transforms.cs
- ProgressBar.cs
- ActivityBuilderXamlWriter.cs
- UnsafeNativeMethods.cs
- DbConnectionInternal.cs
- BasicCellRelation.cs
- EmissiveMaterial.cs
- GeneralTransform.cs
- Menu.cs
- RectAnimationBase.cs
- ApplicationGesture.cs
- BuildProviderAppliesToAttribute.cs
- CodeDefaultValueExpression.cs
- MatrixKeyFrameCollection.cs
- mil_commands.cs
- WindowsListViewItemCheckBox.cs
- FormsAuthenticationUserCollection.cs
- TokenCreationException.cs
- SmiEventSink_Default.cs
- Renderer.cs
- TextEditorMouse.cs
- PersonalizationAdministration.cs
- Keywords.cs
- StrokeNodeOperations2.cs
- ReadOnlyDictionary.cs
- ActiveDesignSurfaceEvent.cs
- FormViewUpdateEventArgs.cs
- MeasurementDCInfo.cs
- CroppedBitmap.cs
- TimeManager.cs
- Menu.cs
- WindowsFormsHostPropertyMap.cs
- HeaderedItemsControl.cs
- KeyInstance.cs
- connectionpool.cs
- SmuggledIUnknown.cs
- CachingHintValidation.cs
- BaseResourcesBuildProvider.cs
- DeviceContexts.cs
- XPathItem.cs
- XamlInt32CollectionSerializer.cs
- SuspendDesigner.cs
- ResourceAssociationSet.cs
- SafeFreeMibTable.cs
- EntityDataSourceDesigner.cs
- Baml2006KnownTypes.cs
- WebEvents.cs
- TraceListener.cs
- UxThemeWrapper.cs
- PenLineJoinValidation.cs
- ListenerConnectionDemuxer.cs
- CollectionChangedEventManager.cs
- SqlDelegatedTransaction.cs
- ServiceProviders.cs
- BitmapEffectState.cs
- CompressedStack.cs
- PerfCounters.cs
- WindowsFormsHelpers.cs
- SafeFileMappingHandle.cs
- SizeAnimationBase.cs
- PlaceHolder.cs
- NativeMethods.cs
- ResourceProperty.cs
- xsdvalidator.cs
- InputScopeConverter.cs
- AssignDesigner.xaml.cs
- Single.cs
- MimeParameter.cs
- SoapAttributes.cs
- DataKey.cs
- TimeoutValidationAttribute.cs
- EventSetter.cs
- ButtonRenderer.cs
- RecipientInfo.cs
- EraserBehavior.cs
- BuilderElements.cs
- ControlPaint.cs
- XmlDataSourceNodeDescriptor.cs
- DataService.cs
- AnimatedTypeHelpers.cs
- SmiMetaDataProperty.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DeflateStream.cs
- baseaxisquery.cs
- UpdatePanel.cs
- InternalResources.cs
- MenuItemStyleCollectionEditor.cs
- MultiByteCodec.cs
- XamlStream.cs
- MexHttpsBindingElement.cs
- ResourceExpressionBuilder.cs
- TrustLevelCollection.cs
- ScrollItemPattern.cs
- _SSPIWrapper.cs
- ValidationEventArgs.cs
- TransformationRules.cs
- DesignerEventService.cs