DirectX IDirectDraw2

IDirect2->SetDisplayMode has a parameter for the refresh rate. If I call this routine with anything besides 0 (which means don't use this parameter) I get the return value UNSUPPORTED. Is it possible, that not all drivers support this feature, and if so, which one does support it?
I tried EnumDisplayMode, it iterates correctly over the available modes, but the refresh rate returned was always 0.

Thanx,...
ahkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kw040597Commented:
It seems that you should only use the data returned by IDirectDraw2::EnumDisplayModes, have you tried that yet?
0
ahkAuthor Commented:
And I tried EnumDisplayMode, the problem is, it returns all available modes correct, but with refresh 0 for every mode.

0
ahkAuthor Commented:
Edited text of question
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

NickRepinCommented:
The IDirectDraw2::SetCooperativeLevel method must be used to set exclusive-level access before the mode can be changed.
0
NickRepinCommented:
Do you use dwFlags=DDEDM_REFRESHRATES in call to
EnumDisplayModes() ?

0
amartin030297Commented:
DirectDraw-2 does NOT officially support monitor-rate change in the mode settings... While the API supports the parameters to be passed, all DX-2 drivers ignore or return failure when values other than 0 are used.   DirectX-5 Beta-1 just shipped last week (write betareq@microsoft.com, subject: Directx to join).  
   Sorry for the bad news about dx-2...
             -- Aaron

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahkAuthor Commented:
Is there really no driver, which supports this mode?
The only thing, which is new with IDirect2 is the change of
refresh and if it doesn't work at all, what is it really for...

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.