James,
How you doing? I haven't spoken to you since that schizophrenic
incident last year, anyway, in answer to your problem I found this link
....
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/default.aspx?fig=true#fig1 which should give us a fighting chance at constructing our own
dllimport declarations (because, lets face it, most of the prewritten
ones we have found have been rubbish).
And also the article it came from (incase you cant be bothered with
backspace ;o).
http://msdn.microsoft.com/msdnmag/issues/03/07/NET/ Keep in touch,
James.
[quoted text, click to view] pigeonrandle wrote:
> Hi,
> Is there a list detailing equivalent types in c# for imported dll
> functions?
>
> ie HWND = IntPtr
> DWORD = Int32
> etc.
>
> I have been looking at pinvoke.net and there is no consistency between
> the various types in the declarations (some define HWND as int, some as
> IntPtr) - all very confusing ;(- if you get my meaning?!
>
> Cheers,
> James Randle.