Commit Graph

107 Commits

Author SHA1 Message Date
Alexandre Julliard 6a9222fc39 Fixed some printf warnings caused by using sizeof. 2006-10-12 14:58:25 +02:00
James Hawkins ca118989f4 advapi32: Remove redundant NULL check before SERV_free (found by Smatch). 2006-10-06 15:20:31 +02:00
Hans Leidekker 4301816d47 advapi32: Win64 printf format warning fixes. 2006-10-03 16:21:58 +02:00
Robert Shearman cc5aceb4f0 advapi32: Fix the service function being called when extended is
either set or not set (reported by Andrey Turkin).
2006-07-05 11:44:27 +02:00
Robert Shearman 19d4378a54 advapi32: Implement RegisterServiceCtrlHandleExW. 2006-07-03 11:33:13 +02:00
Alexandre Julliard 553bb2591f advapi32: Don't use sizeof in traces to avoid printf format warnings. 2006-06-13 14:09:02 +02:00
Alexandre Julliard 7bbc1d68c5 advapi32: Make some variables static and/or const. 2006-06-12 13:41:15 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack a8b71c2727 advapi32: If we can't connect to a service's pipe, name the service in
the error message.
2006-01-10 12:10:34 +01:00
Vitaliy Margolen e74bda9d95 advapi32: Don't allocate memory for empty argument string and pass
NULL instead.
2006-01-03 12:05:32 +01:00
Rob Shearman 01a4245a51 Don't try waiting for the service process to start if the
CreateProcess call failed.
2005-11-21 12:00:16 +00:00
Markus Amsler d45811ce2a Improve c2man Documented-Total count. 2005-11-04 11:43:27 +00:00
Hans Leidekker d7161472fc Added stub for RegisterServiceCtrlHandlerEx{A,W}. 2005-11-03 09:53:27 +00:00
Rein Klazes c16e70587a - Set the LastError in OpenSCManager in case of errors;
- Accept machine names without a '\\' prefix in OpenSCManager and
  RegConnectRegistry.
- Add a regression test for that.
2005-09-15 09:31:05 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Mike McCormack 280bcf6e4a Fix gcc 4.0 warnings. 2005-08-27 10:00:38 +00:00
Kevin Koltzau bfa3077510 Properly declare handles. 2005-08-23 09:32:39 +00:00
Mike McCormack d7b9a23afd gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-06 19:08:05 +00:00
Mike McCormack 74b37280b3 Silence some -Wmissing-declarations warnings. 2005-06-13 10:00:37 +00:00
Troy Rollo 8bf4d76681 Correct test of BOOL return value in ControlService. 2005-04-19 10:24:22 +00:00
Mike McCormack ddf74e6798 Implement ChangeServiceConfig. 2005-03-29 19:51:40 +00:00
Alexander Yaworsky 401d4cf42a Correct incorrect use of arguments to QueryServiceConfigA. Spotted by
Troy Rollo.
2005-03-10 11:14:04 +00:00
Troy Rollo 4021f530d7 Return an empty string for service dependencies when there are no
dependencies, rather than a NULL pointer, which causes some apps to
SEGV.
2005-03-04 12:32:50 +00:00
Troy Rollo 74e2cfb66c Correct incorrect use of arguments to QueryServiceConfigW. 2005-03-04 10:47:41 +00:00
Mike McCormack 81ed8be90d Convert services to use pipes for RPC instead of shared memory. 2005-01-24 19:33:43 +00:00
Mike McCormack 939179d681 Fix, add and rearrange winsvc.h declarations. 2005-01-14 16:50:57 +00:00
Mike McCormack c3ead97b4e Move all service stubs together, make them consistent. 2005-01-14 16:20:41 +00:00
Mike McCormack 1afd5f68f8 Cleanup service handles. 2005-01-14 15:13:40 +00:00
Hans Leidekker 0cc2031409 Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 17:12:51 +00:00
Mike McCormack 816f86560e Fix CreateService's error code for a service that already exists. 2004-12-27 17:44:47 +00:00
Mike McCormack 1645ab0492 Don't use RtlCreateUnicodeStringFromAsciiz, it doesn't preserve NULL. 2004-12-27 17:10:31 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Ivan Leo Puoti a329904a3f In OpenSCManagerW() allow lpDatabaseName to be an empty string. 2004-12-21 16:05:28 +00:00
Alexander Yaworsky e849a56673 Check service database name in OpenSCManager(). 2004-12-09 16:52:10 +00:00
Alexander Yaworsky 9087fb2000 Notify StartService when service control dispatcher has been
started. Otherwise StartService terminates service process.
2004-12-08 14:01:26 +00:00
Alexander Yaworsky e2b9000b84 Implemented RegisterServiceCtrlHandler, ControlService. 2004-12-07 14:24:58 +00:00
Mike McCormack 4bda758157 Stub implementations for DecryptFile, EncryptFile and
GetServiceDisplayName.
2004-12-06 16:17:08 +00:00
Alexander Yaworsky bb1466e861 Implemented SetServiceStatus, QueryServiceStatus. 2004-12-06 11:35:22 +00:00
Alexander Yaworsky e6985ab3a5 Basic implementation of service control dispatcher. 2004-12-02 19:51:41 +00:00
Alexander Yaworsky 78b64795d7 Introduced service thread. 2004-12-01 15:31:34 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Alexander Yaworsky 8109cfd443 Merge Unicode and ASCII versions of StartServiceCtrlDispatcher.
Implement StartServiceCtrlDispatcherA on the top of
StartServiceCtrlDispatcherW.
Get rid of HEAP_strdupWtoA.
2004-11-30 17:29:03 +00:00
Alexander Yaworsky 970a877995 Move up SERV_* functions. 2004-11-21 15:50:08 +00:00
Jason Edmeades d80247ef67 - Stub SetServiceObjectSecurity to pretend to work (return true).
- Change QueryServiceObjectSecurity so it initializes the ACL with a
  null DACL, and return as though it worked.
- Changed QueryServiceStatus to tell if the service is running by the
  presence of some named shared storage - copied from StartService when
  it checks to see if its already running.
2004-11-10 01:31:39 +00:00
Juan Lang 0fca5acba8 - implement LookupPrivilegeName
- correct LookupPrivilegeValue (had a buffer overrun and sometimes
  returned incorrect LUIDs for well-known values)
- make AllocateLocallyUniqueId less obviously incorrect
- add a bunch of test cases
2004-11-04 04:52:17 +00:00
Mike McCormack 5bc8077511 Implement ChangeServiceConfig2A using ChangeServiceConfig2W. 2004-10-21 20:57:09 +00:00
Mike McCormack 2e82a0965b Implement ChangeServiceConfigA using ChangeServiceConfigW. 2004-10-21 19:51:53 +00:00
Alexander Yaworsky d9c9bfd779 Start only first service in the service table. 2004-09-27 20:35:27 +00:00
Alexander Yaworsky 31ec065bfd Restructured code of StartServiceCtrlDispatcherA/W. 2004-09-25 00:28:42 +00:00
Alexander Yaworsky 9d590d5059 Pass arguments to the service program. 2004-09-21 00:23:32 +00:00