Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Device driver Vs NT Service

Reply
Thread Tools Display Modes

Device driver Vs NT Service

 
 
Robert Marquardt
Guest
Posts: n/a

 
      02-28-2007
shoeb wrote:
> I am developing a devicelock project and i want to do it without device
> driver. I am planning to develop a NT service that the server will install
> on the client machines . The service will make use of Setup APIs to
> enable/disable the devices. The service will perform the following
> operations:
>
>
>
> i) Disable/enable the devices depending upon the user
>
> ii) Implement hooks for preventing users from
> enabling/disabling devices through device manager or through registry and
> uninstalling service.


You are not the first with that idea. From the lack of free tools
available i would guess that it does not work.
From my experiments i know that CM_Request_Device_Eject for USB sticks
has delays of 30 secs and more if called without dialog option for example.
 
Reply With Quote
 
 
 
 
Anton Bassov
Guest
Posts: n/a

 
      02-28-2007
> The service will perform the following operations:

> Disable/enable the devices depending upon the user


No problem here whatsoever....

> ii) Implement hooks for preventing users from
> enabling/disabling devices through device manager or through registry and
> uninstalling service.


User-mode program X just cannot deny user-mode program Y access to the
registry or to some certain API, either by "supported" means or otherwise
-although it can try, these efforts still may be fruitless, because there is
always a way to bypass your code. In order to be 100% sure, you need a
driver.

However, "good" drivers never block registry access, because the system
would not permit restricted accounts to either modify device access
permitions or uninstall services anyway, and the ones with admin privileges
should be able to do whatever they want on the target machine. The only type
of "software" that stands in admin's way is generally known as MALWARE

Anton Bassov





"shoeb" wrote:

> I am developing a devicelock project and i want to do it without device
> driver. I am planning to develop a NT service that the server will install
> on the client machines . The service will make use of Setup APIs to
> enable/disable the devices. The service will perform the following
> operations:
>
>
>
> i) Disable/enable the devices depending upon the user
>
> ii) Implement hooks for preventing users from
> enabling/disabling devices through device manager or through registry and
> uninstalling service.
>
>
>
> could anybody please tell me what are the benefits of doing this project
> using device drivers over the NT service that i am planning to implement.
>
>
>
> Client machines will be windows 2000 and above
>
>
>
> thanks
>
>
>
>
>
>
>
>
>

 
Reply With Quote
 
shoeb
Guest
Posts: n/a

 
      03-01-2007
I am developing a devicelock project and i want to do it without device
driver. I am planning to develop a NT service that the server will install
on the client machines . The service will make use of Setup APIs to
enable/disable the devices. The service will perform the following
operations:



i) Disable/enable the devices depending upon the user

ii) Implement hooks for preventing users from
enabling/disabling devices through device manager or through registry and
uninstalling service.



could anybody please tell me what are the benefits of doing this project
using device drivers over the NT service that i am planning to implement.



Client machines will be windows 2000 and above



thanks








 
Reply With Quote
 
shoeb
Guest
Posts: n/a

 
      03-01-2007
what if i implement the hooks in a kernel mode program and rest of the
functions in service. would it be fine? what i want is minimal or no device
driver coz i dont have the required resource. i need only a competitive
device-blocker not the one that is hardest to crack. i am planning to work
on crack-proofing in later releases
thanks


"Anton Bassov" <> wrote in message
news:F814D356-17A8-44B6-B647-...
> > The service will perform the following operations:

>
> > Disable/enable the devices depending upon the user

>
> No problem here whatsoever....
>
> > ii) Implement hooks for preventing users from
> > enabling/disabling devices through device manager or through registry

and
> > uninstalling service.

>
> User-mode program X just cannot deny user-mode program Y access to the
> registry or to some certain API, either by "supported" means or otherwise
> -although it can try, these efforts still may be fruitless, because there

is
> always a way to bypass your code. In order to be 100% sure, you need a
> driver.
>
> However, "good" drivers never block registry access, because the system
> would not permit restricted accounts to either modify device access
> permitions or uninstall services anyway, and the ones with admin

privileges
> should be able to do whatever they want on the target machine. The only

type
> of "software" that stands in admin's way is generally known as MALWARE
>
> Anton Bassov
>
>
>
>
>
> "shoeb" wrote:
>
> > I am developing a devicelock project and i want to do it without device
> > driver. I am planning to develop a NT service that the server will

install
> > on the client machines . The service will make use of Setup APIs to
> > enable/disable the devices. The service will perform the following
> > operations:
> >
> >
> >
> > i) Disable/enable the devices depending upon the user
> >
> > ii) Implement hooks for preventing users from
> > enabling/disabling devices through device manager or through registry

and
> > uninstalling service.
> >
> >
> >
> > could anybody please tell me what are the benefits of doing this

project
> > using device drivers over the NT service that i am planning to

implement.
> >
> >
> >
> > Client machines will be windows 2000 and above
> >
> >
> >
> > thanks
> >
> >
> >
> >
> >
> >
> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing device from within service Tobias Erichsen Windows Vista Drivers 5 07-16-2006 02:56 PM
Device INF and win32 service Owen Smith Windows Vista Drivers 3 06-08-2006 09:47 AM
Switch device service.... Vijay Windows Vista Drivers 1 07-12-2004 06:01 PM
Re: Device Manager and devcon do not remove driver service entries for PNP drivers on uninstall Eliyas Yakub [MSFT] Windows Vista Drivers 3 05-12-2004 11:03 PM
Win2K device driver wizard doesn't find the device names in my INF file Kirby Windows Vista Drivers 0 08-31-2003 10:25 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59