How can I get values of min and max values for x and y coordinates?

I can't use DirectX so have to be API. I found a couple of functions, joyGetPos, joyGetPosEx, joyGetDevCaps or something like that. The Caps thingy seems to be what I need but all I can get with it is the driver name (which is Microsoft's default with Win98SE).

Thanks for advance,