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
- WasEndpointConfigContainer.cs
- StylusButtonEventArgs.cs
- MetadataItemSerializer.cs
- BaseParaClient.cs
- DBSchemaTable.cs
- ButtonBase.cs
- AccessibilityHelperForXpWin2k3.cs
- PKCS1MaskGenerationMethod.cs
- Matrix.cs
- Serializer.cs
- ComNativeDescriptor.cs
- CustomErrorsSectionWrapper.cs
- LassoHelper.cs
- EventWaitHandle.cs
- DataTableClearEvent.cs
- RelationshipManager.cs
- TextCompositionManager.cs
- Transactions.cs
- StringArrayConverter.cs
- DecoderReplacementFallback.cs
- ObjectFullSpanRewriter.cs
- CommentEmitter.cs
- Application.cs
- DEREncoding.cs
- WindowHideOrCloseTracker.cs
- VBCodeProvider.cs
- AutoGeneratedFieldProperties.cs
- DirtyTextRange.cs
- basemetadatamappingvisitor.cs
- RelOps.cs
- XmlDictionaryReader.cs
- FastPropertyAccessor.cs
- MediaElementAutomationPeer.cs
- FixedTextContainer.cs
- MD5.cs
- PenThread.cs
- codemethodreferenceexpression.cs
- SafeRightsManagementEnvironmentHandle.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- TraceUtility.cs
- SiteMapDesignerDataSourceView.cs
- DefaultBindingPropertyAttribute.cs
- XXXOnTypeBuilderInstantiation.cs
- WindowsPrincipal.cs
- RequestCachingSection.cs
- BooleanExpr.cs
- InstancePersistenceCommand.cs
- ButtonPopupAdapter.cs
- TextBoxBaseDesigner.cs
- PersianCalendar.cs
- UncommonField.cs
- SoapEnvelopeProcessingElement.cs
- InvariantComparer.cs
- UserValidatedEventArgs.cs
- SynchronousReceiveElement.cs
- AutomationIdentifier.cs
- TileBrush.cs
- DBNull.cs
- RecordBuilder.cs
- TerminatorSinks.cs
- TraceRecords.cs
- XmlDigitalSignatureProcessor.cs
- SettingsAttributeDictionary.cs
- MsmqInputChannelListenerBase.cs
- OutputScopeManager.cs
- OptimizedTemplateContentHelper.cs
- DiagnosticsConfiguration.cs
- TimelineCollection.cs
- SharedStatics.cs
- Helper.cs
- ConnectionStringsSection.cs
- XmlAutoDetectWriter.cs
- ContextMenuStrip.cs
- OperandQuery.cs
- TagPrefixAttribute.cs
- QueryCacheEntry.cs
- JsonEncodingStreamWrapper.cs
- ReferenceService.cs
- QueueProcessor.cs
- UnauthorizedAccessException.cs
- BitmapDownload.cs
- StorageModelBuildProvider.cs
- Publisher.cs
- ScriptMethodAttribute.cs
- WebPartZoneDesigner.cs
- DataControlCommands.cs
- ButtonColumn.cs
- DuplicateWaitObjectException.cs
- SplineKeyFrames.cs
- DocumentViewer.cs
- DataGridItemEventArgs.cs
- invalidudtexception.cs
- CharacterString.cs
- OdbcCommandBuilder.cs
- SqlDataSourceStatusEventArgs.cs
- WeakEventManager.cs
- EpmCustomContentSerializer.cs
- PlainXmlWriter.cs
- TraceSection.cs
- FileDialog.cs