473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Stopping devices

I am trying to stop and start a device driver (specifically one for a Cisco
net card) from VB.NET under Win2000.

My first attempt was;

dim ciscodev as new system.serviceprocess.servicecontroller("PCX500")
ciscodev.stop

This gets the device but has no control over it; I can read its status, name
etc but when I try to do ciscodev.stop I get the error "Cannot stop PCX500
service on computer '.'".

The "CanStop" property of ciscodev is true.

So I tried inserting these lines before the "dim" and the .stop;

dim ciscosec as new system.serviceprocess.servicecontrollerpermission _
(servicecontrollerpermissionaccess.control, ".", "PCX500")
ciscosec.assert()
ciscosec.demand()

Looking at ciscosec.pemissionentries I see that, according to that, I have
"Control" access. Looking at the locals window, I see the hidden property
ciscosec.controlGranted remains false and only .browseGranted is true.

My problems are not confined to this proprietary driver; if I try the same
operations on the "tcpip" driver I get the same result, even though that
also has "CanStop" true.

What do I need to do to get control of these?

--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/
Nov 19 '05 #1
0 1031

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Lynn | last post by:
I have a SuSe 9.1 linux box (although this isn't a new issue) with reasonably up to date everything. When I run PySol, it grabs the sound system in a rude and complete way. I don't listen to...
0
by: A. Fuentes | last post by:
Fellow Oracle Netters: I have the following problem: Enviroment: Oracle9i/AIX5.2/Veritas vxvm I am trying to create an Oracle database using RAW devices UNDER the Veritas vxvm.(Veritas...
0
by: Spiros | last post by:
Hello, I am trying to create a database using DBCA on both raw devices and UFS. I want my tablespaces and redo log files on raw devices, e.g /dev/vx/rdsk/system_raw_dev, and my control files on...
18
by: Bud Cookson | last post by:
We are in the process of developing the requirements for a new medical device and the question has been raised about what development tool/language should be used. The application(s) will be...
12
by: Michael Wimmer | last post by:
Hi, could anybody tell me what the current state of technology for mobile devices is? I have seen so far that there is cHTML (imode), wml, xhtml (full or basic) to be used for mobile devices....
42
by: Jim Smith | last post by:
Note the cross-posting - but no flame wars please. This question was prompted by a thread on the a postgres mailing list during which someone (Gregory Williamson) claimed <quote> raw devices,...
1
by: Matthew Brown | last post by:
Hi, I am working with a COM library in which modifying almost every object is done asynchronously (because the object represent physical devices across a network somewhere on a telephone...
0
by: gewe | last post by:
I am using the following code to enumerate devices on the local computer: ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * from Win32_PnPEntity");...
3
by: stacy | last post by:
I am developing an application that must look out over TCP on an ethernet connection to locate our proprietary devices. The Web application and the devices are communicating over ethernet with...
2
by: =?Utf-8?B?ZGF2ZS5oYXJkeQ==?= | last post by:
Hi, there have been loads of posts about this problem on loads of forums and I have tried everything suggested (except the stuff I’m not comfortable with like deleting drivers and reg. edits). ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.