Confused about Choice of driver

Hi,

I’m kind of confused as to what type of driver I have to write for the
requirements given to me. And because of that I can’t concentrate on what
study material I shall continue studying.

I have a user Application, which fetches data from CDROM.
Now I need to return back data only when registry entry says “1” for
“allowed_cdrom_access”. This is our company specific registry entry.

Since no user intervention is required, my company wants to make a driver,
which should do all this in background.

Also, I tried getting what diskperf sample driver does, but when I installed
it on my systsm (XP 32 bit) it failed. and currently Im trying to understand
what cdfs driver is doing.
Please guide me if Im going in correct direction. Also that in reality
there is no hardware associated, so would I have to make a “virtual driver”
?

Another thing which amuses its a very small “read registry, if yes do
something, if no do nothing” logic, do I still need to take in account ALL
the things done by CDROM driver ?

Thank you,
S Jha

If you want to read registry and read CDROM data conditionally, it does not require you to write a Driver.

If idea is just to read data based on certain registry value and without user intervention then you can do that from a normal Windows Service.

Look for ScManager functions like OpenScManager, CreateService etc.

Thanks,
Dhiren

— On Thu, 2/10/08, Sonya Jha wrote:

> From: Sonya Jha
> Subject: [ntdev] Confused about Choice of driver
> To: “Windows System Software Devs Interest List”
> Date: Thursday, 2 October, 2008, 3:58 PM
> Hi,
>
> I’m kind of confused as to what type of driver I have
> to write for the
> requirements given to me. And because of that I can’t
> concentrate on what
> study material I shall continue studying.
>
> I have a user Application, which fetches data from CDROM.
> Now I need to return back data only when registry entry
> says “1” for
> “allowed_cdrom_access”. This is our company
> specific registry entry.
>
> Since no user intervention is required, my company wants to
> make a driver,
> which should do all this in background.
>
> Also, I tried getting what diskperf sample driver does, but
> when I installed
> it on my systsm (XP 32 bit) it failed. and currently Im
> trying to understand
> what cdfs driver is doing.
> Please guide me if Im going in correct direction. Also
> that in reality
> there is no hardware associated, so would I have to make a
> “virtual driver”
> ?
>
> Another thing which amuses its a very small “read
> registry, if yes do
> something, if no do nothing” logic, do I still need to
> take in account ALL
> the things done by CDROM driver ?
>
> Thank you,
> S Jha
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars
> visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online
> at http://www.osronline.com/page.cfm?name=ListServer

Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

Why does it have to use SCM? SCM is for service application ( like a
daemon in unix term, if that is familiar to OP).

The very app that reads data, should be able to do the registry query,
set etc… Look at Windows API ( not WDK api ) under msdn, search for
registry ( or specifically ReadRegistry …)

-pro

dhirendra pratap wrote:

If you want to read registry and read CDROM data conditionally, it does not require you to write a Driver.

If idea is just to read data based on certain registry value and without user intervention then you can do that from a normal Windows Service.

Look for ScManager functions like OpenScManager, CreateService etc.

Thanks,
Dhiren

— On Thu, 2/10/08, Sonya Jha wrote:
>
>
>> From: Sonya Jha
>> Subject: [ntdev] Confused about Choice of driver
>> To: “Windows System Software Devs Interest List”
>> Date: Thursday, 2 October, 2008, 3:58 PM
>> Hi,
>>
>> I’m kind of confused as to what type of driver I have
>> to write for the
>> requirements given to me. And because of that I can’t
>> concentrate on what
>> study material I shall continue studying.
>>
>> I have a user Application, which fetches data from CDROM.
>> Now I need to return back data only when registry entry
>> says “1” for
>> “allowed_cdrom_access”. This is our company
>> specific registry entry.
>>
>> Since no user intervention is required, my company wants to
>> make a driver,
>> which should do all this in background.
>>
>> Also, I tried getting what diskperf sample driver does, but
>> when I installed
>> it on my systsm (XP 32 bit) it failed. and currently Im
>> trying to understand
>> what cdfs driver is doing.
>> Please guide me if Im going in correct direction. Also
>> that in reality
>> there is no hardware associated, so would I have to make a
>> “virtual driver”
>> ?
>>
>> Another thing which amuses its a very small “read
>> registry, if yes do
>> something, if no do nothing” logic, do I still need to
>> take in account ALL
>> the things done by CDROM driver ?
>>
>> Thank you,
>> S Jha
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars
>> visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online
>> at http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
> Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>

