Device driver load sequence



Hi,

1. I have a stream device driver which gets its XXX_Init called when an SD
card is inserted. I would like to create another stream device driver whose
YYY_Init I would like to have called only if the XXX_Init successfully
completes. If an application does a CreateFile on the YYY device before a SD
card is inserted, I would like the call to fail. I am not sure if/how the
Order in the registry can be used for this.

2. If XXX_Init has not been called when an application does a CreateFile,
what happens? Does the call fail or does it cause the XXX_Init to get invoked?

3. The handle returned from XXX_Init is passed as the first param to
XXX_Open. However applications don't know the handle, so who supplies this
handle when an application does a CreateFile (which causes the XXX_Open entry
point to get exercised)?

4. Can a single DLL implement more than one stream interface?

Thanks.
.



Relevant Pages

  • Re: Device driver load sequence
    ... I have a stream device driver which gets its XXX_Init called when an SD ... card is inserted, I would like the call to fail. ... If XXX_Init has not been called when an application does a CreateFile, ... Does the call fail or does it cause the XXX_Init to get invoked? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Device driver load sequence
    ... the device manager along with the file ... I have a stream device driver which gets its XXX_Init called when an SD ... If an application does a CreateFile on the YYY device before a SD ... Does the call fail or does it cause the XXX_Init to get invoked? ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Device driver load sequence
    ... I have a stream device driver which gets its XXX_Init called when an SD ... If XXX_Init has not been called when an application does a CreateFile, ... Does the call fail or does it cause the XXX_Init to get invoked? ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Device driver load sequence
    ... I have a stream device driver which gets its XXX_Init called when an SD ... If XXX_Init has not been called when an application does a CreateFile, ... Does the call fail or does it cause the XXX_Init to get invoked? ...
    (microsoft.public.windowsce.platbuilder)