SAbine--
You received this message because you are subscribed to the Google Groups "Java Native Access" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jna-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
dB. | Moscow - Geneva - Seattle - New York
dblock.org - @dblockdotorg
try {
W32ServiceManager serviceManager = new W32ServiceManager();
//i also tried "Winsvc.SERVICE_ALL_ACCESS" instead of "Winsvc.SC_MANAGER_ALL_ACCESS" but not worked for me.
serviceManager.open(Winsvc.SC_MANAGER_ALL_ACCESS);
W32Service service = serviceManager.openService("TeamViewer", Winsvc.SC_MANAGER_ALL_ACCESS); // windows service name of team viewer
service.startService();
service.close();
}catch(Exception ex){
ex.printStackTrace();
}