About disabling DirectX

Hi all,
I am writting an application using SDL library, but after running the sample from libsdl.org with windowed mode, the sample program crashed, but it worked well if the flag was set to full screen mode. After I launched the DXDIAG.EXE in windows/system32 and disabled the DirectX manually, the windowed mode sample also worked well.
Is there any SDL function to disable DirectX or anyone knows what happens with my environment?---------------------------------
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!

Is there any SDL function to disable DirectX or anyone knows what
happens with my environment?

You can force the use of the windib driver setting the environment
variable SDL_VIDEODRIVER (almost sure, check the docs) to windib before
calling SDL_Init(). You’ll probably want to fix your DX problem anyway.

--Gabriel