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.

196 lines
4.0 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. //
  43. // Data structure manipulated by set/change password dialogs.
  44. //
  45. typedef struct _AccountInfo {
  46. LPWSTR pwszAccountName;
  47. LPWSTR pwszPassword;
  48. BOOL fDirty;
  49. } AccountInfo;
  50. //
  51. // Initializes struct AccountInfo.
  52. //
  53. void
  54. InitializeAccountInfo(AccountInfo * pAccountInfo);
  55. //
  56. // Deallocates/zeros struct AccountInfo.
  57. //
  58. void
  59. ResetAccountInfo(
  60. AccountInfo * pAccountInfo);
  61. //
  62. // Launches the modal set account information dialog.
  63. //
  64. INT_PTR
  65. LaunchSetAccountInformationDlg(
  66. HWND hWnd,
  67. AccountInfo * pAccountInfo);
  68. #if !defined(_UIUTIL_HXX_)
  69. void
  70. SchedUIErrorDialog(
  71. HWND hwnd,
  72. int idsErrMsg,
  73. LONG error,
  74. UINT idsHelpHint = 0);
  75. #endif
  76. int
  77. SchedUIMessageDialog(
  78. HWND hwnd,
  79. int idsMsg,
  80. UINT uType,
  81. LPTSTR pszInsert);
  82. inline void
  83. SchedUIErrorDialog(
  84. HWND hwnd,
  85. int idsErrMsg,
  86. LPTSTR pszInsert)
  87. {
  88. SchedUIMessageDialog(hwnd,
  89. idsErrMsg,
  90. MB_APPLMODAL | MB_ICONEXCLAMATION | MB_OK,
  91. pszInsert);
  92. }
  93. HRESULT
  94. GetJobPath(
  95. ITask * pIJob,
  96. LPTSTR * ppszJobPath);
  97. HRESULT
  98. AddGeneralPage(
  99. PROPSHEETHEADER &psh,
  100. ITask * pIJob);
  101. HRESULT
  102. AddGeneralPage(
  103. LPFNADDPROPSHEETPAGE lpfnAddPage,
  104. LPARAM cookie,
  105. ITask * pIJob);
  106. HRESULT
  107. AddSecurityPage(
  108. PROPSHEETHEADER &psh,
  109. LPDATAOBJECT pdtobj);
  110. HRESULT
  111. AddSchedulePage(
  112. PROPSHEETHEADER &psh,
  113. ITask * pIJob);
  114. HRESULT
  115. AddSchedulePage(
  116. LPFNADDPROPSHEETPAGE lpfnAddPage,
  117. LPARAM cookie,
  118. ITask * pIJob);
  119. HRESULT
  120. AddSettingsPage(
  121. PROPSHEETHEADER &psh,
  122. ITask * pIJob);
  123. HRESULT
  124. AddSettingsPage(
  125. LPFNADDPROPSHEETPAGE lpfnAddPage,
  126. LPARAM cookie,
  127. ITask * pIJob);
  128. HRESULT
  129. GetGeneralPage(
  130. ITask * pIJob,
  131. LPTSTR pszJobPath,
  132. BOOL fPersistChanges,
  133. HPROPSHEETPAGE * phpage);
  134. HRESULT
  135. GetSchedulePage(
  136. ITask * pIJob,
  137. LPTSTR pszJobPath,
  138. BOOL fPersistChanges,
  139. HPROPSHEETPAGE * phpage);
  140. HRESULT
  141. GetSettingsPage(
  142. ITask * pIJob,
  143. LPTSTR pszJobPath,
  144. BOOL fPersistChanges,
  145. HPROPSHEETPAGE * phpage);
  146. HRESULT
  147. JFGetSchedObjExt(
  148. REFIID riid,
  149. LPVOID * ppvObj);
  150. HRESULT
  151. JFGetTaskIconExt(
  152. REFIID riid,
  153. LPVOID * ppvObj);
  154. #define MAX_IDLE_MINUTES 999
  155. #define MAX_IDLE_DIGITS 3
  156. #define MAX_MAXRUNTIME_HOURS 999
  157. #define MAX_MAXRUNTIME_DIGITS 3
  158. #define DEFAULT_MAXRUNTIME_HOURS 72
  159. #define DEFAULT_MAXRUNTIME_MINUTES 0
  160. #endif // SCHEDUI_HXX__