api_history.h 773 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <bfc/dispatch.h>
  3. #include "history.h"
  4. class api_history : public Dispatchable
  5. {
  6. protected:
  7. api_history() {}
  8. ~api_history() {}
  9. public:
  10. historyRecordList *Query(const wchar_t *query);
  11. void FreeHistoryList(historyRecordList *historyList);
  12. enum
  13. {
  14. API_HISTORY_QUERY = 0,
  15. API_HISTORY_FREEHISTORYLIST = 1,
  16. };
  17. };
  18. inline historyRecordList *api_history::Query(const wchar_t *query)
  19. {
  20. return _call(API_HISTORY_QUERY, (historyRecordList *)0, query);
  21. }
  22. inline void api_history::FreeHistoryList(historyRecordList *historyList)
  23. {
  24. _voidcall(API_HISTORY_FREEHISTORYLIST, historyList);
  25. }
  26. // {F9BF9119-D163-4118-BEA7-5980869DBB2E}
  27. static const GUID HistoryApiGuid =
  28. { 0xf9bf9119, 0xd163, 0x4118, { 0xbe, 0xa7, 0x59, 0x80, 0x86, 0x9d, 0xbb, 0x2e } };