3

I am trying to add ETW tracing to a DLL (written in C++) I have created. I am using the manifest-based method.

Tracing is working, but it appears I need to set the "Decoding File Locations" in the manifest to an absolute path before building the DLL.

The DLL could be deployed anywhere though, so the decoding path varies depending on the user's installation.

Is there a way around this at all?

Thanks.

jamesd
  • 45
  • 5

1 Answers1

3

When installing the provider, be sure to set the switches /resourceFilePath and /messageFilePath to the path of your DLL. This will override the decoding file locations specified in the manifest that the DLL was built with.

e.g.:

wevtutil.exe /resourceFilePath:path_to_DLL /messageFilePath:path_to_DLL im path_to_manifest
valiano
  • 16,433
  • 7
  • 64
  • 79
emersond
  • 46
  • 1