简体   繁体   中英

c# register internet explorer toolbar by user

I want to add a button icon on the internet explorer toolbar using the c#. The code is: Registry.LocalMachine.CreateSubKey(@"SOFTWARE\\Microsoft\\Internet Explorer\\Toolbar").SetValue(guid,name) . But it will create for all users. Now i want to register the button for current user. I had tried the 'CurrentUser', but it not work. What's the registry key for the current user?

CurrentUser should work but you need to execute your app with elevated privileges.

Go to your VS project properties and set your linker -> manifest file and check UAC Execution Level. Select the requireAdministrator option.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM