The constants.windowLongIndices type is an enum. That is there so I can
ensure the appropriate values are always used. Since I had to replace the
GWL macros with new values, I decided to prevent passing 7 -- or whatever
the author of the caller felt like. I tried both ExactSpelling=true and
setting the entry point manually. I also tried forcing the Unicode and
ASCII versions. (According to the Win32 documentation, both functions have
UNICODE versions in NT/2000/XP. My tests are on a XP Pro SP1 system.
[System.Runtime.InteropServices.DllImport("user32", SetLastError=true)]
public static extern IntPtr SetWindowLongPtr(IntPtr hWnd,
constants.windowLongIndices index, IntPtr iNewValue);
[System.Runtime.InteropServices.DllImport("user32", SetLastError=true)]
public static extern IntPtr GetWindowLongPtr(IntPtr hWnd,
constants.windowLongIndices index);
----------
Will Pittenger
E-Mail: mailto:wi************@verizon.net
All mail filtered by Qurb (www.qurb.com)