PInvoke, InterOp and Portability

I want to thank Josh Williams from the CLR team, for pointing out a couple bugs in my sample code. The bugs were related to some missing IntPtr’s for portability. For those interested in more information on Josh’s posts on 64-bit and PInvoke, check out Josh’s blog.

 

I have updated the sample code in my previous post "32/64bit sample code".

Josh also reminded me of a great Interop/PInvoke community Wiki I have been meaning to check out. The site was set up by Adam Nathan, one of (if not the) the foremost experts on InterOp. Check out Adam’s blog for more on this subject.