I'm writing a browser helper object for internet explorer that needs to store some data on the hard 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
在IEGetWritableFolderPath()返回的路径下为您的应用创建子目录。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.