Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: uihooks.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _UIHOOKS_
  11. #define _UIHOOKS_
  12. #define CSCH_NotifyOffline 1
  13. #define CSCH_NotifyAvailable 2
  14. #define CSCH_Pin 3
  15. #define CSCH_Unpin 4
  16. #define CSCH_DeleteConflict 5
  17. #define CSCH_UpdateConflict 6
  18. #define CSCH_SyncShare 7
  19. #ifdef CSCUI_HOOKS
  20. //
  21. // Use CSCUI_NOTIFYHOOK to send self-host notifications. The
  22. // macro should be used like this.
  23. //
  24. // CSCUI_NOTIFYHOOK((<CSCH_* value>,<fmt string>,arg,arg,arg));
  25. //
  26. // CSCUI_NOTIFYHOOK((CSCH_SyncShare, TEXT("Syncing share %1"), pszShareName));
  27. //
  28. // Entire macro arg set must be enclosed in separate set of parens.
  29. //
  30. #define CSCUI_NOTIFYHOOK(x) CSCUIExt_NotifyHook x
  31. void CSCUIExt_NotifyHook(DWORD csch, LPCTSTR psz, ...);
  32. void CSCUIExt_CleanupHooks();
  33. #else // !CSCUI_HOOKS
  34. #define CSCUI_NOTIFYHOOK(x)
  35. inline void CSCUIExt_NotifyHook(DWORD csch, LPCTSTR psz, ...) {}
  36. #define CSCUIExt_CleanupHooks()
  37. #endif // !CSCUI_HOOKS
  38. #endif // _UIHOOKS_