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
- RawStylusSystemGestureInputReport.cs
- BrowsableAttribute.cs
- SizeChangedInfo.cs
- log.cs
- SafeJobHandle.cs
- TypeConverters.cs
- MemberAccessException.cs
- StatusBarPanel.cs
- PolyQuadraticBezierSegment.cs
- BufferedWebEventProvider.cs
- UnauthorizedAccessException.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- Metafile.cs
- DBNull.cs
- ProcessHostMapPath.cs
- ResponseBodyWriter.cs
- WebEvents.cs
- SignerInfo.cs
- OdbcTransaction.cs
- TableCellCollection.cs
- HideDisabledControlAdapter.cs
- CharEntityEncoderFallback.cs
- FileSecurity.cs
- EmbossBitmapEffect.cs
- WindowsScrollBarBits.cs
- Expression.cs
- PipelineModuleStepContainer.cs
- DataViewManager.cs
- PathFigure.cs
- DeferredReference.cs
- DesignerForm.cs
- SoapHeaders.cs
- CallContext.cs
- UnsafeNativeMethods.cs
- TabletDeviceInfo.cs
- CurrentTimeZone.cs
- UpdateCommand.cs
- SqlClientWrapperSmiStreamChars.cs
- ToolStripCollectionEditor.cs
- PagesSection.cs
- DataTableTypeConverter.cs
- ToolTip.cs
- CompilationLock.cs
- ListBoxItemWrapperAutomationPeer.cs
- SrgsNameValueTag.cs
- StyleBamlTreeBuilder.cs
- DataRecordObjectView.cs
- InternalConfigRoot.cs
- EditorPartCollection.cs
- TokenizerHelper.cs
- IItemProperties.cs
- DecoderExceptionFallback.cs
- Shape.cs
- TabletCollection.cs
- IconBitmapDecoder.cs
- ItemCheckedEvent.cs
- DecoderFallbackWithFailureFlag.cs
- CodeMemberProperty.cs
- XmlSchemaImporter.cs
- pingexception.cs
- ValueTypeFixupInfo.cs
- LabelEditEvent.cs
- FontDriver.cs
- ThreadStartException.cs
- OptionUsage.cs
- ToolStripDropDownClosingEventArgs.cs
- SqlDataSourceView.cs
- StructuralObject.cs
- CompiledQueryCacheEntry.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TextProperties.cs
- StylusPlugin.cs
- UiaCoreTypesApi.cs
- DbProviderFactories.cs
- TypeDescriptor.cs
- VariableQuery.cs
- HtmlGenericControl.cs
- ArgumentValue.cs
- BitmapEffectOutputConnector.cs
- SQLInt16Storage.cs
- MsmqNonTransactedPoisonHandler.cs
- ImportDesigner.xaml.cs
- SqlConnectionString.cs
- EntityWrapper.cs
- XmlSerializerVersionAttribute.cs
- EditorPartChrome.cs
- StdValidatorsAndConverters.cs
- CodeMemberEvent.cs
- CustomAttributeSerializer.cs
- SubpageParaClient.cs
- DateTimeSerializationSection.cs
- EventManager.cs
- DrawingImage.cs
- TextSchema.cs
- HelpInfo.cs
- MasterPageCodeDomTreeGenerator.cs
- ReflectPropertyDescriptor.cs
- HtmlWindowCollection.cs
- ListInitExpression.cs
- SafeNativeMethodsOther.cs