Class W32ServiceManager

    • Constructor Detail

      • W32ServiceManager

        public W32ServiceManager()
        Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database.

        The connection is not established until open(int) is called.

      • W32ServiceManager

        public W32ServiceManager​(int permissions)
        Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database.

        A connection is opened directly with the requested permissions.

        Parameters:
        permissions - requested permissions for access
      • W32ServiceManager

        public W32ServiceManager​(String machineName,
                                 String databaseName)
        Instantiate a W32ServiceManager.
        Parameters:
        machineName - The name of the target computer. If the pointer is NULL or points to an empty string, the function connects to the service control manager on the local computer.
        databaseName - The name of the service control manager database. This parameter should be set to "ServicesActive". If it is NULL, the "ServicesActive" (SERVICES_ACTIVE_DATABASE) database is opened by default.

        The connection is not established until open(int) is called.

      • W32ServiceManager

        public W32ServiceManager​(String machineName,
                                 String databaseName,
                                 int permissions)
        Instantiate a W32ServiceManager.

        A connection is opened directly with the requested permissions.

        Parameters:
        machineName - The name of the target computer. If the pointer is NULL or points to an empty string, the function connects to the service control manager on the local computer.
        databaseName - The name of the service control manager database. This parameter should be set to "ServicesActive". If it is NULL, the "ServicesActive" (SERVICES_ACTIVE_DATABASE) database is opened by default.
        permissions - requested permissions for access