I am writing an IE plugin (32bit ActiveX dll) for Win7/Win10/Vista to record data from one or more remote IP camera(s).
Recording to some target directories (mostly in NTFS partition and/or on USB devices) are not successful due to
fopen_s(&fp, filename, "wb") == EACCES
GetLastError()==ERROR_FILE_NOT_FOUND or ERROR_ACCESS_DENIED.
Actually there is no such file under the target directory. Disable "protected mode" in IE(11), and there won't be such a problem.
I've read this article
and this article
Windows Vista Application Development Requirements for User Account Control Compatibility https://msdn.microsoft.com/en-us/library/bb530410.aspx
However I still have the following requirements:
- The plugin saves real-time streams. Saving to a temp directory first and copying to target directoy afterward is not user-friendly.
- The plugin saves snapshots by pressing web page buttons and doesn't want to prompt annoying "SaveAs" dialog each time;
- Since the IP camera is DHCP-ed, I can not simply add its IP to the "local intranet zone" to avoid "protected mode".
Since the plugin has an installation program where it is granted with administrator right. Any modification could be done during the installation process.
Is there any method to solve this issue? Or the requirements are not valid due to security issue?