mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 10:23:22 +00:00
- Implement QueueUserAPC.
svn path=/trunk/; revision=11919
This commit is contained in:
parent
5070bf0c61
commit
2cb4c8a744
|
@ -1,4 +1,4 @@
|
|||
/* $Id: thread.c,v 1.56 2004/11/02 21:51:25 weiden Exp $
|
||||
/* $Id: thread.c,v 1.57 2004/12/04 19:30:09 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -771,4 +771,27 @@ SetThreadUILanguage(DWORD Unknown1)
|
|||
DPRINT1("SetThreadUILanguage(0x%x) unimplemented!\n", Unknown1);
|
||||
}
|
||||
|
||||
static void CALLBACK
|
||||
IntCallUserApc(PVOID Function, PVOID dwData, PVOID Argument3)
|
||||
{
|
||||
PAPCFUNC pfnAPC = (PAPCFUNC)Function;
|
||||
pfnAPC((ULONG_PTR)dwData);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
DWORD STDCALL
|
||||
QueueUserAPC(PAPCFUNC pfnAPC, HANDLE hThread, ULONG_PTR dwData)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtQueueApcThread(hThread, IntCallUserApc, pfnAPC,
|
||||
(PVOID)dwData, NULL);
|
||||
if (Status)
|
||||
SetLastErrorByStatus(Status);
|
||||
|
||||
return NT_SUCCESS(Status);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue