Jacek Caban
cea783ddda
services: Fixed memory leak.
2012-10-09 16:12:30 +02:00
Jacek Caban
52363aef65
advapi32: Pass service name as argv[0] to ServiceMain.
2012-06-15 18:35:42 +02:00
Jacek Caban
d0244d761d
services.exe: Added tests.
2012-06-15 18:35:42 +02:00
Francois Gouget
fac36c55e9
Assorted typo, spelling, wording and case fixes.
2012-05-15 16:26:43 +02:00
André Hentschel
e7f414556e
services: Remove unneeded shadow variable.
2012-04-18 17:13:26 +02:00
Alexandre Julliard
154aef98d8
services: Don't close the overlapped event when terminating a service.
...
An overlapping I/O operation may still be in progress.
2012-02-08 13:19:04 -06:00
Alexandre Julliard
c9eee73450
makefiles: Define __WINESRC__ when building programs.
2012-01-23 16:07:37 +01:00
Alexandre Julliard
da35622b83
makefiles: Disable use of Unicode macros globally for all the programs.
2012-01-20 13:14:16 +01:00
Piotr Caban
c21ede4474
services: Terminate service when its status is set to SERVICE_STOPPED.
2011-12-12 15:50:41 +01:00
Piotr Caban
01ef66cb1e
services: Move service cleanup code to separate function.
2011-12-12 15:50:40 +01:00
Piotr Caban
bc866c899f
services: Don't close control_pipe when SERVICE_CONTROL_STOP is sent.
...
This prevents service_control_dispatcher from being stopped. Thanks to
it the service may continue to work and do the clean up.
2011-12-12 15:50:40 +01:00
Piotr Caban
b9797b5caa
services: Check process status to determine if service has terminated.
2011-12-12 15:50:39 +01:00
Piotr Caban
c11e163eb7
services: Fix SERVICE_STATUS initialization in svcctl_ControlService.
2011-12-12 15:50:39 +01:00
Piotr Caban
c368e55196
services: Set result inside service_send_command.
2011-12-09 21:15:30 +01:00
Piotr Caban
8e915c51e1
services: Accept SERVICE_START_PENDING as valid service start status.
2011-12-09 21:15:29 +01:00
Piotr Caban
60a273569c
services: Wait for all services to terminate before exiting.
2011-11-30 16:32:17 +01:00
Piotr Caban
b8704a4929
services: Added support for SERVICE_CONFIG_PRESHUTDOWN_INFO.
2011-11-30 16:31:47 +01:00
Piotr Caban
8141fb80eb
services: Create service environment when first service is started.
2011-11-15 19:37:33 +01:00
Francois Gouget
97ab9cc7e5
services: Give a name to the scmdatabase critical section.
2011-10-27 14:20:51 +02:00
Francois Gouget
d494733353
services: Issue a fixme when a service fails to start.
2011-09-08 20:08:06 +02:00
Francois Gouget
fe3f2e3258
services: If a service is not started, then say so when ControlService() is called on it.
2011-08-30 11:47:37 +02:00
Francois Gouget
eafb44d4e1
services: Refuse to start disabled services.
2011-08-30 11:47:35 +02:00
Francois Gouget
9183a171f1
services: Cleanup when a service fails to start so it is still fully considered to be stopped.
2011-08-30 11:47:32 +02:00
Alexandre Julliard
717bd66440
widl: Default to the cdecl calling convention in client/server functions.
2011-06-13 11:53:28 +02:00
Alexandre Julliard
f51668fdf9
services: Add a timeout to all pipe communications with the service process.
2011-05-20 12:34:39 +02:00
Alexandre Julliard
c9dc9a1063
services: Load some timeout parameters from the registry.
2011-05-20 12:33:58 +02:00
Alexandre Julliard
0c1c1fc20d
services: Add a helper function to send a command to the service.
2011-05-20 12:32:32 +02:00
Eric Pouech
0b9ddd1ce4
services: Be sure to unlock the current database in all error cases in service_start_process.
2011-04-25 11:38:44 +02:00
Francois Gouget
ba3542bca7
services: Make find_service_by_group() static.
2011-03-16 14:14:23 +01:00
André Hentschel
7abdbe62d1
services: Mention the unkown type in the error message.
2010-11-02 11:16:32 +01:00
Hans Leidekker
7135ac7641
advapi32: Implement EnumServicesStatusExA/W.
2010-10-29 14:33:57 +02:00
Hans Leidekker
ae7d41bfa2
advapi32: Implement EnumServicesStatusA/W.
2010-10-27 13:31:04 +02:00
Hans Leidekker
e01455d41d
services: Support setting and changing service dependencies.
2010-10-22 12:06:24 +02:00
Hans Leidekker
eae2cf56cb
services: Save service dependencies.
2010-10-22 12:06:15 +02:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Alexandre Julliard
6fb39dfe4a
programs: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:37 +02:00
Alexandre Julliard
3f6f036b4d
services: Start the 32-bit winedevice.exe for 32-bit kernel drivers.
2010-06-01 13:38:21 +02:00
Mikhail Maroukhine
93d9d8a3af
programs: Fix compiler warnings with flag -Wcast-qual.
2010-03-29 12:18:48 +02:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00
Paul Chitescu
910b191574
services.exe: Reduce Registry access to KEY_READ or MAXIMUM_ALLOWED wherever possible.
2009-12-07 14:51:05 +01:00
Eric Pouech
7cdf3389dd
services: Correctly store the service's PID upon startup.
2009-08-29 17:11:19 +02:00
Paul Chitescu
8fd619618f
services.exe: When asked to search by display name skip NULL names.
2009-07-01 14:53:13 +02:00
Paul Vriens
76c0babdcf
services: Fix a typo.
2009-04-29 13:08:45 +02:00
Rob Shearman
286dc62e34
services: Always initialise the out buffer in svcctl_QueryServiceStatusEx and svcctl_QueryServiceConfig2W.
2009-03-24 13:11:53 +01:00
Rob Shearman
1c89dacf9c
services: svcctl_GetServiceDisplayNameW and svcctl_GetServiceKeyNameW should have string attribute on output buffer.
...
They also should not have two parameters for specifying the size of the buffer.
The buffer size should also not include in the nul-terminating character.
2009-03-24 13:11:41 +01:00
Rob Shearman
8f07e6932b
services: Add a ref count to the service entry in svcctl_CreateServiceW.
...
The ref count will be released by SC_RPC_HANDLE_destroy when the
returned handle is destroyed.
Change svcctl_OpenServiceW to use InterlockedIncrement to increment
the ref count since the service is in the database and therefore could
be shared and SC_RPC_HANDLE_destroy doesn't take the scmdatabase lock
when decrementing the ref count.
2009-03-24 13:10:57 +01:00
Marcus Meissner
2c7ac13662
services: Handle realloc failures better (Coverity).
2009-02-02 15:21:43 +01:00
Rob Shearman
d3085abc08
Change parameter type from size_t to SIZE_T for MIDL_user_allocate.
2009-02-02 11:55:21 +01:00
Michael Stefaniuc
24c4f1de95
services: Remove superfluous pointer casts.
2009-01-29 14:06:11 +01:00
Alexandre Julliard
746948551a
services: Add stub implementation for SERVICE_CONFIG_FAILURE_ACTIONS in ChangeServiceConfig2W.
2009-01-27 11:27:45 +01:00