PC not seeing Cd and DVD drives

Have Sony dvd RW AWG170A ATA AND LITE SOHD 16P9S. In Device Manager both say Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39) Tried solution and says all is fine.

Any ideas, Both happened within last 3 weeks but didn't notice until yesterday and no restore point beyond 17/11

I posted on a thread a couple of weeks ago, where this had happened to someone else, and to me at the same time. Mine was caused by a Windows Update, and was resolved via registry hacks. I'll pop off & look the thread up... there may have been a "generic" solution... back in a mo...

No CD/DVD or CD-ROM access is missing error Code 19, Code 31, Code 32, Code 39, or Code 41
Try this if the optical drives are not appearing in My Computer or Device Manager.
(This is sometimes caused by the removal of Roxio or other writing software.)

http://www.dougknox.com/xp/utils/XP_CD-DVD-Fix.zip
Download XP_CD-DVD-Fix.zip and save this file to your hard drive. Navigate to where you saved it and double click the file to extract the contents. Locate the EXE file you extracted and double click it. A confirmation dialog will appear when the script is done. You may need to reboot for the change to take effect.
This utility is only intended for Windows® XP, but also appears to work for Vista and Windows 7.
You may need Administrator level access to use this utility. If you do not have Administrator level access, the program will say it is finished, but will not have made any changes.

or manual fix
Run regedit and navigate to registry key
HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}.
Highlight it and in the right pane, find the Upperfilters and Lowerfilters values.
Highlight each one in turn, right click and delete them.
Close regedit and restart the computer.
If in doubt make a restore point before making changes.