Start device without administrator privileges

Hi everybody,
I made a driver to manage a PCI card.
This driver starts in manual mode, value 3 in Start
option in the registry.
If I’m administrator, I have no problems to start de
driver, starting the device from the Settings->Devices
window.
But, when I want to start the device without
administrator privileges, It fails returning
ACCESS_DENIED.
How can be the device started without administrator
privileges?
It implies the driver?
Or the privileges of the application that want to
start the driver? How can I give privileges to my
application to start the device?

Thanks in advance.


Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It’s sensible that drivers should only be started by
users with administrator privelges. Otherwise anybody
can crash the system. The privelege of the application
depends on the privelege of the user who starts the
application.
-Sajeev.
— Pablo Negri wrote: > Hi
everybody,
> I made a driver to manage a PCI card.
> This driver starts in manual mode, value 3 in Start
> option in the registry.
> If I’m administrator, I have no problems to start de
> driver, starting the device from the
> Settings->Devices
> window.
> But, when I want to start the device without
> administrator privileges, It fails returning
> ACCESS_DENIED.
> How can be the device started without administrator
> privileges?
> It implies the driver?
> Or the privileges of the application that want to
> start the driver? How can I give privileges to my
> application to start the device?
>
> Thanks in advance.
>
>
_______
> Do You Yahoo!?
> Obtenga su dirección de correo-e gratis @yahoo.com
> en http://correo.espanol.yahoo.com
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You can use the ExecuteProcess APIs to start the service as administrator.
For this you’d have to configure the access permissions on the local
workstation and know the userid/password of an administrator account.

Another way you could do this is to build a “sleeper” service running as the
system account. This service will have the permission to start the driver
on the workstation. You can then make DDE calls from your application to
this service to initiate starting your driver.

Yousef Hamade

-----Original Message-----
From: sajeev sas [SMTP:xxxxx@yahoo.com]
Sent: Friday, March 16, 2001 11:29 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Start device without administrator privileges

It’s sensible that drivers should only be started by
users with administrator privelges. Otherwise anybody
can crash the system. The privelege of the application
depends on the privelege of the user who starts the
application.
-Sajeev.
— Pablo Negri wrote: > Hi
> everybody,
> > I made a driver to manage a PCI card.
> > This driver starts in manual mode, value 3 in Start
> > option in the registry.
> > If I’m administrator, I have no problems to start de
> > driver, starting the device from the
> > Settings->Devices
> > window.
> > But, when I want to start the device without
> > administrator privileges, It fails returning
> > ACCESS_DENIED.
> > How can be the device started without administrator
> > privileges?
> > It implies the driver?
> > Or the privileges of the application that want to
> > start the driver? How can I give privileges to my
> > application to start the device?
> >
> > Thanks in advance.
> >
> >
> _______
> > Do You Yahoo!?
> > Obtenga su direcci?n de correo-e gratis @yahoo.com
> > en http://correo.espanol.yahoo.com
> >
> > —
> > You are currently subscribed to ntdev as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>

> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> —
> You are currently subscribed to ntdev as: xxxxx@fmr.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

>on the workstation. You can then make DDE calls from your application to

this service to initiate starting your driver.

Forget about DDE which was obsolete as early as in 1996. It is a nasty Win16
remnant.
Use COM (namely Automation) instead. Use ATL library and the wizard in MSVC
IDE to create the skeleton of your COM class.

Max


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Unfortunatly I’m not a “real” programmer so I didnt know what the exact
method to use was.
DDE can perform the function needed that is why I suggest it. I was simply
illustrating a “hack”
process that would work.

Yousef Hamade

-----Original Message-----
From: Maxim S. Shatskih [SMTP:xxxxx@storagecraft.com]
Sent: Saturday, March 17, 2001 3:26 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Start device without administrator privileges

>on the workstation. You can then make DDE calls from your application to
>this service to initiate starting your driver.

Forget about DDE which was obsolete as early as in 1996. It is a nasty
Win16
remnant.
Use COM (namely Automation) instead. Use ATL library and the wizard in
MSVC
IDE to create the skeleton of your COM class.

Max


You are currently subscribed to ntdev as: xxxxx@fmr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com