Device Service won't Stop

  • Thread starter Thread starter Franziskus Scharpff
  • Start date Start date
F

Franziskus Scharpff

Hi all,

I need to disable a NetworkInterface, so I thought to work with
ServiceProcess.

When I do getDevices() I get a list of all DeviceServices which I then check
for "CanStop".

For the NIC this is true, so I try .Stop().

The Result is 1502, which means that this is not poissible. Therefor I
develop with a german Studio I can not copy the Errormessage, but what I get
means that this command is not alowed?

With Software Services like Telnet it works fine.

Any hints?

Regards,

Franziskus
 
Franziskus Scharpff said:
Hi all,

I need to disable a NetworkInterface, so I thought to work with
ServiceProcess.

When I do getDevices() I get a list of all DeviceServices which I then check
for "CanStop".

For the NIC this is true, so I try .Stop().

The Result is 1502, which means that this is not poissible. Therefor I
develop with a german Studio I can not copy the Errormessage, but what I get
means that this command is not alowed?

With Software Services like Telnet it works fine.

Any hints?

Regards,

Franziskus
Uuups, Errorcode was 1052 0x041C The requested control is not valid for
this service

Franziskus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top