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.

42 lines
940 B

  1. //--------------------------------------------------------------
  2. // common user interface routines
  3. //
  4. //
  5. //--------------------------------------------------------------
  6. #ifndef STRICT
  7. #define STRICT
  8. #endif
  9. #define INC_OLE2 // WIN32, get ole2 from windows.h
  10. #include <windows.h>
  11. #include <windowsx.h>
  12. #include <shlobj.h>
  13. #include "resource.h"
  14. // This project should be compiled MBCS
  15. #ifndef _MBCS
  16. #define _MBCS // using MBCS enabling function
  17. #endif
  18. #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i)))
  19. #define WIDE_MAX_PATH (MAX_PATH * sizeof(WCHAR) )
  20. // These are the internal windows messages
  21. enum {
  22. WM_UPDATE_SERVER_STATE = WM_USER + 1600,
  23. WM_UPDATE_ALIAS_LIST,
  24. WM_SHUTDOWN_NOTIFY,
  25. WM_INSPECT_SERVER_LIST
  26. };
  27. // Timer ids
  28. enum {
  29. PWS_TIMER_CHECKFORSERVERRESTART = 0
  30. };
  31. // Timer times - milliseconds
  32. #define TIMER_RESTART 5000