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.

有帮助吗?

解决方案

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);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top