Windows Callback

Blitz3D Forums/Blitz3D Userlibs/Windows Callback

Does anyone know if it's possible to set the Callback function of the B3D window.

I think the command in c++ is :-

LONG SetWindowLong(
HWND hWnd,
int nIndex,
LONG dwNewLong
);

nIndex = GWL_WNDPROC - Sets a new address for the window procedure.
dwNewLong = Address of new function.

Basically I want to direct the callback to a new WindowProc and analyze/react-to different windows events.

Hope someone can help.