Skip to content

GETMONITORINFOEX struct not generated #188

Answered by AArnott
JesseAtExitNorth asked this question in Q&A
Discussion options

You must be logged in to vote

There is no GETMONITORINFO struct, nor GETMONITORINFOEX. I think you meant MONITORINFOEX (no GET in front).
Structs aren't exported from User32 or any other module. They are simply in header files. We autogenerate structs when you ask for a method based on the method signature. You get MONITORINFO because that is used in the method signature, but MONITORINFOEX is not.

To get MONITORINFOEX, you will need to ask for it explicitly in the NativeMethods.txt file.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jnm2
Comment options

@AArnott
Comment options

@JesseAtExitNorth
Comment options

@dotMorten
Comment options

@AArnott
Comment options

Answer selected by AArnott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants