wprintf(L"Hit any key to quit\n\n");while(!_kbhit()) Sleep(10); status = SaveBookmark(hBookmark); cleanup:if(hSubscription) EvtClose(hSubscription);if(hBookmark) EvtClose(hBookmark); }// The callback that receives the events that match the query criteria. Use the// context param...
IWbemClassObject* pObj =NULL; IWbemServices* pNameSpace =NULL;// Add the instance to be refreshed.hr = pConfig->AddObjectByPath( pNameSpace,L"Win32_PerfRawData_PerfProc_Process.Name=\"WINWORD\"",0L,NULL, &pObj,NULL);if(FAILED(hr)) {cout<<"Could not add object. Error code: ...