I said service as OP mentioned that he does not wanted to have GUI or user intervention. My suggestion just was an alternative to that so that service will run in backround and do required things.

Regards,
Dhiren

— On Thu, 2/10/08, Prokash Sinha wrote:

> From: Prokash Sinha
> Subject: Re: [ntdev] Confused about Choice of driver
> To: “Windows System Software Devs Interest List”
> Date: Thursday, 2 October, 2008, 7:41 PM
> Why does it have to use SCM? SCM is for service application
> ( like a
> daemon in unix term, if that is familiar to OP).
>
> The very app that reads data, should be able to do the
> registry query,
> set etc… Look at Windows API ( not WDK api ) under msdn,
> search for
> registry ( or specifically ReadRegistry …)
>
> -pro
>
> dhirendra pratap wrote:
> > If you want to read registry and read CDROM data
> conditionally, it does not require you to write a Driver.
> >
> > If idea is just to read data based on certain registry
> value and without user intervention then you can do that
> from a normal Windows Service.
> >
> > Look for ScManager functions like OpenScManager,
> CreateService etc.
> >
> > Thanks,
> > Dhiren
> >
> > — On Thu, 2/10/08, Sonya Jha
> wrote:
> >
> >
> >> From: Sonya Jha
> >> Subject: [ntdev] Confused about Choice of driver
> >> To: “Windows System Software Devs Interest
> List”
> >> Date: Thursday, 2 October, 2008, 3:58 PM
> >> Hi,
> >>
> >> I’m kind of confused as to what type of driver
> I have
> >> to write for the
> >> requirements given to me. And because of that I
> can’t
> >> concentrate on what
> >> study material I shall continue studying.
> >>
> >> I have a user Application, which fetches data from
> CDROM.
> >> Now I need to return back data only when registry
> entry
> >> says “1” for
> >> “allowed_cdrom_access”. This is our
> company
> >> specific registry entry.
> >>
> >> Since no user intervention is required, my company
> wants to
> >> make a driver,
> >> which should do all this in background.
> >>
> >> Also, I tried getting what diskperf sample driver
> does, but
> >> when I installed
> >> it on my systsm (XP 32 bit) it failed. and
> currently Im
> >> trying to understand
> >> what cdfs driver is doing.
> >> Please guide me if Im going in correct direction.
> Also
> >> that in reality
> >> there is no hardware associated, so would I have
> to make a
> >> “virtual driver”
> >> ?
> >>
> >> Another thing which amuses its a very small
> “read
> >> registry, if yes do
> >> something, if no do nothing” logic, do I
> still need to
> >> take in account ALL
> >> the things done by CDROM driver ?
> >>
> >> Thank you,
> >> S Jha
> >>
> >> —
> >> NTDEV is sponsored by OSR
> >>
> >> For our schedule of WDF, WDM, debugging and other
> seminars
> >> visit:
> >> http://www.osr.com/seminars
> >>
> >> To unsubscribe, visit the List Server section of
> OSR Online
> >> at
> http://www.osronline.com/page.cfm?name=ListServer
> >>
> >
> >
> > Add more friends to your messenger and enjoy! Go
> to http://messenger.yahoo.com/invite/
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other
> seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR
> Online at http://www.osronline.com/page.cfm?name=ListServer
> >
> >
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars
> visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online
> at http://www.osronline.com/page.cfm?name=ListServer

Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

Dhiren,

Not that it matters, but what I read is that OP has an application (
Note that an application does not necessarily mean a GUI, and an
application does not necessarily mean it a service ).

If there is already an app that reads a data ( GUI or not ), there is
plenty of places in the app where someone can do this little bit of
registry stuff …

If they have an app ( that reads data from CD and depending on their
own registry setting ) should provide the data to user, then that very
app should handle the registry query/set/read etc…

-pro

dhirendra pratap wrote:

I said service as OP mentioned that he does not wanted to have GUI or user intervention. My suggestion just was an alternative to that so that service will run in backround and do required things.

Regards,
Dhiren

