nasiroudin
nasiroudin

Reputation: 337

Monitor registry using C++

I want to monitor when a key is changed/added/deleted to the registry whenever application is being installed or removed. I have tested the sample code from the msdn(link) and it works fine.

But the problem is that it does not tell me which key has actually been modified/added/deleted. How can i retrieve this information using c++?

Upvotes: 3

Views: 3952

Answers (2)

Alexander Poliusuk
Alexander Poliusuk

Reputation: 1

Unfortunately Event Tracing for Windows (EWT) does not allow to see full key path in the event. You get only a partial key name and a strange handle with is actually a key control block. It's not so simple to get information from this block. Yes the process monitor uses EWT, but it does not use Windows Kernel Trace as a provider.

Upvotes: 0

user541686
user541686

Reputation: 210402

There are only 3 ways, none of which is both easy and adequate:

Upvotes: 7

Related Questions