 |
StartService ..msdn Add comment W32 Constants Translate this page |
 |
 |
The StartService function starts a service.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL StartService(
SC_HANDLE hService,
DWORD dwNumServiceArgs,
LPCTSTR* lpServiceArgVectors
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER StartService IN advapi32;
INTEGER hService,;
LONG dwNumServiceArgs,;
INTEGER lpServiceArgVectors
|
 |
 |
 |
| Parameters: |
 |
hService
[in] Handle to the service. This handle is returned by the OpenService or CreateService function, and it must have the SERVICE_START access right.
dwNumServiceArgs
[in] Number of strings in the lpServiceArgVectors array. If lpServiceArgVectors is NULL, this parameter can be zero.
lpServiceArgVectors
[in] Pointer to an array of pointers to null-terminated strings to be passed to a service as arguments. |
 |
 |
| Return value: |
 |
If the function succeeds, the return value is nonzero.
|
 |
 |
| My comment: |
 |
A call to the StartService function to start a service in a locked database fails.
See also: ControlService, CreateService, OpenService, UnlockServiceDatabase. |
 |
 |
| Word Index links for the StartService : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-12-15 12:08:14 | | Modified: | 2004-12-15 12:13:12 | Visited in last 7 days: 12 |