add control method
This commit is contained in:
1 parent
cb8dd003ea
commit
9616fb7f39
1 file changed
+8
@@ -187,6 +187,14 @@ public class Service extends Win32Bindings implements java.io.Serializable
|
||||
DeleteService(this.m_hService);
|
||||
}
|
||||
|
||||
public void control(int control)
|
||||
throws Win32Exception
|
||||
{
|
||||
if (!ControlService(this.m_hService, control)) {
|
||||
Service.throwLastErrorException();
|
||||
}
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
Service.ChangeServiceDescription(this.m_hService, description);
|
||||
|
||||
Reference in new issue
Block a user