Is there a one-stop shop for determining which .Net types/attributes to use, given a native type?
Example would look something like this:
Native Type | .Net Type
---------------------------------------
int | Integer
int* | IntPtr (or is it ref int?)
LPCSTR | [MarshalAs(UnmanagedType.LPStr)]String
...
Guidelines for custom structures:
...
Also, as a related aside, what's the most reliable place for looking up marshalling declarations for Win32 functions?