Pregunta

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.

¿Fue útil?

Solución

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);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top