add control method

This commit is contained in:
Doug MacEachern 2004-11-21 18:39:53 +00:00
parent cb8dd003ea
commit 9616fb7f39
1 changed files with 8 additions and 0 deletions

View File

@ -187,6 +187,14 @@ public class Service extends Win32Bindings implements java.io.Serializable
DeleteService(this.m_hService); DeleteService(this.m_hService);
} }
public void control(int control)
throws Win32Exception
{
if (!ControlService(this.m_hService, control)) {
Service.throwLastErrorException();
}
}
public void setDescription(String description) public void setDescription(String description)
{ {
Service.ChangeServiceDescription(this.m_hService, description); Service.ChangeServiceDescription(this.m_hService, description);