Win32Interop icon indicating copy to clipboard operation
Win32Interop copied to clipboard

EnumChildWindows Parameter #3 throws Exception

Open TheWufgeng opened this issue 7 years ago • 0 comments

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

TheWufgeng avatar Feb 19 '18 09:02 TheWufgeng