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.

98 lines
2.6 KiB

  1. #define IDM_NEW 100
  2. #define IDM_OPEN 101
  3. #define IDM_SAVE 102
  4. #define IDM_SAVEAS 103
  5. #define IDM_PRINT 104
  6. #define IDM_PRINTSETUP 105
  7. #define IDM_EXIT 106
  8. #define IDM_UNDO 200
  9. #define IDM_CUT 201
  10. #define IDM_COPY 202
  11. #define IDM_PASTE 203
  12. #define IDM_LINK 204
  13. #define IDM_LINKS 205
  14. #define IDM_HELPCONTENTS 300
  15. #define IDM_HELPSEARCH 301
  16. #define IDM_HELPHELP 302
  17. #define IDM_ABOUT 303
  18. #define IDM_HELPTOPICS 304
  19. #define IDM_INSTALL 305
  20. #define IDM_UNINSTALL 306
  21. #define IDM_SUCCESS 307
  22. #define IDM_SUCCESS_REMOVE 308
  23. #define IDM_HEADER 309
  24. #define IDM_FAILED 310
  25. #define IDM_FAILED_REMOVE 311
  26. #define IDM_NEEDIE4WININET 312
  27. #define IDM_ERR_IE4REQFORUNINSTALL 313
  28. #define IDD_MAINAPP 1000
  29. #define IDC_LIST 1001
  30. #define IDC_HEADER 1002
  31. #define IDC_QUESTION 1003
  32. #define IDC_STATIC -1
  33. #define DLG_VERFIRST 400
  34. #define IDC_COMPANY DLG_VERFIRST
  35. #define IDC_FILEDESC DLG_VERFIRST+1
  36. #define IDC_PRODVER DLG_VERFIRST+2
  37. #define IDC_COPYRIGHT DLG_VERFIRST+3
  38. #define IDC_OSVERSION DLG_VERFIRST+4
  39. #define IDC_TRADEMARK DLG_VERFIRST+5
  40. #define DLG_VERLAST DLG_VERFIRST+5
  41. #define IDC_LABEL DLG_VERLAST+1
  42. #define ID_COMPANY 1
  43. #define ID_INFNAME 2
  44. #define ID_APPNAME 3
  45. #define ID_CMDLINE 4
  46. // ============ VALUES ============
  47. #define INI_YES _T("Yes")
  48. #define INI_NO _T("No")
  49. #define INI_TRUE _T("TRUE")
  50. #define INI_FALSE _T("FALSE")
  51. #define INI_ON _T("ON")
  52. #define INI_OFF _T("OFF")
  53. typedef struct _INTERNET_CACHE_CONTAINER_INFO_MAX {
  54. DWORD dwCacheVersion; // version of software
  55. LPSTR lpszName; // embedded pointer to the container name string.
  56. LPSTR lpszCachePrefix; // embedded pointer to the container URL prefix
  57. LPSTR lpszPrefixMap; // embedded pointer to the container data location
  58. DWORD dwKBCacheLimit;
  59. DWORD dwContainerType;
  60. DWORD dwOptions;
  61. } INTERNET_CACHE_CONTAINER_INFO_MAX, * LPINTERNET_CACHE_CONTAINER_INFO_MAX;
  62. /////////////////////////////////////////////////////////////////////////////
  63. // class CWaitCursor
  64. class CWaitCursor
  65. {
  66. // Construction/Destruction
  67. public:
  68. CWaitCursor()
  69. {
  70. m_hWait = LoadCursor(NULL, IDC_WAIT);
  71. m_hSave = SetCursor(m_hWait);
  72. };
  73. ~CWaitCursor()
  74. {
  75. SetCursor(m_hSave);
  76. };
  77. HCURSOR m_hSave;
  78. HCURSOR m_hWait;
  79. // Operations
  80. public:
  81. void Restore()
  82. {
  83. SetCursor(m_hSave);
  84. };
  85. };