StartServiceA(3w)

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.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.