Charles Davis cdavis@mymail.mines.edu writes:
OK, thanks. Now I've got this straight. I should do something like dlls/mountmgr.sys/device.c, where I'd have an NT device like \Device\CdRom0 (or some such), whose FD I'd pass to the server so that when NTDLL opens the device and gets its FD, it still has the CD-ROM device for client-side calls. But when I need to call mountmgr, I open \Device\CdRom0 (or some such) and pass the IOCTL on to mountmgr. Is that right? Or am I still missing something?
Pretty much, except of course you don't open \Device\CdRom0 yourself, the app does that, and you get a handle to it.