Skip to content

Commit

Permalink
Update service hook to support interactive option
Browse files Browse the repository at this point in the history
  • Loading branch information
d3x0r committed Dec 18, 2024
1 parent e2bbe83 commit 8aaabfc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/service_hook.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Interface to windows system interface. Provides entry points
to service system when service is initialized. This allows
user to specify code to run when service is triggered. */
/* Interface to windows system interface. Provides entry points
to service system when service is initialized. This allows
user to specify code to run when service is triggered. */
#ifndef SERVICE_HOOK_DEFINED
#define SERVICE_HOOK_DEFINED

Expand Down Expand Up @@ -44,7 +44,9 @@ SERVICE_EXPORT void SetupServiceThread( TEXTSTR name, uintptr_t (CPROC*Start)( P
SERVICE_EXPORT void ServiceInstall( CTEXTSTR ServiceName );

// install the current executable as a service of the specified name. (and starts the service)
SERVICE_EXPORT void ServiceInstallEx( CTEXTSTR ServiceName, CTEXTSTR description, CTEXTSTR extraArgs );
// options is
// 1 - interact with desktop
SERVICE_EXPORT void ServiceInstallEx( CTEXTSTR ServiceName, CTEXTSTR description, CTEXTSTR extraArgs, int opts );

// uninstall the current executable as a service of the specified name. (and stops the service)
SERVICE_EXPORT void ServiceUninstall( CTEXTSTR ServiceName );
Expand Down

0 comments on commit 8aaabfc

Please sign in to comment.