void DumpLibraryStats(ITypeLib* pTypeLib) { pTypeLib->AddRef(); cout << "\n****** Stats about the Library ******" << endl; USES_CONVERSION; TLIBATTR* libAttr; pTypeLib->GetLibAttr(&libAttr); CComBSTR bstrGuid(libAttr->guid); cout << "Major: " << libAttr->wMajorVerNum << endl; cout << "Minor: " << libAttr->wMinorVerNum << endl; cout << "LibID: " << W2A(bstrGuid.Copy()) << endl; cout << "Locale ID: " << libAttr->lcid << endl; pTypeLib->ReleaseTLibAttr(libAttr); pTypeLib->Release(); }
CAzJob::CAzJob(LPCTSTR lpszJobName, CAzLauncher* pLauncher) : m_strJobName(lpszJobName) , m_pLauncher(pLauncher) , m_hJobThread(NULL) , m_tmStart(0) , m_tmEnd(0) , m_pAzHeartbeat(NULL) { GUID guidJob = {0}; HRESULT res = ::CoCreateGuid(&guidJob); CComBSTR bstrGuid(guidJob); m_strJobGuid = azstring(bstrGuid); m_azMessageFactory.Initialize( m_strJobName, m_strJobGuid ); m_tmStart = time(0); ZeroMemory( &m_piJob, sizeof(PROCESS_INFORMATION) ); }