int dwServiceType = WINSVC.SERVICE_WIN32_OWN_PROCESS;
if (interactive)
dwServiceType |= WINSVC.SERVICE_INTERACTIVE_PROCESS;
if (serviceManager != null)
{
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);