Boost C++ Libraries: Ticket #11660: interprocess::winapi::get_last_bootup_time(std::string &stamp) fails, resulting in bad IPC name https://svn.boost.org/trac10/ticket/11660 <p> Using interprocess::managed_shared_memory fails on Windows 7 in restricted environments (i.e. running under IIS/AppPool). It fails to create IPC primites properly, even if an administrator account is being impersonated. It doesn't fail if running a regular process as the IIS/AppPool user. It fails in that the shared memory object created doesn't have the intended name, and when boost interprocess attempts to open the primitive in another process it fails, do to file name discrepancies. </p> <p> Specifically, interprocess::winapi::get_last_bootup_time(std::string &amp;stamp) fails to retrieve the bootup time, as a consequence of failing to open the system log file (<a class="missing wiki">GetLastError</a>() produces ERROR_ACCESS_DENIED) and instead produces an empty string. This does not occur in the other process. </p> <p> The attached alternate implementation for getting a bootup time is working for me in the above scenario. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11660 Trac 1.4.3 bmccart@… Wed, 16 Sep 2015 15:00:42 GMT attachment set https://svn.boost.org/trac10/ticket/11660 https://svn.boost.org/trac10/ticket/11660 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">stable_get_last_bootup_time.hpp</span> </li> </ul> <p> Alternate implementation </p> Ticket veawor@… Mon, 11 Jan 2016 09:04:00 GMT <link>https://svn.boost.org/trac10/ticket/11660#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11660#comment:1</guid> <description> <p> This issue also happens if execute this function with Windows 8 built-in Guest account, and the attached alternate implementation works for me either. </p> </description> <category>Ticket</category> </item> <item> <author>veawor@…</author> <pubDate>Tue, 12 Jan 2016 02:40:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11660#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11660#comment:2</guid> <description> <p> After doing more test, I've found that attached alternate implementation has precision issue, that's, the boot-up time may sometimes not the same. </p> </description> <category>Ticket</category> </item> </channel> </rss>