StartServiceA (ADVAPI32.@)
BOOL StartServiceA ( SC_HANDLE hService, DWORD dwNumServiceArgs, LPCSTR* lpServiceArgVectors )
Start a service.
hService | [In] | Handle of service. |
dwNumServiceArgs | [In] | Number of arguments. |
lpServiceArgVectors | [In] | Address of array of argument strings. |
- 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.
Success: TRUE.
Failure: FALSE
Defined in "winsvc.h".
Implemented in "dlls/advapi32/service.c". source.winehq.org/source/dlls/advapi32/service.c
Debug channel "advapi".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jan 2008.