Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. PROTECTED DWORD GetComplexCounterValue(IN struct_ctr_items sCtrItems, IN enum_cnt_period ePeriod, IN enum_cnt_type eType, IN enum_cnt_ctx_type eCtxType, IN enum_cnt_ctx_id eCtxId)
  2. {
  3. DWORD dwValue = 0, i = 0;
  4. CHAR szCtrID[MAX_PATH] = {0};
  5.  
  6. FillComplexCtrID(ePeriod, eType, eCtxType, eCtxId, szCtrID);
  7.  
  8. for (i = 0; i < sCtrItems.nb_items; i++)
  9. {
  10. if (!strcmp(sCtrItems.values[i].szCTR_ID, szCtrID))
  11. {
  12. dwValue = (DWORD)sCtrItems.values[i].CounterValue;
  13. return dwValue;
  14. }
  15. }
  16.  
  17. ProjectTraceFile("GetComplexCounterValue() -> Value of the counter %s not found", szCtrID);
  18. return dwValue;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement