How can I get the Wireshark install directory from within a wireshark dissector? My dissector relies on some external libraries and I would like to avoid hard coding "C:Program FilesWiresharkPluginsFooDebendancies" Thank you for your time, Brandon |
You can use one of the routines in epan/filesystem.c, for example get_plugin_dir(). Not that you should normally be doing any such thing in a dissector... include <epan/filesystem.c>
Causes linker errors, specifically:
(26 Jul '11, 12:56)
officialhopsof
error LNK2019: unresolved external symbol _ws_stdio_mkdir referenced in function _create_persconffile_profile But this appears like it's what I want.
(26 Jul '11, 12:56)
officialhopsof
Oh! That was a typo I didn't spot! Thanks!
(26 Jul '11, 13:24)
officialhopsof
|