Skip to content

EnumChildWindows Parameter #3 throws Exception #8

@TheWufgeng

Description

@TheWufgeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions