make Service.close method public
This commit is contained in:
parent
f038a56119
commit
cb8dd003ea
|
@ -121,7 +121,7 @@ public class Service extends Win32Bindings implements java.io.Serializable
|
|||
this.close();
|
||||
}
|
||||
|
||||
private void close()
|
||||
public void close()
|
||||
{
|
||||
if(this.m_hService != 0) {
|
||||
CloseServiceHandle(this.m_hService);
|
||||
|
@ -130,7 +130,7 @@ public class Service extends Win32Bindings implements java.io.Serializable
|
|||
|
||||
if(this.m_hMgr != 0) {
|
||||
CloseServiceHandle(this.m_hMgr);
|
||||
this.m_hService = 0;
|
||||
this.m_hMgr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ public class TestService extends TestCase {
|
|||
|
||||
public void testServiceOpen() throws Exception {
|
||||
Service service = new Service("Eventlog");
|
||||
service.close();
|
||||
}
|
||||
|
||||
public void testServiceCreateDelete() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue