Can anyone tell me or point to a web site which would explain how to write device drivers for Windows.

I need to write my own driver for a joystick-port connected input device. It would basically run like a normal joystick but with a few additions.

Ideally, I'd prefer to write them in Delphi or Visual Basic 5 but if need be I'll learn another language to do it.

Any suggestions?