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
 
Back
Top