J
Jeff Gaines
Is anybody aware of a source of definitive prototypes to use in NET?
I have spent 2 days working on a custom header control because the
prototypes I had for HDITEM, NMHDR and NMHEADER were wrong.
I went through the header files to try and get it right as well as
Googling, PInvoke.net and the source for Systems.Windows.Forms. They are
all different! Actually S.W.F. has something called HDITEM2 but not HDITEM
and uses int where the C prototype seems to call for Uint32. It's pretty
important as I am using Win7 x64 and, although the app didn't crash it
didn't work properly either!
I'm sure that once upon a time I found some MSFT code that had all these
prototypes, although it made heavy use of pointers and unsafe code, but I
can't find it now.
Any suggestions would be appreciated...
I have spent 2 days working on a custom header control because the
prototypes I had for HDITEM, NMHDR and NMHEADER were wrong.
I went through the header files to try and get it right as well as
Googling, PInvoke.net and the source for Systems.Windows.Forms. They are
all different! Actually S.W.F. has something called HDITEM2 but not HDITEM
and uses int where the C prototype seems to call for Uint32. It's pretty
important as I am using Win7 x64 and, although the app didn't crash it
didn't work properly either!
I'm sure that once upon a time I found some MSFT code that had all these
prototypes, although it made heavy use of pointers and unsafe code, but I
can't find it now.
Any suggestions would be appreciated...