I have been doing a lot of PInvoke calls using signatures published on
www.pinvoke.net. I notice that where out parameters are involved, sometimes
the signature uses 'out' and sometimes '[Out]'. I have discovered that using
the wrong one causes nasty things to happen, but I can't work out what the
difference is, and when one should be used and when the other (luckily I have
not yet had to work out my own signatures for PInvoke calls, but I may have
to one day)
--
Dave