<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Custom Marshaling &#8211; Part 2</title>
	<atom:link href="http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/</link>
	<description></description>
	<lastBuildDate>Mon, 05 Apr 2010 15:19:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: James</title>
		<link>http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/comment-page-1/#comment-879</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 03 Feb 2010 14:37:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/#comment-879</guid>
		<description>Summary
MarshalCookie
    A String that is used with System.Runtime.InteropServices.UnmanagedType.CustomMarshaler to hold a cookie that is passed to the custom marshaler. The value of the cookie is defined by the custom marshaler implementation.</description>
		<content:encoded><![CDATA[<p>Summary<br />
MarshalCookie<br />
    A String that is used with System.Runtime.InteropServices.UnmanagedType.CustomMarshaler to hold a cookie that is passed to the custom marshaler. The value of the cookie is defined by the custom marshaler implementation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diogo Pinheiro</title>
		<link>http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/comment-page-1/#comment-751</link>
		<dc:creator>Diogo Pinheiro</dc:creator>
		<pubDate>Tue, 22 Sep 2009 12:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/#comment-751</guid>
		<description>Hello,

Can you help me with a CustomMarshaler?
I would be apreciated.

I need to create a CustomMarshaler for the type MPR_SERVER_HANDLE.

The function I&#039;m using:

public static extern HandledEventArgs MprAdminServerConnect
                (
                [In][MarshalAs(UnmanagedType.LPWStr)] string lpwsServerName,
                [Out][MarshalAs(UnmanagedType.CustomMarshaler)] string phMprServer
                );

The CustomMarshaler is for the parameter phMprServer, and the type I need is MPR_SERVER_HANDLE.
I&#039;m quite new to c#, thats why even with your examples i&#039;m not able do it. Can you help me with this ?

Many thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Can you help me with a CustomMarshaler?<br />
I would be apreciated.</p>
<p>I need to create a CustomMarshaler for the type MPR_SERVER_HANDLE.</p>
<p>The function I&#8217;m using:</p>
<p>public static extern HandledEventArgs MprAdminServerConnect<br />
                (<br />
                [In][MarshalAs(UnmanagedType.LPWStr)] string lpwsServerName,<br />
                [Out][MarshalAs(UnmanagedType.CustomMarshaler)] string phMprServer<br />
                );</p>
<p>The CustomMarshaler is for the parameter phMprServer, and the type I need is MPR_SERVER_HANDLE.<br />
I&#8217;m quite new to c#, thats why even with your examples i&#8217;m not able do it. Can you help me with this ?</p>
<p>Many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SJR</title>
		<link>http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/comment-page-1/#comment-699</link>
		<dc:creator>SJR</dc:creator>
		<pubDate>Tue, 09 Jun 2009 12:53:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/#comment-699</guid>
		<description>Hi Aaron

Thanks for the post.  I have a question and a comment.

Question:  How do you make this work for a returned struct?

Comment:  The link to part 1 of this post seems to be broken.  I would love to see it.</description>
		<content:encoded><![CDATA[<p>Hi Aaron</p>
<p>Thanks for the post.  I have a question and a comment.</p>
<p>Question:  How do you make this work for a returned struct?</p>
<p>Comment:  The link to part 1 of this post seems to be broken.  I would love to see it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sallac</title>
		<link>http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/comment-page-1/#comment-690</link>
		<dc:creator>Sallac</dc:creator>
		<pubDate>Fri, 29 May 2009 12:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.aaronlerch.com/blog/2006/07/06/custom-marshaling-part-2/#comment-690</guid>
		<description>Hi Aaaron,

thanks a lot for your blog. It is really hard to find information about the ICustionMarshaler and i really appreciate your help!

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Aaaron,</p>
<p>thanks a lot for your blog. It is really hard to find information about the ICustionMarshaler and i really appreciate your help!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
