Answer the question
In order to leave comments, you need to log in
WinEvent Logs and QFileSystemWatcher?
I'm trying to add Windows7 event log files to QFileSystemWatcher. However, when added, addPath() throws false.
qDebug() << m_watcher->addPath("C:/Windows/System32/winevt/Logs/Application.evtx"); // false
qDebug() << m_watcher->addPath("C:/Windows/System32/winevt"); // false
Reasons for a watch failure are generally system-dependent, but may include the resource not existing, access failures, or the total watch count limit, if the platform has one.
Answer the question
In order to leave comments, you need to log in
Found a solution .
If you add it through the Sysnative folder as described in the post (see link above), then everything works.
Thanks
Open the file manager through the call "with administrator rights"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question