Here's what the W2K DDK gives you as a source code sample:

Windows 2000 DDK Network Drivers Part 5 Hook Drivers

If that link is broken, try the OSR-hosted preliminary online XP DDK docs here:

Filter-Hook Driver Reference
 

If this leaves you wishing that you had a little bit more information, read the release notes and then try downloading the sample application.