0

In C++, Browser Helper Objects should use IEGetWriteableHKCU to know where they can right to the registry. What is the equivalent function for C#? I want to save user preferences, it looks like the right way to do it on Windows it to use the registry.

foson
  • 10,037
  • 2
  • 35
  • 53
Julien
  • 5,729
  • 4
  • 37
  • 60

1 Answers1

1

Seems to me it's just a function exported from IEFRAME.DLL :-

http://msdn.microsoft.com/en-us/library/ie/ms537315(v=vs.85).aspx

Therefore you can probably just use P/Invoke to call it, I might be a bit off on the signature here so anyone feel free to edit it:

[DllImport("ieframe.dll")]
public extern long IEGetWriteableHKCU(out IntPtr hKey);
Lloyd
  • 29,197
  • 4
  • 84
  • 98