Commit 2c491feb authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Moved ToolHelpHook16 to kernel16.c, it's not a toolhelp function.

parent 9bf4de22
......@@ -106,6 +106,17 @@ LONG WINAPI KERNEL_nop(void)
return 0;
}
/***********************************************************************
* ToolHelpHook (KERNEL.341)
* see "Undocumented Windows"
*/
FARPROC16 WINAPI ToolHelpHook16(FARPROC16 func)
{
static FARPROC16 hook;
FIXME("(%p), stub.\n", func);
return InterlockedExchangePointer( (void **)&hook, func );
}
/* thunk for 16-bit CreateThread */
struct thread_args
......
......@@ -52,8 +52,6 @@ static struct notify
static int nrofnotifys = 0;
static FARPROC16 HookNotify = NULL;
/***********************************************************************
* TaskFindHandle (TOOLHELP.65)
......@@ -226,19 +224,3 @@ BOOL16 WINAPI SystemHeapInfo16( SYSHEAPINFO *pHeapInfo )
FreeLibrary16( gdi );
return TRUE;
}
/***********************************************************************
* ToolHelpHook (KERNEL.341)
* see "Undocumented Windows"
*/
FARPROC16 WINAPI ToolHelpHook16(FARPROC16 lpfnNotifyHandler)
{
FARPROC16 tmp;
FIXME("(%p), stub.\n", lpfnNotifyHandler);
tmp = HookNotify;
HookNotify = lpfnNotifyHandler;
/* just return previously installed notification function */
return tmp;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment