make Service.close method public

This commit is contained in:
Doug MacEachern 2004-11-21 03:12:26 +00:00
parent f038a56119
commit cb8dd003ea
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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 {