Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

  1. Notes on conversion from win3.1 to NT.
  2. ======================================
  3. 1. Change from MSCDEX to NT CDRom driver IOCTLs.
  4. -- Driver sharing capabilities (??) - does the driver allow anything ?
  5. -- Drive labelling (config stuff too).
  6. Problems :
  7. Apparently no SCSI-2 command to tell if the tray is open.
  8. For now the only conditions we detect are the PLAY_STATUS conditions
  9. and inability to read the TOC. We only read the TOC when asked to
  10. by CdReady or CdGetNumTracks.
  11. 2. Device sharing implications ??
  12. Seems at the moment that ANYONE can open CDRom (is it exclusive ?).
  13. The MCICDA on windows allows sharing between apps. This means we
  14. need a server implementation or a kernel driver or just proper
  15. sharing access in the kernel driver (what should be access required
  16. for playing CDs ?).
  17. 3. Beware track numbering problems - is there always a 1 ?
  18. 4. PAUSE-RESUME. This is effectively NOOPED (or at least the RESUME is).
  19. So PAUSE always stops.
  20. Underneath in MSCDEX the thing they're fighting is that PAUSE while
  21. PAUSEd STOPs (ie forgets its PAUSED). Also MSCDEX calls PAUSE
  22. STOP.
  23. In NT to STOP we ... ?
  24. 5. A BASIC problem with the way all this stuff is written is that
  25. it's written by people all the way over to CDEX land.
  26. The devices report status AFTER they've tried to do what you want.
  27. This helps greatly with integrity. The code is written with all
  28. kinds of defensive test BEFORE issuing a command which is pretty
  29. bogus.
  30. 6. flip3, flip4 etc. Change these to portable versions where necessary.
  31. (flip4 seems OK and fits in with other poor implementations).