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
- HttpValueCollection.cs
- DataServiceConfiguration.cs
- BasicCellRelation.cs
- CompilerTypeWithParams.cs
- BaseEntityWrapper.cs
- NullableIntAverageAggregationOperator.cs
- SHA1Cng.cs
- MsmqChannelFactory.cs
- DateTimeOffsetConverter.cs
- UnsafeNativeMethodsPenimc.cs
- ObjectManager.cs
- CapabilitiesPattern.cs
- MaterialGroup.cs
- BindableTemplateBuilder.cs
- Types.cs
- CustomCredentialPolicy.cs
- ResourceType.cs
- PropertyGridEditorPart.cs
- AnonymousIdentificationModule.cs
- ItemsPresenter.cs
- ReferenceConverter.cs
- ItemsPresenter.cs
- TraceProvider.cs
- SendReply.cs
- Persist.cs
- HtmlInputHidden.cs
- IndependentlyAnimatedPropertyMetadata.cs
- FileVersionInfo.cs
- LiteralSubsegment.cs
- VirtualPath.cs
- SkewTransform.cs
- GPRECTF.cs
- UTF7Encoding.cs
- Graph.cs
- CryptoProvider.cs
- FixedPageProcessor.cs
- RelationshipSet.cs
- KerberosRequestorSecurityToken.cs
- ReflectionPermission.cs
- CodeValidator.cs
- RtfToken.cs
- DuplexChannelFactory.cs
- ElementHost.cs
- Interop.cs
- RSACryptoServiceProvider.cs
- cookieexception.cs
- PipelineComponent.cs
- HttpCapabilitiesEvaluator.cs
- XmlChoiceIdentifierAttribute.cs
- ButtonField.cs
- WebPartCloseVerb.cs
- SmtpReplyReaderFactory.cs
- RectangleConverter.cs
- InputScopeAttribute.cs
- HttpStreams.cs
- SQLInt64.cs
- SectionRecord.cs
- ToolStripCodeDomSerializer.cs
- WsiProfilesElementCollection.cs
- XomlCompiler.cs
- CaseExpr.cs
- processwaithandle.cs
- BulletChrome.cs
- VoiceChangeEventArgs.cs
- cookie.cs
- FilteredDataSetHelper.cs
- ErrorStyle.cs
- Enlistment.cs
- TimelineGroup.cs
- InProcStateClientManager.cs
- SqlBuilder.cs
- EdmEntityTypeAttribute.cs
- MetafileHeader.cs
- AdapterDictionary.cs
- DataErrorValidationRule.cs
- XamlSerializerUtil.cs
- FieldNameLookup.cs
- RootProfilePropertySettingsCollection.cs
- AuthenticationServiceManager.cs
- XamlReader.cs
- DataGridTable.cs
- FlowDocumentReaderAutomationPeer.cs
- WorkflowStateRollbackService.cs
- RelationshipDetailsRow.cs
- LocalizationCodeDomSerializer.cs
- sitestring.cs
- GB18030Encoding.cs
- DBBindings.cs
- ProxyHelper.cs
- Header.cs
- SqlServer2KCompatibilityAnnotation.cs
- XmlSchemaChoice.cs
- SqlExpander.cs
- DbParameterHelper.cs
- DependencyPropertyKey.cs
- PrintDialog.cs
- DependencyPropertyKind.cs
- DetailsViewInsertEventArgs.cs
- DataGridTableCollection.cs
- PrinterSettings.cs