Skip navigation links
JNA API 4.2.1

Class W32Service

  • public class W32Service
    extends Object
    Win32 Service wrapper
    • Constructor Detail

      • W32Service

        public W32Service(Winsvc.SC_HANDLE handle)
        Win32 Service
        handle - A handle to the service. This handle is returned by the CreateService or OpenService function, and it must have the SERVICE_QUERY_STATUS access right.
    • Method Detail

      • close

        public void close()
        Close service.
      • queryStatus

        public Winsvc.SERVICE_STATUS_PROCESS queryStatus()
        Retrieves the current status of the specified service based on the specified information level.
        Service status information
      • startService

        public void startService()
      • stopService

        public void stopService()
        Stop service.
      • continueService

        public void continueService()
        Continue service.
      • pauseService

        public void pauseService()
        Pause service.
      • waitForNonPendingState

        public void waitForNonPendingState()
        Wait for the state to change to something other than a pending state.
      • getHandle

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

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