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().
精彩评论