use constant SERVICE_CONTROL_STOP => 0x00000001; use constant SERVICE_CONTROL_PAUSE => 0x00000002; use constant SERVICE_CONTROL_CONTINUE => 0x00000003; use constant SERVICE_CONTROL_INTERROGATE=> 0x00000004; use constant SERVICE_CONTROL_SHUTDOWN => 0x00000005; use constant SERVICE_CONTROL_PARAMCHANGE=> 0x00000006; use constant SERVICE_CONTROL_NETBINDADD => 0x00000007; use constant SERVICE_CONTROL_NETBINDREMOVE => 0x00000008; use constant SERVICE_CONTROL_NETBINDENABLE => 0x00000009; use constant SERVICE_CONTROL_NETBINDDISABLE=> 0x0000000A; use constant SERVICE_CONTROL_DEVICEEVENT=> 0x0000000B; use constant SERVICE_CONTROL_HARDWAREPROFILECHANGE => 0x0000000C; use constant SERVICE_CONTROL_POWEREVENT => 0x0000000D; use constant SERVICE_CONTROL_SESSIONCHANGE=> 0x0000000E; use constant SERVICE_CONTROL_PRESHUTDOWN => 0x0000000F; # Next 2 are not supported in Win2k and XP use constant SERVICE_CONTROL_TIMECHANGE => 0x00000010; use constant SERVICE_CONTROL_TGIGGEREVENT => 0x00000020; use constant SERVICE_STOPPED => 0x00000001; use constant SERVICE_START_PENDING => 0x00000002; use constant SERVICE_STOP_PENDING => 0x00000003; use constant SERVICE_RUNNING => 0x00000004; use constant SERVICE_CONTINUE_PENDING => 0x00000005; use constant SERVICE_PAUSE_PENDING => 0x00000006; use constant SERVICE_PAUSED => 0x00000007;