StartServiceA(3w)

NAME

StartServiceA (ADVAPI32.@)

SYNOPSIS

BOOL StartServiceA
 (
  SC_HANDLE hService,
  DWORD     dwNumServiceArgs,
  LPCSTR*   lpServiceArgVectors
 )

DESCRIPTION

Start a service.

PARAMS

hService [In] Handle of service.

dwNumServiceArgs [In] Number of arguments.

lpServiceArgVectors [In] Address of array of argument strings.

NOTES

- NT implements this function using an obscure RPC call.

- You might need to do a "setenv SystemRoot \WINNT" in your .cshrc to get things like "%SystemRoot%\System32\service.exe" to load.

- This will only work for shared address space. How should the service args be transferred when address spaces are separated?

- Can only start one service at a time.

- Has no concept of privilege.

RETURNS

Success: TRUE.

Failure: FALSE

IMPLEMENTATION

Defined in "winsvc.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/advapi32/service.c".

Debug channel "service".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout