IMO the only way would be to use DDC to query the monitor directly. But unfortunatelly that is not supported by Win API,Wrong idea. You have to query the graphics card driver, not the monitor, for the max. resolution.
Simply because max. resolution is the highest resolution supported by both monitor and graphics card.
btw. It works again!