Using a decls declared Api call, something with "SystemMetrics" maybe. Or the user32.dll functions. I would suggest to download the ol win32.hlp (or similar) file that is a reference for all dlls and their functions that are part of the win api. This is going to make it easy to declare functions in the *.decls files.