Commit Graph

225 Commits

Author SHA1 Message Date
Jacek Caban 52363aef65 advapi32: Pass service name as argv[0] to ServiceMain. 2012-06-15 18:35:42 +02:00
Alexander Morozov 6d6e6600ef advapi32: Regular program should not freeze forever if it calls StartServiceCtrlDispatcher. 2012-04-04 19:15:26 +02:00
Alistair Leslie-Hughes 77b9d58556 advapi32: Assign a default value (clang). 2012-03-16 13:02:51 +01:00
Piotr Caban e849691fcc advapi32: Send shutdown notification to services. 2011-11-30 16:34:05 +01:00
Piotr Caban e2172edca2 advapi32: Added support for SERVICE_CONFIG_PRESHUTDOWN_INFO. 2011-11-30 16:32:09 +01:00
Andrew Talbot 8a1539ac98 advapi32: Remove an unused variable. 2011-11-14 13:10:22 +01:00
Hans Leidekker dc46df47a4 advapi32: Make sure lpDisplayName is initialized in EnumServicesStatusA. 2011-06-10 10:56:48 +02:00
Alexandre Julliard ad4c995c3f advapi32: Always pass valid buffers in the EnumServicesStatus requests. 2011-06-09 23:42:41 +02:00
Alexandre Julliard 519fbf6202 advapi32: Fix the parameter checks in QueryServiceStatusEx. 2011-06-09 23:42:41 +02:00
Marcus Meissner 7810e231a8 advapi32: Mark some internal symbols as hidden. 2011-04-27 18:15:57 +02:00
André Hentschel c6682ef5dc advapi32: Print a FIXME also for the unknown levels. 2010-12-23 13:47:27 +01:00
Damian Dixon fd0bec1f96 advapi32: Added check for NULL pointer being passed to QueryServiceStatus for either parameter. 2010-12-21 16:56:00 +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
Mikhail Maroukhine 0490131783 advapi32: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:10:06 +02:00
Andrew Talbot c17cfbdc51 advapi32: Constify some variables. 2009-03-27 11:23:16 +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 b9587e69e4 advapi32: Trace the contents of the in parameter to GetServiceKeyNameW, not the out parameter. 2009-03-24 13:11:09 +01:00
Michael Stefaniuc 6a48bb4217 advapi32: Remove superfluous pointer casts. 2009-02-16 16:01:36 +01:00
Marcus Meissner 45a1269013 advapi32: Fixed NULL ptr deref in QueryServiceConfig2A (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
Alexandre Julliard 05a840dfc9 advapi32: Fix GetServiceDisplayNameW behavior to pass the tests. 2009-01-21 23:35:35 +01:00
Alexandre Julliard c795150932 advapi32: Fix GetServiceKeyNameW behavior to pass the tests. 2009-01-21 23:32:29 +01:00
Alexandre Julliard 540fe92842 advapi32: Get rid of the client-side service handle management. 2009-01-19 20:34:02 +01:00
Alexandre Julliard b608a43df7 advapi32: Reimplemented QueryServiceConfig2W in services.exe. 2009-01-19 20:34:02 +01:00
Maarten Lankhorst 768160e944 ntdll: Make all exported wine functions CDECL. 2008-12-17 15:02:25 +01:00
Alexandre Julliard 3249b40f70 advapi32: Reimplemented ChangeServiceConfig2W in services.exe. 2008-11-26 14:35:30 +01:00
Alexandre Julliard cd3805336e advapi32: Always pass a valid argv pointer to a service even if there are no arguments. 2008-09-25 11:19:39 +02:00
Paul Vriens ce64e0d055 advapi32: Prevent a crash when passing an allowed NULL parameter. 2008-08-22 11:32:09 +02:00
Andrew Talbot 414cdc0475 advapi32: Sign-compare warnings fix. 2008-07-23 13:54:17 +02:00
Dan Kegel 0161606b53 advapi32: Don't test buffer length if buffer is null. 2008-05-27 20:39:38 +02:00
Andrew Talbot cca1854e96 advapi32: Remove unused file-static variables. 2008-05-20 15:43:54 +02:00
Alexandre Julliard 33914a1bf4 services: Send the service name in the control requests.
Only start a single dispatcher thread for all services.
2008-05-08 18:08:41 +02:00
Alexandre Julliard ef07d83405 Include wine/port.h everywhere we use exceptions. 2008-04-29 20:18:49 +02:00
Marcus Meissner fbc236107d advapi32: Initialize hLock. 2008-04-18 13:57:15 +02:00
Rob Shearman fe7e786ace advapi32: Add exception handling around all service RPC calls. 2008-04-11 12:14:24 +02:00
Andrew Talbot 2ae8e87616 advapi32: Do not call MIDL_user_free() with pointer to stack memory. 2008-04-07 13:39:32 +02:00
Rob Shearman 9bc84d81df wineboot: Start services.exe on startup instead of on demand in the advapi32 services code. 2008-04-02 11:55:24 +02:00
Rob Shearman 9d834fc180 advapi32: Remove some unused services functions. 2008-04-01 19:11:09 +02:00
Alexandre Julliard 9bb129d17b advapi32: Silence the pipe read error in the normal case. 2008-03-31 17:26:07 +02:00
Rob Shearman b8348b95a6 services: Remove dependency on service name being determined correctly in order for the two ends on the control pipe to meet up.
Instead use the mechanism used by native which uses 
\\.\pipe\net\NtControlPipeN.

Also remove the service startup event set by StartServiceCtrlDispatcher 
as we wait for the service status to change instead.
2008-03-29 11:51:39 +01:00
Rob Shearman 9a6fc01d84 services: Move ControlService and StartServiceW from advapi32.dll to services.exe.
This also changes the architecture such that services.exe is the server 
end of the control pipe and the service is the client end.
2008-03-29 11:51:34 +01:00
Rob Shearman 7afd9a977a services: Move LockServiceDatabase and UnlockServiceDatabase from advapi32.dll to services.exe. 2008-03-29 11:51:01 +01:00
Rob Shearman b48714b148 services: Move SetServiceStatus and QueryServiceStatusEx to services.exe. 2008-03-29 11:50:57 +01:00
Mikołaj Zalewski 010dcb168b services: Move GetServiceDisplayName to services.exe and implement GetServiceKeyName. 2008-03-29 11:17:33 +01:00
Mikołaj Zalewski 76d4eeebff services: Move ChangeServiceConfigW implementation from advapi32.dll to services.exe. 2008-03-29 11:17:07 +01:00
Mikołaj Zalewski a363b9a066 services: Move QueryServiceConfigW from advapi32.dll to services.exe. 2008-03-29 11:16:43 +01:00
Mikołaj Zalewski a2156fc348 services: Move CreateService, OpenService and DeleteService implementations from advapi32.dll to services.exe. 2008-03-29 11:15:59 +01:00
Mikołaj Zalewski 4275fbf603 services: Start a local RPC server. 2008-03-29 11:15:05 +01:00
Austin English 06d429d6b6 Spelling fixes. 2008-03-27 20:48:19 +01:00