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.

83 lines
2.7 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: cscst.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _CSCST_H_
  11. #define _CSCST_H_
  12. // Private messages to the CSC Hidden Window
  13. #define PWM_STDBGOUT (WM_USER + 400)
  14. #define PWM_STATUSDLG (WM_USER + 401)
  15. #define PWM_TRAYCALLBACK (WM_USER + 402)
  16. #define PWM_RESET_REMINDERTIMER (WM_USER + 403)
  17. #define PWM_REFRESH_SHELL (WM_USER + 406)
  18. #define PWM_QUERY_UISTATE (WM_USER + 407)
  19. #define PWM_HANDLE_LOGON_TASKS (WM_USER + 408)
  20. #define PWM_HANDLE_POLICY_CHANGE (WM_USER + 409)
  21. //
  22. // Custom private message defined for the notification window.
  23. // Initiates a status check of the cache and update of the systray
  24. // UI if appropriate.
  25. //
  26. #define STWM_STATUSCHECK (STWM_CSCCLOSEDIALOGS + 10)
  27. //
  28. // Enumeration of unique systray UI states.
  29. //
  30. typedef enum { STS_INVALID = 0,
  31. STS_ONLINE, // All servers online.
  32. STS_DIRTY, // One server has dirty files.
  33. STS_MDIRTY, // Multiple servers have dirty files.
  34. STS_SERVERBACK, // One server is ready for connection.
  35. STS_MSERVERBACK, // Multiple servers ready for connection
  36. STS_OFFLINE, // One server is offline.
  37. STS_MOFFLINE, // Multiple servers are offline.
  38. STS_NONET // No net interface available.
  39. } eSysTrayState;
  40. // Function for finding the hidden window
  41. HWND _FindNotificationWindow();
  42. LRESULT SendToSystray(UINT uMsg, WPARAM wParam, LPARAM lParam);
  43. BOOL PostToSystray(UINT uMsg, WPARAM wParam, LPARAM lParam);
  44. LRESULT SendCopyDataToSystray(DWORD dwData, DWORD cbData, PVOID pData);
  45. #if DBG
  46. //
  47. // Use STDBOUT to output text to the CSC "hidden" window when it
  48. // is not hidden. To make it visible, build a checked version and
  49. // set the following reg DWORD value to a number 1-5.
  50. // 1 = least verbose output, 5 = most verbose.
  51. // If the value is not present or is 0, the systray window will be
  52. // created hidden.
  53. //
  54. // HKLM\Software\Microsoft\Windows\CurrentVersion\NetCache\SysTrayOutput
  55. //
  56. // The STDBGOUT macro should be used like this.
  57. //
  58. // STDBGOUT((<level>,<fmt string>,arg,arg,arg));
  59. //
  60. // STDBGOUT((1, TEXT("Function foo failed with error %d"), dwError));
  61. //
  62. // Note that no newline is required in the fmt string.
  63. // Entire macro arg set must be enclosed in separate set of parens.
  64. // STDBGOUT stands for "SysTray Debug Output".
  65. //
  66. void STDebugOut(int iLevel, LPCTSTR pszFmt, ...);
  67. #define STDBGOUT(x) STDebugOut x
  68. #else
  69. #define STDBGOUT(x)
  70. #endif
  71. #endif _CSCST_H_