Driver Development - need help

Windows specific forum
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Driver Development - need help

Post 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.)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Driver Development - need help

Post 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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: Driver Development - need help

Post 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?
Post Reply