문제

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