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
- _AutoWebProxyScriptHelper.cs
- RSAOAEPKeyExchangeFormatter.cs
- KeyPullup.cs
- HtmlInputImage.cs
- ProcessModelInfo.cs
- httpserverutility.cs
- RoutedEventHandlerInfo.cs
- WinInetCache.cs
- Control.cs
- TextHidden.cs
- RuntimeEnvironment.cs
- SupportedAddressingMode.cs
- DescriptionCreator.cs
- baseaxisquery.cs
- PassportAuthentication.cs
- MexTcpBindingElement.cs
- VSDExceptions.cs
- RuntimeCompatibilityAttribute.cs
- ActivitySurrogateSelector.cs
- OperatingSystem.cs
- WpfWebRequestHelper.cs
- StackOverflowException.cs
- WorkflowClientDeliverMessageWrapper.cs
- ScrollViewer.cs
- DispatchRuntime.cs
- ServicesUtilities.cs
- EmptyEnumerator.cs
- PageRanges.cs
- MonitoringDescriptionAttribute.cs
- PerformanceCounter.cs
- StickyNoteHelper.cs
- OptimisticConcurrencyException.cs
- DataSourceView.cs
- XPathPatternBuilder.cs
- StorageComplexPropertyMapping.cs
- EncoderParameter.cs
- TableRow.cs
- OutputScope.cs
- TextEvent.cs
- WindowsMenu.cs
- AsyncSerializedWorker.cs
- SystemIcmpV4Statistics.cs
- EntitySetDataBindingList.cs
- Rect3DConverter.cs
- DBCommandBuilder.cs
- XmlEntityReference.cs
- MenuDesigner.cs
- EncryptedKeyHashIdentifierClause.cs
- NamedObject.cs
- SynchronizedInputAdaptor.cs
- MergeEnumerator.cs
- Typeface.cs
- ErrorEventArgs.cs
- UITypeEditor.cs
- DecimalAnimation.cs
- SqlConnectionFactory.cs
- Crc32.cs
- MediaSystem.cs
- Command.cs
- UpdateExpressionVisitor.cs
- DoubleAnimationBase.cs
- ColumnCollection.cs
- GridViewEditEventArgs.cs
- CodeTypeConstructor.cs
- ErrorWebPart.cs
- ScrollChrome.cs
- PropertyItem.cs
- SocketStream.cs
- SqlUtils.cs
- DllNotFoundException.cs
- Vector3DCollection.cs
- TextTreeRootTextBlock.cs
- DataGridViewDataConnection.cs
- IFlowDocumentViewer.cs
- TaskHelper.cs
- Module.cs
- isolationinterop.cs
- BitArray.cs
- DiscoveryMessageSequence.cs
- OleDbInfoMessageEvent.cs
- NamedPipeAppDomainProtocolHandler.cs
- SettingsBindableAttribute.cs
- StringReader.cs
- FilterableAttribute.cs
- IxmlLineInfo.cs
- ImageAnimator.cs
- AnnotationComponentChooser.cs
- PiiTraceSource.cs
- Serializer.cs
- BuildDependencySet.cs
- KnownTypesHelper.cs
- BitmapEncoder.cs
- ServiceChannelFactory.cs
- ViewKeyConstraint.cs
- WsatTransactionHeader.cs
- SpeakInfo.cs
- COM2Enum.cs
- dsa.cs
- SourceFileBuildProvider.cs
- SqlEnums.cs