Please help

I previously used SetWindowsWord to create a tool window that floated over my main window but not other program windows.

This doesn't seem to work in Windows XP!!

Has anybody else come across this? or am i being stupid

An overview of the code

Declaration :

Public Declare Function SetWindowWord Lib "user32" Alias "SetWindowWord" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As Long

Public Const GWL_HWNDPARENT = (-8)

Code Use :

Setwindowword thiswin.hwnd, GWL_HWNDPARENT, Parent.hwnd


I'm sure this worked in Win98 but seem to have no effect in WinXP