Win32Interop
Win32Interop copied to clipboard
EnumChildWindows Parameter #3 throws Exception
In User32 the Mehtod EnumChildWindows(InPtr, EnumWindowsProc, int) is wrong. The third parameter should be IntPtr not int because of this I always get a System.Runtime.InteropServices.MarshalDirectiveException. This Parameter have to be IntPtr because it is forwarded into the EnumWindowsProc(IntPtr,InPtr) wich only provides IntPtr. Please Inform me if I have done anything wrong but as far as I can see this is the Problem. In my case I want to forward the parent handle IntPtr into the EnumWindowsProc.
regards Wolfgang