Hi, everyone.
How to redirect registry key in registry callback?
I use RegEdit to test, OS environment is WIN7.
For example: redirect \\REGISTRY\\MACHINE\\SOFTWARE\\1111 to \\REGISTRY\\MACHINE\\SOFTWARE\\2222. These two keys are already exists.
I try to filter RegNtPreCreateKeyEx and RegNtPreOpenKeyEx, I can catch the call, but I cannot change the result.
1.Modify CompleteName and RootObject in PreInfo: no effect.
2.Use ZwCreateKey/ZwOpenKey to operate redirection key with original parameters, modify *ResultObject(convert handle to object by ObReferenceObjectByHandle), GrantedAccess and *Disposition(for RegNtPreOpenKeyEx only) after call: RegEdit cannot open the target key. No redirect effect.
How to redirect registry key in registry callback?
I use RegEdit to test, OS environment is WIN7.
For example: redirect \\REGISTRY\\MACHINE\\SOFTWARE\\1111 to \\REGISTRY\\MACHINE\\SOFTWARE\\2222. These two keys are already exists.
I try to filter RegNtPreCreateKeyEx and RegNtPreOpenKeyEx, I can catch the call, but I cannot change the result.
1.Modify CompleteName and RootObject in PreInfo: no effect.
2.Use ZwCreateKey/ZwOpenKey to operate redirection key with original parameters, modify *ResultObject(convert handle to object by ObReferenceObjectByHandle), GrantedAccess and *Disposition(for RegNtPreOpenKeyEx only) after call: RegEdit cannot open the target key. No redirect effect.