39 SC_HANDLE scm, service;
46 ERR(
"failed to open service manager\n" );
51 ERR(
"failed to open themes service\n" );
59 ERR(
"QueryServiceStatusEx failed\n");
129 SC_HANDLE scm, service;
138 ERR(
"failed to open service manager\n" );
143 ERR(
"failed to open themes service\n" );
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
DWORD WINAPI GetTickCount(VOID)
SC_HANDLE WINAPI OpenSCManagerW(LPCWSTR lpMachineName, LPCWSTR lpDatabaseName, DWORD dwDesiredAccess)
BOOL WINAPI QueryServiceStatusEx(SC_HANDLE hService, SC_STATUS_TYPE InfoLevel, LPBYTE lpBuffer, DWORD cbBufSize, LPDWORD pcbBytesNeeded)
SC_HANDLE WINAPI OpenServiceW(SC_HANDLE hSCManager, LPCWSTR lpServiceName, DWORD dwDesiredAccess)
BOOL WINAPI CloseServiceHandle(SC_HANDLE hSCObject)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
BOOL WINAPI DECLSPEC_HOTPATCH ResetEvent(IN HANDLE hEvent)
BOOL WINAPI RegisterWaitForSingleObject(OUT PHANDLE phNewWaitObject, IN HANDLE hObject, IN WAITORTIMERCALLBACK Callback, IN PVOID Context, IN ULONG dwMilliseconds, IN ULONG dwFlags)
BOOL WINAPI UnregisterWait(IN HANDLE WaitHandle)
BOOL WINAPI ThemeHooksRemove()
BOOL WINAPI ThemeHooksInstall()
static WCHAR ServiceName[]
static VOID CALLBACK ThemeServiceDiedCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
static HANDLE GetThemeServiceProcessHandle(VOID)
static VOID CALLBACK ThemeStartCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
DWORD WINAPI ThemeWaitForServiceReady(DWORD dwTimeout)
HANDLE hThemeStartWaitObject
HANDLE hThemeServiceWaitObject
static VOID CALLBACK ThemeStopCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired)
BOOL WINAPI ThemeWatchForStart(VOID)
HANDLE hThemeStopWaitObject
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
#define WT_EXECUTEONLYONCE
#define SERVICE_QUERY_STATUS
#define SERVICE_START_PENDING