Leaked source code of windows server 2003
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.

127 lines
4.0 KiB

  1. #include "stresid.h"
  2. #ifndef ARRAYSIZE
  3. #define ARRAYSIZE(x) (sizeof((x))/sizeof((x)[0]))
  4. #endif
  5. #define STWM_NOTIFYHOTPLUG STWM_NOTIFYPCMCIA
  6. #define STSERVICE_HOTPLUG STSERVICE_PCMCIA
  7. #define HOTPLUG_REGFLAG_NOWARN PCMCIA_REGFLAG_NOWARN
  8. void SysTray_RunProperties(UINT RunStringID);
  9. VOID
  10. PASCAL
  11. SysTray_NotifyIcon(
  12. HWND hWnd,
  13. UINT uCallbackMessage,
  14. DWORD Message,
  15. HICON hIcon,
  16. LPCTSTR lpTip
  17. );
  18. LPTSTR
  19. NEAR CDECL
  20. LoadDynamicString(
  21. UINT StringID,
  22. ...
  23. );
  24. UINT EnableService(UINT uNewSvcMask, BOOL fEnable);
  25. BOOL PASCAL GenericGetSet(HKEY hKey, LPCTSTR pszValue, LPVOID pData,
  26. ULONG cbSize, BOOL bSet);
  27. VOID
  28. PASCAL
  29. SysTray_AppendMenuString(
  30. HMENU hmenu,
  31. UINT item,
  32. LPTSTR lpszMenuItem
  33. );
  34. // Wrapper for LocalFree to make the code a little easier to read.
  35. #define DeleteDynamicString(x) LocalFree((HLOCAL) (x))
  36. #define HOTPLUG_TIMER_ID 2
  37. #define VOLUME_TIMER_ID 3
  38. #define POWER_TIMER_ID 4
  39. #define HOTPLUG_DEVICECHANGE_TIMERID 5
  40. #define USBUI_TIMER_ID 6
  41. #define FAX_STARTUP_TIMER_ID 7
  42. #define PRINT_STARTUP_TIMER_ID 8
  43. #define FAX_SHUTDOWN_TIMER_ID 99
  44. void Power_Timer(HWND hWnd);
  45. BOOL Power_CheckEnable(HWND hWnd, BOOL bSvcEnabled);
  46. void Power_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  47. void Power_OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam);
  48. void Power_OnPowerBroadcast(HWND hWnd, WPARAM wParam, LPARAM lParam);
  49. void Power_OnDeviceChange(HWND hWnd, WPARAM wParam, LPARAM lParam);
  50. void Power_WmDestroy(HWND hWnd);
  51. BOOLEAN Power_OnActivate(HWND hWnd, WPARAM wParam, LPARAM lParam);
  52. void Update_PowerFlags(DWORD dwMask, BOOL bEnable);
  53. DWORD Get_PowerFlags(void);
  54. VOID PASCAL Power_UpdateStatus(HWND, DWORD, BOOL);
  55. void CloseIfOpen(LPHANDLE);
  56. BOOL Volume_Init(HWND hWnd);
  57. BOOL Volume_CheckEnable(HWND hWnd, BOOL bEnabled);
  58. void Volume_DeviceChange(HWND hWnd, WPARAM wParam, LPARAM lParam);
  59. void Volume_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  60. void Volume_Timer(HWND hWnd);
  61. void Volume_LineChange(HWND hWnd, HMIXER hmx, DWORD dwID );
  62. void Volume_ControlChange(HWND hWnd, HMIXER hmx, DWORD dwID );
  63. void Volume_Shutdown(HWND hWnd);
  64. void Volume_WinMMDeviceChange(HWND hWnd);
  65. void Volume_HandlePowerBroadcast(HWND hWnd, WPARAM wParam, LPARAM lParam);
  66. void Volume_DeviceChange_Cleanup(void);
  67. void Volume_WmDestroy(HWND hWnd);
  68. BOOL HotPlug_CheckEnable(HWND hWnd, BOOL bEnabled);
  69. void HotPlug_DeviceChange(HWND hWnd, WPARAM wParam, LPARAM lParam);
  70. void HotPlug_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  71. void HotPlug_Timer(HWND hWnd);
  72. int HotPlug_DeviceChangeTimer(HWND hWnd);
  73. void HotPlug_WmDestroy(HWND HWnd);
  74. void HotPlug_SessionChange(HWND hWnd, WPARAM wParam, LPARAM lParam);
  75. BOOL StickyKeys_CheckEnable(HWND hWnd);
  76. void StickyKeys_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  77. BOOL MouseKeys_CheckEnable(HWND hWnd);
  78. void MouseKeys_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  79. BOOL CSC_CheckEnable(HWND hWnd, BOOL bSvcEnabled);
  80. BOOL CSC_MsgProcess(LPMSG pMsg);
  81. void USBUI_Notify(HWND hwnd, WPARAM wParam, LPARAM lParam);
  82. //HMENU USBUI_CreateMenu();
  83. void USBUI_Menu(HWND hwnd, UINT uMenuNum, UINT uButton);
  84. BOOL USBUI_Init(HWND hWnd);
  85. void USBUI_UpdateStatus(HWND hWnd, BOOL bShowIcon);
  86. BOOL USBUI_CheckEnable(HWND hWnd, BOOL bSvcEnabled);
  87. void USBUI_Toggle();
  88. BOOL USBUI_SetState(BOOL On);
  89. void USBUI_Timer(HWND hwnd);
  90. BOOL FilterKeys_CheckEnable(HWND hWnd);
  91. void FilterKeys_Notify(HWND hWnd, WPARAM wParam, LPARAM lParam);
  92. BOOL Print_SHChangeNotify_Register(HWND hWnd);
  93. BOOL Print_SHChangeNotify_Unregister();
  94. BOOL Print_TrayInit();
  95. BOOL Print_TrayExit();
  96. #define WM_PRINT_NOTIFY (WM_APP + 1)
  97. LRESULT Print_Notify(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  98. VOID
  99. SetIconFocus(
  100. HWND hwnd,
  101. UINT uiIcon
  102. );
  103. STDAPI_(int) SysTrayMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpszCmdLine, int nCmdShow);