This question Receive Windows Messages in a Service addresses the problem I have, and advises against creating a wndProc to avoid Shatter Attacks. The problem is that I have a Windows application I want to convert to a service that uses Asynchronous Winsock, and therefore requires a wndProc to operate.
Given that I don't care about showing the window, will the following make it secure against shatter attacks? I copy the wndProc over as is, but replace the default handler (currently the call to DefWindowProc() ) with a simple return 0; .