c++ - How can I find the InternetRegistry User Key or Parent Registry Key -


I have a BHO which is collecting activation information on the first run and stores it in the registry.

(I think) I'm only able to store it in the registry branch due to IE's permission

HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ InternetRegistry \ REGISTRY \ USER \ S-0-0 -00-000000000-000000000-000000000-0000 \ Software \ MyBHO \ MyKey

Where is 0-0-00-000000000-000000000-000000000-0000 There is a unique key for each user.

With RegCreateKey () using "Software \ MyBHO \ MyKey" is okay. It's all made and lovable

Problem:

When I uninstall, I want to remove this key and as it Runs out of IE, I have no way of determining what that key / user string is.

I have the option:

Option 1 (Ideal) First find the string of this user, then make a new path for that key I want to remove it and want to remove it. how?

Option 2 The key path can be accessed in another registry value at the point of activation store. Then read, and remove both (which looks a bit backwards and probably does not work due to the BHO access restrictions on the registry (thus it is being written in the first place))

Do you know

edit on constant research I have found that the "user key" that I am mentioning is the current user "SID" Will give

get call GetUserName to get the user name, and LookupAccountName to get its SID

Convert CadotString Seed to an SID S-1-5-32-00000000-00000000-00000000-00000000- 0000 is a useful utility function for formatting


Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

mongodb - CakePHP paginator ignoring order, but only for certain values -