— On Thu, 2/10/08, Prokash Sinha wrote:
>
>
>> From: Prokash Sinha
>> Subject: Re: [ntdev] Confused about Choice of driver
>> To: “Windows System Software Devs Interest List”
>> Date: Thursday, 2 October, 2008, 7:41 PM
>> Why does it have to use SCM? SCM is for service application
>> ( like a
>> daemon in unix term, if that is familiar to OP).
>>
>> The very app that reads data, should be able to do the
>> registry query,
>> set etc… Look at Windows API ( not WDK api ) under msdn,
>> search for
>> registry ( or specifically ReadRegistry …)
>>
>> -pro
>>
>> dhirendra pratap wrote:
>>
>>> If you want to read registry and read CDROM data
>>>
>> conditionally, it does not require you to write a Driver.
>>
>>> If idea is just to read data based on certain registry
>>>
>> value and without user intervention then you can do that
>> from a normal Windows Service.
>>
>>> Look for ScManager functions like OpenScManager,
>>>
>> CreateService etc.
>>
>>> Thanks,
>>> Dhiren
>>>
>>> — On Thu, 2/10/08, Sonya Jha
>>>
>> wrote:
>>
>>>
>>>
>>>> From: Sonya Jha
>>>> Subject: [ntdev] Confused about Choice of driver
>>>> To: “Windows System Software Devs Interest
>>>>
>> List”
>>
>>>> Date: Thursday, 2 October, 2008, 3:58 PM
>>>> Hi,
>>>>
>>>> I’m kind of confused as to what type of driver
>>>>
>> I have
>>
>>>> to write for the
>>>> requirements given to me. And because of that I
>>>>
>> can’t
>>
>>>> concentrate on what
>>>> study material I shall continue studying.
>>>>
>>>> I have a user Application, which fetches data from
>>>>
>> CDROM.
>>
>>>> Now I need to return back data only when registry
>>>>
>> entry
>>
>>>> says “1” for
>>>> “allowed_cdrom_access”. This is our
>>>>
>> company
>>
>>>> specific registry entry.
>>>>
>>>> Since no user intervention is required, my company
>>>>
>> wants to
>>
>>>> make a driver,
>>>> which should do all this in background.
>>>>
>>>> Also, I tried getting what diskperf sample driver
>>>>
>> does, but
>>
>>>> when I installed
>>>> it on my systsm (XP 32 bit) it failed. and
>>>>
>> currently Im
>>
>>>> trying to understand
>>>> what cdfs driver is doing.
>>>> Please guide me if Im going in correct direction.
>>>>
>> Also
>>
>>>> that in reality
>>>> there is no hardware associated, so would I have
>>>>
>> to make a
>>
>>>> “virtual driver”
>>>> ?
>>>>
>>>> Another thing which amuses its a very small
>>>>
>> “read
>>
>>>> registry, if yes do
>>>> something, if no do nothing” logic, do I
>>>>
>> still need to
>>
>>>> take in account ALL
>>>> the things done by CDROM driver ?
>>>>
>>>> Thank you,
>>>> S Jha
>>>>
>>>> —
>>>> NTDEV is sponsored by OSR
>>>>
>>>> For our schedule of WDF, WDM, debugging and other
>>>>
>> seminars
>>
>>>> visit:
>>>> http://www.osr.com/seminars
>>>>
>>>> To unsubscribe, visit the List Server section of
>>>>
>> OSR Online
>>
>>>> at
>>>>
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>>>>
>>>>
>>> Add more friends to your messenger and enjoy! Go
>>>
>> to http://messenger.yahoo.com/invite/
>>
>>> —
>>> NTDEV is sponsored by OSR
>>>
>>> For our schedule of WDF, WDM, debugging and other
>>>
>> seminars visit:
>>
>>> http://www.osr.com/seminars
>>>
>>> To unsubscribe, visit the List Server section of OSR
>>>
>> Online at http://www.osronline.com/page.cfm?name=ListServer
>>
>>>
>>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars
>> visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online
>> at http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
> Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>

Sonya Jha wrote:

I’m kind of confused as to what type of driver I have to write for the
requirements given to me. And because of that I can’t concentrate on
what study material I shall continue studying.

I have a user Application, which fetches data from CDROM.
Now I need to return back data only when registry entry says “1” for
“allowed_cdrom_access”. This is our company specific registry entry.

Since no user intervention is required, my company wants to make a
driver, which should do all this in background.

I think there is some confusion about what your task is. Your words
could mean several different things. My interpretation, for example,
was that your company was trying to create some kind of boneheaded
security scheme, so that they could completely block access to CD drives
for certain users. If so, there are probably better ways than a filter
driver. One that comes to mind is a “screwdriver filter”, by physically
removing the drive from the computer. IT folks can bring their own if
they need to do something.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.