10#define WIN32_NO_STATUS
34 PVOID pLoadLibraryAddress;
35 PVOID pLoadLibraryArgument;
50 DPRINT(
"File path has no file extension: %S\n", wszFilePath);
89 if (!pLoadLibraryAddress)
97 if (!pLoadLibraryArgument)
168 skip(
"ROSTESTS-366: Skipping localspl_apitest:service because it hangs on Windows Server 2003 x64-Testbot. Set winetest_interactive to run it anyway.\n");
static SERVICE_STATUS_HANDLE(WINAPI *pRegisterServiceCtrlHandlerExA)(LPCSTR
static SERVICE_STATUS ServiceStatus
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
BOOL NTAPI WriteProcessMemory(IN HANDLE hProcess, IN LPVOID lpBaseAddress, IN LPCVOID lpBuffer, IN SIZE_T nSize, OUT SIZE_T *lpNumberOfBytesWritten)
VOID WINAPI ExitProcess(IN UINT uExitCode)
HANDLE WINAPI OpenProcess(IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwProcessId)
HANDLE WINAPI CreateRemoteThread(IN HANDLE hProcess, IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
SERVICE_TABLE_ENTRYW ServiceTable[]
_In_ BOOL _In_ HANDLE hProcess
static void _DoDLLInjection()
static DWORD WINAPI _ServiceControlHandlerEx(DWORD dwControl, DWORD dwEventType, LPVOID lpEventData, LPVOID lpContext)
static void WINAPI _ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
#define PROCESS_ALL_ACCESS
#define UNREFERENCED_PARAMETER(P)
SERVICE_STATUS_HANDLE WINAPI RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName, LPHANDLER_FUNCTION_EX lpHandlerProc, LPVOID lpContext)
BOOL WINAPI StartServiceCtrlDispatcherW(const SERVICE_TABLE_ENTRYW *lpServiceStartTable)
BOOL WINAPI SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus, LPSERVICE_STATUS lpServiceStatus)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
int winetest_get_mainargs(char ***pargv)
DWORD dwServiceSpecificExitCode
WCHAR szExeFile[MAX_PATH]
#define TH32CS_SNAPPROCESS
LPVOID NTAPI VirtualAllocEx(IN HANDLE hProcess, IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flAllocationType, IN DWORD flProtect)
SERVICE_STATUS_HANDLE hServiceStatus
DWORD WINAPI GetLastError(void)
DWORD(WINAPI * LPTHREAD_START_ROUTINE)(LPVOID)
#define SERVICE_ACCEPT_STOP
#define SERVICE_ACCEPT_SHUTDOWN
#define SERVICE_WIN32_OWN_PROCESS