Skip to content

Commit 50f6b9f

Browse files
committed
Add some notes to RunAsSvc.
1 parent 6620399 commit 50f6b9f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

RunAsSvc/RunAsSvc.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@
1010

1111
#include <Mile.Helpers.CppBase.h>
1212

13+
// RunAsSvc Install [ServiceName] [Options]
14+
// RunAsSvc Uninstall [ServiceName]
15+
// RunAsSvc Start [ServiceName]
16+
// RunAsSvc Stop [ServiceName]
17+
// RunAsSvc Enable [ServiceName]
18+
// RunAsSvc Disable [ServiceName]
19+
20+
// Private
21+
// RunAsSvc Instance [ServiceName]
22+
23+
// HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\[ServiceName]
24+
// HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services[ServiceName]\RunAsSvc
25+
// - REG_SZ: ApplicationName
26+
// - REG_SZ: CommandLine
27+
// - REG_SZ: CurrentDirectory
28+
// - REG_MULTI_SZ: EnvironmentVariables
29+
// - REG_DWORD: TerminateChildProcessesOnServiceStop
30+
// - REG_DWORD: RestartOnApplicationExit
31+
// - REG_DWORD: GracefulTerminationTimeout
32+
// - REG_SZ: StandardOutputRedirectFilePath
33+
// - REG_SZ: StandardErrorRedirectFilePath
34+
1335
int main()
1436
{
1537
std::wprintf(L"Hello World! - RunAsSvc");

0 commit comments

Comments
 (0)