Monitor and video mode querying
I have some general comments as I'm not too familiar with the Windows API.


Comments that are just tautologies are not very useful
typedef struct is a pointless idiom in C++, as C++ doesn't have tag names
Why are you using unsigned short (2 bytes wide) when the DEVMODE structure uses DWORD (32-bits wide)? In general, you should use the Windows typedef to stay consistent and avoid unnecessary type issues
You have some redundant casts, like in tsGetMonitorCount(). Also C-style casts can sometimes silence warnings which is not what you want
Why does tsGetVideoMode return a bool? I would expect it to return a video mode
The "Fuck you Windows" comment is unprofessional and unlikely to impress any readers of your code. I (and future readers) will also have no idea what the purpose of the comment is, so it's useless altogether