diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index e852f5e5442..3523e801b31 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -221,7 +221,7 @@ @ stdcall CreatePipe(ptr ptr ptr long) @ stdcall CreateProcessA(str str ptr ptr long long ptr str ptr ptr) @ stdcall CreateProcessW(wstr wstr ptr ptr long long ptr wstr ptr ptr) -@ stub CreateRemoteThread +@ stdcall CreateRemoteThread(long ptr long ptr long long ptr) @ stdcall CreateSemaphoreA(ptr long long str) @ stdcall CreateSemaphoreW(ptr long long wstr) @ stdcall CreateSocketHandle() diff --git a/dlls/kernel/thread.c b/dlls/kernel/thread.c index ee8fffed7c6..128032a218b 100644 --- a/dlls/kernel/thread.c +++ b/dlls/kernel/thread.c @@ -157,6 +157,31 @@ HANDLE WINAPI CreateThread( SECURITY_ATTRIBUTES *sa, SIZE_T stack, } +/*************************************************************************** + * CreateRemoteThread (KERNEL32.@) + * + * Creates a thread that runs in the address space of another process + * + * PARAMS + * + * RETURNS + * Success: Handle to the new thread. + * Failure: NULL. Use GetLastError() to find the error cause. + * + * BUGS + * Unimplemented + */ +HANDLE WINAPI CreateRemoteThread( HANDLE hProcess, SECURITY_ATTRIBUTES *sa, SIZE_T stack, + LPTHREAD_START_ROUTINE start, LPVOID param, + DWORD flags, LPDWORD id ) +{ + FIXME("(): stub, Write Me.\n"); + + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; +} + + /*********************************************************************** * OpenThread [KERNEL32.@] Retrieves a handle to a thread from its thread id */