##=
# The variable $Bit will hold either 64 or 32 depending on system architecture
# This is used with all the ${Service::} macros
# Use this in the beginning of your code.
# This snippet should only be used once.
#
Var Bit
System::Call "kernel32::GetCurrentProcess()i.s"
System::C...
##=
#= Service::QueryConfig
#
# USAGE:
# ${Service::QueryConfig} "NAME" /DISABLEFSR $0 $1
#
# ::QueryConfig = The service's binary path is returned.
# NAME = The Service name
# /DISABLEFSR = Disables redirection if x64. Use "" to skip.
# $0 ...
##=
#= Service::State
#
# USAGE:
# ${Service::State} "NAME" /DISABLEFSR $0 $1
#
# ::State = The service's status is returned.
# NAME = The Service name
# /DISABLEFSR = Disables redirection if x64. Use "" to skip.
# $0 = Return after call...
##=
#= Service::Start
#
# USAGE:
# ${Service::Start} "NAME" /DISABLEFSR $0 $1
#
# ::Start = Start a service.
# NAME = The Service name
# /DISABLEFSR = Disables redirection if x64. Use "" to skip.
# $0 = Return after call
# $1 ...
##=
#= Service::Stop
#
# USAGE:
# ${Service::Stop} "NAME" /DISABLEFSR $0 $1
#
# ::Stop = Sends a STOP control request to a service.
# NAME = The Service name
# /DISABLEFSR = Disables redirection if x64. Use "" to skip.
# $0 = Return aft...
##=
#= Service::Remove
#
# USAGE:
# ${Service::Remove} "NAME" /DISABLEFSR $0 $1
#
# ::Remove = Deletes a service entry from the registry.
# NAME = The Service name
# /DISABLEFSR = Disables redirection if x64. Use "" to skip.
# $0 = Return...