1
0

api_explorerfindfile.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef NULLSOFT_API_EXPLORERFINDFILE_H
  2. #define NULLSOFT_API_EXPLORERFINDFILE_H
  3. #include <bfc/dispatch.h>
  4. class api_explorerfindfile : public Dispatchable
  5. {
  6. protected:
  7. api_explorerfindfile() {}
  8. ~api_explorerfindfile() {}
  9. public:
  10. BOOL AddFile(wchar_t* file);
  11. BOOL ShowFiles(void);
  12. void Reset(void);
  13. public:
  14. DISPATCH_CODES
  15. {
  16. API_EXPLORERFINDFILE_ADDFILE = 10,
  17. API_EXPLORERFINDFILE_SHOWFILES = 11,
  18. API_EXPLORERFINDFILE_RESET = 12,
  19. };
  20. };
  21. inline BOOL api_explorerfindfile::AddFile(wchar_t* file)
  22. {
  23. return _call(API_EXPLORERFINDFILE_ADDFILE, (BOOL)0, file);
  24. }
  25. inline BOOL api_explorerfindfile::ShowFiles(void)
  26. {
  27. return _call(API_EXPLORERFINDFILE_SHOWFILES, (BOOL)0);
  28. }
  29. inline void api_explorerfindfile::Reset(void)
  30. {
  31. _voidcall(API_EXPLORERFINDFILE_RESET);
  32. }
  33. extern api_explorerfindfile *ExplorerFindFileManager;
  34. #define WASABI_API_EXPLORERFINDFILE ExplorerFindFileManager
  35. // {83D6CD21-D67A-4326-A5B2-E1EFD664ADB5}
  36. static const GUID ExplorerFindFileApiGUID =
  37. { 0x83d6cd21, 0xd67a, 0x4326, { 0xa5, 0xb2, 0xe1, 0xef, 0xd6, 0x64, 0xad, 0xb5 } };
  38. #endif