Jeff, anything else I need to link with?
Hi Doyle,
Nothing extra that I know of. I'm still using an older pwall.bat that was created by bldbat years ago though. But I haven't had any issues across multiple machines. Which compiler are you using? I did not try this with LCC, so there may be some modification required to make it work. I also haven't tested this new approach with anything other than Win10 yet, so it may require some changes to work on other OSes.
I didn't recognize SM_SERVERR2 as part of my code, so I did a little digging and found that it's part of the OSVERSION function. But SM_SERVERR2, MONITORINFOEX, and MONITOR_DEFAULTTONEAREST all appear to be defined in winuser.h, and that should be one of the standard includes added by BCX during translation. I know it shows up in my translated C files anyway.
Please let me know your build environment and I'll see what I can do to help.
Thanks,
Jeff