Examples of ChangeServiceConfig2()


Examples of jnacontrib.jna.Advapi32.ChangeServiceConfig2()

      service = advapi32.CreateService(serviceManager, serviceName, displayName, WINSVC.SERVICE_ALL_ACCESS, dwServiceType, winStartType,
          WINSVC.SERVICE_ERROR_NORMAL, command, null, null, dep, account, password);

      if (service != null)
      {
        success = advapi32.ChangeServiceConfig2(service, WINSVC.SERVICE_CONFIG_DESCRIPTION, desc);
        advapi32.CloseServiceHandle(service);
      }
      else
      {
        int err = Kernel32.INSTANCE.GetLastError();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.