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
- RegisteredExpandoAttribute.cs
- RuntimeCompatibilityAttribute.cs
- TaiwanLunisolarCalendar.cs
- compensatingcollection.cs
- CodeEventReferenceExpression.cs
- SqlConnectionHelper.cs
- FrameworkContentElement.cs
- EmbeddedMailObjectsCollection.cs
- ProviderConnectionPointCollection.cs
- FontFamilyValueSerializer.cs
- TableItemStyle.cs
- AddInAttribute.cs
- TypedRowHandler.cs
- DbBuffer.cs
- MultipleViewPattern.cs
- FirstQueryOperator.cs
- CompilerScopeManager.cs
- Int32Converter.cs
- BigInt.cs
- ReachIDocumentPaginatorSerializer.cs
- XamlDesignerSerializationManager.cs
- PerformanceCounterCategory.cs
- MarkupWriter.cs
- DocumentGrid.cs
- Polyline.cs
- MeasureData.cs
- TextDecorationLocationValidation.cs
- QilList.cs
- ReflectPropertyDescriptor.cs
- ListenerElementsCollection.cs
- LabelLiteral.cs
- ColumnResizeAdorner.cs
- ProfileParameter.cs
- SqlNamer.cs
- SingleKeyFrameCollection.cs
- LinqDataSourceContextData.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- InternalsVisibleToAttribute.cs
- VectorConverter.cs
- DesignerRegionCollection.cs
- OrderByLifter.cs
- CFStream.cs
- Menu.cs
- ListViewInsertionMark.cs
- SoapObjectWriter.cs
- PageRequestManager.cs
- SyntaxCheck.cs
- InstancePersistenceCommandException.cs
- CurrentChangingEventArgs.cs
- unitconverter.cs
- LabelTarget.cs
- SqlDependencyListener.cs
- ComponentEditorForm.cs
- SerialErrors.cs
- _DisconnectOverlappedAsyncResult.cs
- WebRequestModuleElement.cs
- CommandDevice.cs
- TypeDependencyAttribute.cs
- OdbcPermission.cs
- GiveFeedbackEventArgs.cs
- XmlNamespaceMappingCollection.cs
- Mutex.cs
- SessionStateSection.cs
- DbConnectionStringCommon.cs
- MatrixCamera.cs
- DynamicUpdateCommand.cs
- X509Certificate2.cs
- GuidTagList.cs
- QuaternionValueSerializer.cs
- InstanceLockLostException.cs
- ExpressionBuilder.cs
- IntSecurity.cs
- Activator.cs
- NotImplementedException.cs
- Fx.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StringWriter.cs
- OrderedParallelQuery.cs
- DataGridViewRowsAddedEventArgs.cs
- XmlSchemaValidator.cs
- MimeTypeMapper.cs
- WindowsRichEditRange.cs
- BaseDataBoundControl.cs
- BridgeDataRecord.cs
- regiisutil.cs
- NamespaceListProperty.cs
- ColumnWidthChangingEvent.cs
- NetTcpSecurity.cs
- DataGridViewRowPrePaintEventArgs.cs
- CacheHelper.cs
- ManipulationDevice.cs
- ThicknessConverter.cs
- XmlNodeComparer.cs
- DiscoveryRequestHandler.cs
- QEncodedStream.cs
- DbParameterCollection.cs
- XmlReader.cs
- TextTreeUndoUnit.cs
- DateTimeParse.cs
- PasswordDeriveBytes.cs