StartServiceA3w
Usage
BOOL StartServiceA
(
SC_HANDLE hService,
DWORD dwNumServiceArgs,
LPCSTR* lpServiceArgVectors
)
Overview
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
Declared in "winsvc.h".
Implemented in "dlls/advapi32/service.c".
Debug channel "service".
Releases
4 releases since Debian 4.0 (Etch); the text changed 3 times.