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
- GridPatternIdentifiers.cs
- DataGridTable.cs
- QualificationDataAttribute.cs
- DynamicPropertyReader.cs
- AuthenticationService.cs
- JsonUriDataContract.cs
- HTTPAPI_VERSION.cs
- AssemblyNameUtility.cs
- LeafCellTreeNode.cs
- IIS7UserPrincipal.cs
- PromptStyle.cs
- ListBindingConverter.cs
- DataGrid.cs
- DbProviderFactory.cs
- NegotiationTokenProvider.cs
- ToolbarAUtomationPeer.cs
- CurrentChangingEventManager.cs
- ContractType.cs
- RtfControls.cs
- DragEventArgs.cs
- SecureStringHasher.cs
- ItemsPresenter.cs
- DiscoveryDocument.cs
- AnimatedTypeHelpers.cs
- LocatorManager.cs
- RelationshipNavigation.cs
- DataTableTypeConverter.cs
- AttributeParameterInfo.cs
- XPathItem.cs
- Point4DValueSerializer.cs
- _Events.cs
- HandlerWithFactory.cs
- MaterialGroup.cs
- PreDigestedSignedInfo.cs
- CachedRequestParams.cs
- SingleResultAttribute.cs
- ErasingStroke.cs
- DataTableReaderListener.cs
- RawUIStateInputReport.cs
- FilteredDataSetHelper.cs
- Semaphore.cs
- CriticalHandle.cs
- UnauthorizedWebPart.cs
- WebPartZoneCollection.cs
- OLEDB_Enum.cs
- CompilerErrorCollection.cs
- MimePart.cs
- SecurityTokenProvider.cs
- VarInfo.cs
- Highlights.cs
- DynamicFilter.cs
- ExceptionValidationRule.cs
- RegexMatch.cs
- XmlChoiceIdentifierAttribute.cs
- initElementDictionary.cs
- ResXBuildProvider.cs
- MachinePropertyVariants.cs
- ColorIndependentAnimationStorage.cs
- AnnotationHighlightLayer.cs
- HMACSHA384.cs
- SqlCachedBuffer.cs
- SecurityPolicySection.cs
- IfAction.cs
- SessionEndingEventArgs.cs
- CharacterMetricsDictionary.cs
- InheritanceRules.cs
- Models.cs
- StylusPointCollection.cs
- GPRECT.cs
- TextServicesProperty.cs
- ClientUriBehavior.cs
- IdentitySection.cs
- XPathDocumentBuilder.cs
- Win32KeyboardDevice.cs
- QueueProcessor.cs
- ListCardsInFileRequest.cs
- VideoDrawing.cs
- SimpleModelProvider.cs
- DocumentPageViewAutomationPeer.cs
- FtpRequestCacheValidator.cs
- SettingsSection.cs
- WrapperEqualityComparer.cs
- DurableEnlistmentState.cs
- CapiSafeHandles.cs
- SignatureResourcePool.cs
- CodeLinePragma.cs
- ConnectionProviderAttribute.cs
- EntitySqlQueryCacheEntry.cs
- HwndHost.cs
- CodeArgumentReferenceExpression.cs
- XmlNodeChangedEventArgs.cs
- TransportContext.cs
- CultureInfoConverter.cs
- UriSection.cs
- XamlParser.cs
- CompareValidator.cs
- TextDecorationCollection.cs
- DropSource.cs
- COAUTHINFO.cs
- HwndHost.cs