c++ - How can I output traffic information (IP, port, etc.) to a log file using Windows Filtering Platform and Windows Driver Development Kit? -


i working on driver using wdk monitor network traffic , output log file.

i trying modify inspect example given in winddk directory.

it seems can't call printf, fprintf, etc. because of linker error:

unresolved external symbol __imp_printf ...

is there way output traffic information log file? not linking library somewhere properly?

thank you

well writing kernelmode drivers have call dbgprint equivalent printf in c.

printf(format, params) -> dbgprint(format, params) 

you have use either windbg or dbgview tool view debug messages.

to dump file should first open file createfile function. once handle open , valid, can write using writefile function.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -