Re: [Boost-bugs] [Boost C++ Libraries] #5392: Message queue temporary dir named "Select LastBootUpTime from Win32_OperatingSystem" (on win XP)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5392: Message queue temporary dir named "Select LastBootUpTime from Win32_OperatingSystem" (on win XP)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-21 08:58:58


#5392: Message queue temporary dir named "Select LastBootUpTime from
Win32_OperatingSystem" (on win XP)
-------------------------------+--------------------------------------------
  Reporter: wsx22@… | Owner: igaztanaga
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: interprocess
   Version: Boost 1.46.1 | Severity: Problem
Resolution: fixed | Keywords: interprocess, message queue, temporary directory, temp
-------------------------------+--------------------------------------------

Comment (by Kai K.):

 Okay I had a deeper look at my problem.
 {{{
 inline bool get_wmi_class_attribute( std::wstring& strValue, const wchar_t
 *wmi_class, const wchar_t *wmi_class_var)
 {
   ...
   while( 0 == pEnumObject->Next( WBEM_INFINITE_IG, uCount, &pClassObject,
 &uReturned ) )
   {
     com_releaser<IWbemClassObject_IG>
 IWbemClassObject_releaser(pClassObject);
     if ( 0 == pClassObject->Get( L"LastBootUpTime", 0, &vwchar, 0, 0 ) ){
       bRet = true;
       strValue = vwchar.value.pbstrVal;
       VariantClear(&vwchar );
       break;
     }
   }
 }
 }}}
 The call of pEnumObject->Next(...) fails with WBEM_E_ACCESS_DENIED for the
 first process. I'm going to check the rights of this process. Currently I
 have no clue why the access rights are different for the two processes.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5392#comment:14>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC