finding monitor refresh rate

This is a discussion on finding monitor refresh rate within the Windows Programming forums, part of the Platform Specific Boards category; I want to creat a program to detect the monitor refrest rate. First of is there any simple os independent ...

finding monitor refresh rate

I want to creat a program to detect the monitor refrest rate. First of is there any simple os independent way of doing this? If not then I think I would have to

1. Determine OS

2. Based on os determine where to look to find what monitor driver is being used.

3. Find the diver and view what the refresh rate is.

now what files should I look at to find these three things. I am using windows 98se so that would be a good OS to start with. Also I would prefer like a C based solution which doesn't involve to many libs because this is for another projects and I don't want to mess things up.