Is it possible to code for sound drivers?

  driver, operating-system, windows

How do I can code a sound driver for window 7? Is it possible for driver or it’s comes with the computability of windows?
last Night I was installing driver to some one’s computer (Old version i.e. Pentium 4) I have tried a lot of different drivers but no one works, At last I found a compatible driver of 32 bits but the Installed window was 64 bits. I have to reinstall the window from 64 to 32 and then I tried the installation at that time so it works perfectly.
Why each hardboard has its own driver for sound. And Is there any way to code driver by my self?
Help me with the detail solution.

Source: Windows Questions