Skip navigation links
JNA API 4.2.1
com.sun.jna.platform.win32

Class W32ServiceManager



  • public class W32ServiceManager
    extends Object
    Win32 Service Manager wrapper
    Author:
    EugineLev
    • Constructor Detail

      • W32ServiceManager

        public W32ServiceManager()
      • W32ServiceManager

        public W32ServiceManager(String machineName,
                                 String databaseName)
    • Method Detail

      • open

        public void open(int permissions)
        Opens the Service Manager with the supplied permissions.
        Parameters:
        permissions - Permissions.
      • close

        public void close()
        Closes the previously opened Service Manager.
      • openService

        public W32Service openService(String serviceName,
                                      int permissions)
        Opens a Service.
        Parameters:
        serviceName - Service name.
        permissions - Permissions.
        Returns:
        Returns an opened service.
      • getHandle

        public Winsvc.SC_HANDLE getHandle()
        Gets the service manager handle.
        Returns:
        Returns the service manager handle.
JNA API 4.2.1

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.