Page 1 of 1

Driver Development - need help

Posted: Sun Jan 05, 2014 5:15 pm
by doctorized
In the driver is writen (C++ code):

Code: Select all

status = IoCreateDevice(
        DriverObject,
        sizeof(DEVICE_EXTENSION),
        &DeviceName,
        FILE_DEVICE_CD_ROM, //0x02
        FILE_REMOVABLE_MEDIA | FILE_READ_ONLY_DEVICE, //0x03
        FALSE,
        &NewDeviceObject
        );
this creates a virtual cd rom device. The device appears in the openRequester window from every program (PB, Word, etc) from File->Open but nowhere else. What else sould be done to appear in My Computer too? The same driver used by a C++ application makes virtual drives that appear in My Computer, so something else must be called in order to appear there too, but what is it? DefineDosDevice used as: DefineDosDevice_(0,"Z:","") didn't make any change. (Z is the letter of the drive created.)

Re: Driver Development - need help

Posted: Sun Jan 05, 2014 5:59 pm
by IdeasVacuum
What happens if you change FALSE to TRUE?

ah, answer is 'not applicable!'

This relevant: http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Re: Driver Development - need help

Posted: Sun Jan 05, 2014 6:10 pm
by doctorized
I tried your suggestion before you edited it. Nothing changed. This code is exact the same found in an other driver project, so FALSE is the one it should be there.

Also, does anyone know hot to get the input buffer inside the driver? Is it Irp->AssociatedIrp.SystemBuffer?