How do I detect the user's screen resolution (Win 2K)--I will be using a standalone player and want to make one version for 800x600 and another for 1024x768 (not everything to scale up).

Does anyone know how to detect screen size?

And I have to do it all from one .exe (can't load outside URLs, though I could write a file to disk then read it.)