ControlService(3w)

ControlService3w

Usage

BOOL ControlService
(
SC_HANDLE hService,
DWORD dwControl,
LPSERVICE_STATUS lpServiceStatus
)

Overview

Send a control code to a service.

Params

hService [In] Handle of the service control manager database.

dwControl [In] Control code to send (SERVICE_CONTROL_* flags from "winsvc.h").

lpServiceStatus [Out] Destination for the status of the service, if available.

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

Bugs

Unlike M$' implementation, control requests are not serialized and may be processed asynchronously.

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