I need to log the information found in JOB_INFO_2 and DEVMODE structs for
each print job to a SQL database, before they are sent to the printer via LPR
or RAW(port 9100). I may even need to delete print jobs that contain certain
undesired information (such as too high of a copy count) before they are sent
to the printer. I believe this could be accomplished by writing a custom
port monitor. However, I have never done this before. I found the Local
port monitor source code in the src\print\monitors\localmon and
src\print\monitors\localui directories of the Windows 2003 Server DDK. Does
anyone know where I can get source code for either the Standard TCP/IP port
monitor or the LPR port monitor?