enable getting service state as both an int and as a string, test uppercase and lowercase queries, test a service we know is there, test a service with it's name and it's registry entry

This commit is contained in:
idk
2022-09-19 01:45:01 -04:00
parent 9489428e36
commit 58305471f6

View File

@ -107,16 +107,16 @@ public class WindowsServiceUtil {
public static void main(String args[]) {
String state = getServiceState("i2p");
int stateInt = getServiceStateInt("i2p");
System.out.println("state: " + state + " code: " + stateInt);
System.out.println("i2p state: " + state + " code: " + stateInt);
String State = getServiceState("I2P");
int StateInt = getServiceStateInt("I2P");
System.out.println("state: " + State + " code: " + StateInt);
System.out.println("I2P state: " + State + " code: " + StateInt);
String dhcpstate = getServiceState("DHCP Client");
int dhcpstateInt = getServiceStateInt("DHCP Client");
System.out.println("state: " + dhcpstate + " code: " + dhcpstateInt);
System.out.println("DHCP Client state: " + dhcpstate + " code: " + dhcpstateInt);
String dstate = getServiceState("Dhcp");
int dstateInt = getServiceStateInt("Dhcp");
System.out.println("state: " + dstate + " code: " + dstateInt);
System.out.println("Dhcp state: " + dstate + " code: " + dstateInt);
}
}