Properly declare handles.
This commit is contained in:
parent
575c174d94
commit
bfa3077510
|
@ -895,7 +895,7 @@ SetServiceStatus( SERVICE_STATUS_HANDLE hService, LPSERVICE_STATUS lpStatus )
|
|||
service_data *service;
|
||||
BOOL r = TRUE;
|
||||
|
||||
TRACE("%lx %lx %lx %lx %lx %lx %lx %lx\n", hService,
|
||||
TRACE("%p %lx %lx %lx %lx %lx %lx %lx\n", hService,
|
||||
lpStatus->dwServiceType, lpStatus->dwCurrentState,
|
||||
lpStatus->dwControlsAccepted, lpStatus->dwWin32ExitCode,
|
||||
lpStatus->dwServiceSpecificExitCode, lpStatus->dwCheckPoint,
|
||||
|
@ -1511,7 +1511,7 @@ BOOL WINAPI StartServiceW(SC_HANDLE hService, DWORD dwNumServiceArgs,
|
|||
return r;
|
||||
}
|
||||
|
||||
hLock = LockServiceDatabase(hsvc->scm);
|
||||
hLock = LockServiceDatabase((SC_HANDLE)hsvc->scm);
|
||||
if (!hLock)
|
||||
return r;
|
||||
|
||||
|
@ -2224,7 +2224,7 @@ BOOL WINAPI SetServiceBits( SERVICE_STATUS_HANDLE hServiceStatus,
|
|||
BOOL bSetBitsOn,
|
||||
BOOL bUpdateImmediately)
|
||||
{
|
||||
FIXME("%08lx %08lx %x %x\n", hServiceStatus, dwServiceBits,
|
||||
FIXME("%p %08lx %x %x\n", hServiceStatus, dwServiceBits,
|
||||
bSetBitsOn, bUpdateImmediately);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -114,8 +114,9 @@ extern "C" {
|
|||
|
||||
/* Handle types */
|
||||
|
||||
typedef HANDLE SC_HANDLE, *LPSC_HANDLE;
|
||||
typedef DWORD SERVICE_STATUS_HANDLE;
|
||||
DECLARE_HANDLE(SC_HANDLE);
|
||||
typedef SC_HANDLE *LPSC_HANDLE;
|
||||
DECLARE_HANDLE(SERVICE_STATUS_HANDLE);
|
||||
typedef LPVOID SC_LOCK;
|
||||
|
||||
/* Service status structure */
|
||||
|
|
Loading…
Reference in New Issue