Question

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.

Était-ce utile?

La solution

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);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top