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.

201 lines
3.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: schedui.hxx
  7. //
  8. // Contents: Routines exported from the schedui library.
  9. //
  10. // Classes: None.
  11. //
  12. // Functions: None.
  13. //
  14. // Notes: For the first release of the scheduling agent, all security
  15. // operations are disabled under Win95, even Win95 to NT.
  16. //
  17. // History: 26-Jun-96 RaviR Created.
  18. // 11-Jul-96 MarkBl Relocated CIconHelper def and added
  19. // exported functions.
  20. //
  21. //----------------------------------------------------------------------------
  22. #ifndef SCHEDUI_HXX__
  23. #define SCHEDUI_HXX__
  24. #include "strings.hxx" // tszEmpty
  25. //
  26. // Monthly trigger page string ids shared by Schedule page and create new
  27. // task wizard
  28. //
  29. struct SWeekData
  30. {
  31. int ids;
  32. int week;
  33. };
  34. struct SDayData
  35. {
  36. int idCtrl;
  37. int ids;
  38. UINT day;
  39. };
  40. extern SWeekData g_aWeekData[5];
  41. extern SDayData g_aDayData[7];
  42. #if !defined(_CHICAGO_)
  43. //
  44. // Data structure manipulated by set/change password dialogs.
  45. //
  46. typedef struct _AccountInfo {
  47. LPWSTR pwszAccountName;
  48. LPWSTR pwszPassword;
  49. BOOL fDirty;
  50. } AccountInfo;
  51. //
  52. // Initializes struct AccountInfo.
  53. //
  54. void
  55. InitializeAccountInfo(AccountInfo * pAccountInfo);
  56. //
  57. // Deallocates/zeros struct AccountInfo.
  58. //
  59. void
  60. ResetAccountInfo(
  61. AccountInfo * pAccountInfo);
  62. //
  63. // Launches the modal set account information dialog.
  64. //
  65. INT_PTR
  66. LaunchSetAccountInformationDlg(
  67. HWND hWnd,
  68. AccountInfo * pAccountInfo);
  69. #endif // !defined(_CHICAGO_)
  70. #if !defined(_UIUTIL_HXX_)
  71. void
  72. SchedUIErrorDialog(
  73. HWND hwnd,
  74. int idsErrMsg,
  75. LONG error,
  76. UINT idsHelpHint = 0);
  77. #endif
  78. int
  79. SchedUIMessageDialog(
  80. HWND hwnd,
  81. int idsMsg,
  82. UINT uType,
  83. LPTSTR pszInsert);
  84. inline void
  85. SchedUIErrorDialog(
  86. HWND hwnd,
  87. int idsErrMsg,
  88. LPTSTR pszInsert)
  89. {
  90. SchedUIMessageDialog(hwnd,
  91. idsErrMsg,
  92. MB_APPLMODAL | MB_ICONEXCLAMATION | MB_OK,
  93. pszInsert);
  94. }
  95. HRESULT
  96. GetJobPath(
  97. ITask * pIJob,
  98. LPTSTR * ppszJobPath);
  99. HRESULT
  100. AddGeneralPage(
  101. PROPSHEETHEADER &psh,
  102. ITask * pIJob);
  103. HRESULT
  104. AddGeneralPage(
  105. LPFNADDPROPSHEETPAGE lpfnAddPage,
  106. LPARAM cookie,
  107. ITask * pIJob);
  108. HRESULT
  109. AddSecurityPage(
  110. PROPSHEETHEADER &psh,
  111. LPDATAOBJECT pdtobj);
  112. HRESULT
  113. AddSchedulePage(
  114. PROPSHEETHEADER &psh,
  115. ITask * pIJob);
  116. HRESULT
  117. AddSchedulePage(
  118. LPFNADDPROPSHEETPAGE lpfnAddPage,
  119. LPARAM cookie,
  120. ITask * pIJob);
  121. HRESULT
  122. AddSettingsPage(
  123. PROPSHEETHEADER &psh,
  124. ITask * pIJob);
  125. HRESULT
  126. AddSettingsPage(
  127. LPFNADDPROPSHEETPAGE lpfnAddPage,
  128. LPARAM cookie,
  129. ITask * pIJob);
  130. HRESULT
  131. GetGeneralPage(
  132. ITask * pIJob,
  133. LPTSTR pszJobPath,
  134. BOOL fPersistChanges,
  135. HPROPSHEETPAGE * phpage);
  136. HRESULT
  137. GetSchedulePage(
  138. ITask * pIJob,
  139. LPTSTR pszJobPath,
  140. BOOL fPersistChanges,
  141. HPROPSHEETPAGE * phpage);
  142. HRESULT
  143. GetSettingsPage(
  144. ITask * pIJob,
  145. LPTSTR pszJobPath,
  146. BOOL fPersistChanges,
  147. HPROPSHEETPAGE * phpage);
  148. HRESULT
  149. JFGetSchedObjExt(
  150. REFIID riid,
  151. LPVOID * ppvObj);
  152. HRESULT
  153. JFGetTaskIconExt(
  154. REFIID riid,
  155. LPVOID * ppvObj);
  156. #define MAX_IDLE_MINUTES 999
  157. #define MAX_IDLE_DIGITS 3
  158. #define MAX_MAXRUNTIME_HOURS 999
  159. #define MAX_MAXRUNTIME_DIGITS 3
  160. #define DEFAULT_MAXRUNTIME_HOURS 72
  161. #define DEFAULT_MAXRUNTIME_MINUTES 0
  162. #endif // SCHEDUI_HXX__