开发者

Where should a IE browser helper object store its data files?

开发者 https://www.devze.com 2023-03-26 09:39 出处:网络
I\'m writing a browser helper object for internet explorer that needs to store some data on the ha开发者_开发知识库rd disk.

I'm writing a browser helper object for internet explorer that needs to store some data on the ha开发者_开发知识库rd disk. Is there a convention, where to store this files? Or if not - to which directory (except the temp folder) do I have write access?


Normally applications store state in CSIDL_LOCAL_APPDATA or CSIDL_APPDATA but a low IL process (like Protected IE) cannot write to those directories, for low IL you can use FOLDERID_LocalAppDataLow.

When running inside the IE process you can use special IE versions of those APIs: IEGetWriteableFolderPath and IEGetWriteableHKCU


Create a subdirectory for your app under the path returned by IEGetWritableFolderPath().

0

精彩评论

暂无评论...
验证码 换一张
取 消