Commit Graph

85 Commits

Author SHA1 Message Date
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
Alexander Yaworsky 6a36f28f2a Pass argv[0] (service name) to the service program. 2004-09-16 20:27:31 +00:00
Alexander Yaworsky 8484d3fbae Proper finalization in StartServiceW. 2004-09-14 19:39:19 +00:00
Mike McCormack 7d3431ed1d Stub implementation for QueryServiceObjectSecurity. 2004-09-14 19:25:35 +00:00
Alexander Yaworsky 37180dd6d5 Implemented LockServiceDatabase and UnlockServiceDatabase. 2004-09-10 21:12:25 +00:00
Mike McCormack 8100e0eec2 Return the correct error when OpenService is called with a
non-existing service.
2004-09-06 20:28:32 +00:00
Hans Leidekker 411fc5f164 Fix signed/unsigned comparison warnings. 2004-09-02 23:00:53 +00:00
Alexander Yaworsky 7db2149f65 Implemented QueryServiceConfigA. 2004-09-01 17:29:00 +00:00
Alexander Yaworsky 871635c650 Expand ImagePath in QueryServiceConfigW. 2004-08-31 18:50:39 +00:00
Alexander Yaworsky 3ab2818948 Sanity check when closing service handle. 2004-08-31 17:32:05 +00:00
Alexander Yaworsky 5f115371ce Changed SC_HANDLEs from HKEYs to pointers to internal structures. 2004-08-30 23:57:03 +00:00
Alexander Yaworsky 968e252149 StartService must pass full command line to service program. 2004-08-26 18:10:01 +00:00
Aric Stewart 4a18630fef Let StartServiceCtrlDispatcher handle services not started by
StartService.
2004-08-17 22:29:01 +00:00
Jon Griffiths 50ce0844ba Documentation fixes. 2004-04-23 21:32:34 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Alexandre Julliard bea945eed9 OpenServiceW: don't use the requested service access rights for the
registry key access rights, they are not the same thing.
2004-04-12 22:18:39 +00:00
Aric Stewart 3dc71b65a7 Better handling of some service functions. 2003-12-13 03:25:37 +00:00
Huw Davies 28c2ea07ce Don't crash if lpDependencies is NULL. 2003-12-11 04:26:20 +00:00
Mike McCormack 9b513ad686 Stub implementations for ChangeServiceConfigA/W.
Implement CreateServiceW and call it from CreateServiceA.
Partial implementation of QueryServiceConfigW.
2003-12-02 03:48:53 +00:00
Alexandre Julliard b10dcfe3b9 Make sure we always use the same name for the semaphore (spotted by
Ben A L Jemmett).
2003-10-10 00:05:49 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Francois Gouget 9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Matthew Davison 620323e294 Removed some Unicode -> Ascii cross-calls. 2003-01-24 00:45:51 +00:00