Mike,
As Armin suggests, there are a number of methods on
System.Runtime.InteropServices.Marshal class that allows you to dereference
an IntPtr.
Marshal.Read* & Marshal.Write* may be "better" to use then Marshal.Copy. I
find Marshal.PtrToStructure & Marshal.StructureToPtr to be extremely useful
in some interop cases.
Of course Marshal.PtrToString* & Marshal.StringTo* are invaluable when
dealing with strings.
I've even used Marshal.GetObjectForIUnknown once or twice...
Hope this helps
Jay
| >> Dim ptr As IntPtr
| >
| > hehe.

)
|
| You guys are *evil*. Let me see some VB.NET code that dereferences ptr
and
| I'll be impressed.
|
| --
| Peace & happy computing,
|
| Mike Labosh, MCSD
|
| "Mr. McKittrick, after very careful consideration, I have
| come to the conclusion that this new system SUCKS."
| -- General Barringer, "War Games"
|
|