Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!jjmhome!banyan!miked From: miked@banyan.UUCP (Mike Deem@Eng@Banyan) Newsgroups: comp.windows.ms.programmer Subject: Re: How can I access the backround (root) window? Message-ID: <1161@banyan.UUCP> Date: 19 Dec 90 17:25:28 GMT References: <7734@umd5.umd.edu> Reply-To: miked@banyan.UUCP (Mike Deem@Eng@Banyan) Organization: Banyan Systems, Inc. Lines: 8 In article <7734@umd5.umd.edu> dzoey@terminus.umd.edu (Joe Herman) writes: > Here's what I do: > rootfunc = (FARPROC) GetWindowLong (backwin, GWL_WNDPROC); > SetWindowLong (backwin, GWL_WNDPROC, (LONG) ProcessRootMsgs); You need to add your ProcessRootMsgs function to your EXPORTS section of your .DEF file. You should also use a pointer to your function returned by MakeProcInstance as the parameter to SetWindowLong.