Generating P/Invoke Signature
I have been using PInvoke.Net for long time. I discovered a tool, P/Invoke Interop Assistant. It is very cool. Not only it can gives you the managed wrapper around the native Windows API, it also gives you the ability to generate the unmanaged signature for your managed assemblies. The best thing, the source code is available.
Get P/Invoke Interop Assistant here.