From 54b33cfbebf5dd318de445a69ee6aa84d0a70a58 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Mon, 30 Nov 1998 17:41:17 +0000 Subject: [PATCH] Stubs for EnumServiceStatus32, small changes. --- relay32/advapi32.spec | 8 ++++---- win32/advapi.c | 20 ++++++++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/relay32/advapi32.spec b/relay32/advapi32.spec index 188f0545ea4..c42e52f110f 100644 --- a/relay32/advapi32.spec +++ b/relay32/advapi32.spec @@ -29,8 +29,8 @@ type win32 0025 stub CreatePrivateObjectSecurity 0026 stub CreateProcessAsUserA 0027 stub CreateProcessAsUserW -0028 stdcall CreateServiceA(long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateServiceA -0029 stub CreateServiceW +0028 stdcall CreateServiceA(long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateService32A +0029 stdcall CreateServiceW (long ptr ptr long long long long ptr ptr ptr ptr ptr ptr) CreateService32A 0030 stub DeleteAce 0031 stdcall DeleteService(long) DeleteService 0032 stdcall DeregisterEventSource(long) DeregisterEventSource @@ -38,8 +38,8 @@ type win32 0034 stub DuplicateToken 0035 stub EnumDependentServicesA 0036 stub EnumDependentServicesW -0037 stub EnumServicesStatusA -0038 stub EnumServicesStatusW +0037 stdcall EnumServicesStatusA (long long long ptr long ptr ptr ptr) EnumServicesStatus32A +0038 stdcall EnumServicesStatusW (long long long ptr long ptr ptr ptr) EnumServicesStatus32A 0039 stdcall EqualPrefixSid(ptr ptr) EqualPrefixSid 0040 stdcall EqualSid(ptr ptr) EqualSid 0041 stub FindFirstFreeAce diff --git a/win32/advapi.c b/win32/advapi.c index a0529e49cdd..f66f16ea5e5 100644 --- a/win32/advapi.c +++ b/win32/advapi.c @@ -11,7 +11,19 @@ #include "shell.h" #include "heap.h" #include "debug.h" - +/*********************************************************************** + * EnumServicesStatus32A [ADVAPI32.37] + */ +BOOL32 WINAPI EnumServicesStatus32A( HANDLE32 hSCManager, DWORD dwServiceType, + DWORD dwServiceState, LPVOID lpServices, + DWORD cbBufSize, LPDWORD pcbBytesNeeded, + LPDWORD lpServicesReturned, LPDWORD lpResumeHandle) +{ FIXME (advapi,"%x type=%lx state=%lx %p %lx %p %p %p\n", hSCManager, + dwServiceType, dwServiceState, lpServices, cbBufSize, + pcbBytesNeeded, lpServicesReturned, lpResumeHandle); + SetLastError (ERROR_ACCESS_DENIED); + return 0; +} /*********************************************************************** * StartServiceCtrlDispatcherA [ADVAPI32.196] */ @@ -169,7 +181,7 @@ BOOL32 WINAPI GetTokenInformation( */ HANDLE32 WINAPI OpenSCManager32A( LPCSTR lpMachineName, LPCSTR lpDatabaseName, DWORD dwDesiredAccess ) -{ +{ LPWSTR lpMachineNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpMachineName); LPWSTR lpDatabaseNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpDatabaseName); DWORD ret = OpenSCManager32W(lpMachineNameW,lpDatabaseNameW, @@ -343,9 +355,9 @@ HANDLE32 WINAPI OpenService32W( HANDLE32 hSCManager, LPCWSTR lpServiceName, /****************************************************************************** - * CreateServiceA [ADVAPI32.28] + * CreateService32A [ADVAPI32.28] */ -DWORD WINAPI CreateServiceA( DWORD hSCManager, LPCSTR lpServiceName, +DWORD WINAPI CreateService32A( DWORD hSCManager, LPCSTR lpServiceName, LPCSTR lpDisplayName, DWORD dwDesiredAccess, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCSTR lpBinaryPathName,