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

oldstable
Alexandre Julliard 2009-09-28 19:57:56 +02:00
parent 9bf4de22f4
commit 2c491feb4b
2 changed files with 11 additions and 18 deletions

View File

@ -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

View File

@ -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;
}