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.

352 lines
15 KiB

  1. // rstrui.idl : IDL source for rstrui.exe
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (rstrui.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. #include "olectl.h"
  8. #define DISPID_IRESTOREPOINT_TYPE 1
  9. #define DISPID_IRESTOREPOINT_SEQUENCENUMBER 2
  10. #define DISPID_IRESTOREPOINT_TIMESTAMP 3
  11. #define DISPID_IRESTOREPOINT_YEAR 4
  12. #define DISPID_IRESTOREPOINT_MONTH 5
  13. #define DISPID_IRESTOREPOINT_DAY 6
  14. #define DISPID_IRESTOREPOINT_ISADVANCED 7
  15. #define DISPID_IRESTOREPOINT_COMPARESEQUENCE 10
  16. #define DISPID_IRENAMEDFOLDERS_COUNT 1
  17. #define DISPID_IRENAMEDFOLDERS_OLDNAME 2
  18. #define DISPID_IRENAMEDFOLDERS_NEWNAME 3
  19. #define DISPID_IRENAMEDFOLDERS_LOCATION 4
  20. #define DISPID_IRESTORESHELL_COUNT 1
  21. #define DISPID_IRESTORESHELL_LASTRESTORE 2
  22. #define DISPID_IRESTORESHELL_ISSAFEMODE 16
  23. #define DISPID_IRESTORESHELL_MAXDATE 3
  24. #define DISPID_IRESTORESHELL_MINDATE 4
  25. #define DISPID_IRESTORESHELL_REALPOINT 5
  26. #define DISPID_IRESTORESHELL_ISUNDO 6
  27. #define DISPID_IRESTORESHELL_SELECTEDDATE 7
  28. #define DISPID_IRESTORESHELL_SELECTEDNAME 8
  29. #define DISPID_IRESTORESHELL_SELECTEDPOINT 9
  30. #define DISPID_IRESTORESHELL_STARTMODE 10
  31. #define DISPID_IRESTORESHELL_RPSELFLAG 11
  32. #define DISPID_IRESTORESHELL_CURRENTDATE 12
  33. #define DISPID_IRESTORESHELL_SMGRUNAVAILABLE 13
  34. #define DISPID_IRESTORESHELL_CANNAVIGATEPAGE 14
  35. #define DISPID_IRESTORESHELL_RENAMEDFOLDERS 15
  36. #define DISPID_IRESTORESHELL_MANUALRPNAME 17
  37. #define DISPID_IRESTORESHELL_FIRSTDAYOFWEEK 18
  38. #define DISPID_IRESTORESHELL_MAINOPTION 19
  39. #define DISPID_IRESTORESHELL_USEDDATE 27
  40. #define DISPID_IRESTORESHELL_USEDNAME 28
  41. #define DISPID_IRESTORESHELL_CANCEL 21
  42. #define DISPID_IRESTORESHELL_COMPAREDATE 22
  43. #define DISPID_IRESTORESHELL_FINISH 23
  44. #define DISPID_IRESTORESHELL_FORMATDATE 24
  45. #define DISPID_IRESTORESHELL_FORMATTIME 25
  46. #define DISPID_IRESTORESHELL_RESTORE 26
  47. #define DISPID_IRESTORESHELL_SETFORMSIZE 29
  48. #define DISPID_IRESTORESHELL_INITIALIZEALL 33
  49. #define DISPID_IRESTORESHELL_ENABLEFIFO 34
  50. #define DISPID_IRESTORESHELL_DISABLEFIFO 35
  51. #define DISPID_IRESTORESHELL_GETLOCALEDATEFORMAT 37
  52. #define DISPID_IRESTORESHELL_GETYEARMONTHSTR 38
  53. #define DISPID_IRESTORESHELL_BEGINRESTORE 39
  54. #define DISPID_IRESTORESHELL_CREATERESTOREPOINT 40
  55. #define DISPID_IRESTORESHELL_CANCELRESTOREPOINT 41
  56. #define DISPID_IRESTORESHELL_SHOWMESSAGE 43
  57. #define DISPID_IRESTORESHELL_FORMATLOWDISKMSG 42
  58. #define DISPID_IRESTORESHELL_CANRUNRESTORE 44
  59. #define DISPID_IRESTORESHELL_DISPLAYOTHERUSERSWARNING 45
  60. #define DISPID_IRESTORESHELL_DISPLAYMOVEFILEEXWARNING 46
  61. #define DISPID_IRESTORESHELL_WASLASTRESTOREFROMSAFEMODE 47
  62. #define DISPID_IRESTORESHELL_CHECKRESTORE 48
  63. #define DISPID_IRSTRPROGRESS_MAX 1
  64. #define DISPID_IRSTRPROGRESS_MIN 2
  65. #define DISPID_IRSTRPROGRESS_VALUE 3
  66. #define DISPID_DRSTRPROGRESSEVENTS_ONCREATE 1
  67. [
  68. uuid(B545857A-1D0E-11d3-B9C7-00C04F79E399),
  69. version(1.0),
  70. helpstring("Microsoft Restore 1.0 Type Library")
  71. ]
  72. library RestoreUILib
  73. {
  74. importlib("stdole32.tlb");
  75. importlib("stdole2.tlb");
  76. typedef [v1_enum] enum
  77. {
  78. rsmNormal = 0,
  79. rsmSuccess = 1,
  80. rsmFail = 2,
  81. rsmFailLowDisk = 3
  82. }
  83. rstrStartMode;
  84. [
  85. object,
  86. uuid(1159A00E-2862-11d3-B9CF-00C04F79E399),
  87. dual,
  88. helpstring("IRestorePoint Interface"),
  89. pointer_default(unique)
  90. ]
  91. interface IRestorePoint : IDispatch
  92. {
  93. // properties
  94. [propget, id(DISPID_VALUE), helpstring("Returns the name of the restore point")]
  95. HRESULT Name([out, retval] BSTR *pbstrName);
  96. [propget, id(DISPID_IRESTOREPOINT_TYPE), helpstring("Returns the type of the restore point")]
  97. HRESULT Type([out, retval] INT *pnType);
  98. [propget, id(DISPID_IRESTOREPOINT_SEQUENCENUMBER), helpstring("Returns the sequence number")]
  99. HRESULT SequenceNumber([out, retval] INT *pnSeq);
  100. [propget, id(DISPID_IRESTOREPOINT_TIMESTAMP), helpstring("property TimeStamp")]
  101. HRESULT TimeStamp([in] INT nOffDate, [out, retval] VARIANT *pvarTime);
  102. [propget, id(DISPID_IRESTOREPOINT_YEAR), helpstring("Returns the year of the time stamp")]
  103. HRESULT Year([out, retval] INT *pnYear);
  104. [propget, id(DISPID_IRESTOREPOINT_MONTH), helpstring("Returns the month number [1-12] of the time stamp")]
  105. HRESULT Month([out, retval] INT *pnMonth);
  106. [propget, id(DISPID_IRESTOREPOINT_DAY), helpstring("Returns the day number [1-31] of the time stamp")]
  107. HRESULT Day([out, retval] INT *pnDay);
  108. [propget, id(DISPID_IRESTOREPOINT_ISADVANCED), helpstring("Returns if is an Advanced RP")]
  109. HRESULT IsAdvanced([out, retval] VARIANT_BOOL *pfIsAdvanced);
  110. // methods
  111. [id(DISPID_IRESTOREPOINT_COMPARESEQUENCE), helpstring("Compares sequence numbers")]
  112. HRESULT CompareSequence([in] IRestorePoint *pRP, [out,retval] INT *pnCmp);
  113. };
  114. [
  115. object,
  116. uuid(92C71C4E-CAC8-11D3-B9FB-00C04F79E399),
  117. dual,
  118. helpstring("IRenamedFolder Interface"),
  119. pointer_default(unique)
  120. ]
  121. interface IRenamedFolders : IDispatch
  122. {
  123. // properties
  124. [propget, id(DISPID_IRENAMEDFOLDERS_COUNT)]
  125. HRESULT Count([out, retval] long *plCount);
  126. [propget, id(DISPID_IRENAMEDFOLDERS_OLDNAME)]
  127. HRESULT OldName([in] long lIndex, [out, retval] BSTR *pbstrName);
  128. [propget, id(DISPID_IRENAMEDFOLDERS_NEWNAME)]
  129. HRESULT NewName([in] long lIndex, [out, retval] BSTR *pbstrName);
  130. [propget, id(DISPID_IRENAMEDFOLDERS_LOCATION)]
  131. HRESULT Location([in] long lIndex, [out, retval] BSTR *pbstrName);
  132. };
  133. [
  134. object,
  135. uuid(9341d916-7cdf-11d3-b9e5-00c04f79e399),
  136. dual,
  137. helpstring("IRestoreShell Interface"),
  138. pointer_default(unique)
  139. ]
  140. interface IRestoreShell : IDispatch
  141. {
  142. // check point enumerator
  143. [id(DISPID_VALUE), helpstring("method item")]
  144. HRESULT Item([in] INT nIndex, [out, retval] IRestorePoint** ppRP);
  145. [propget, id(DISPID_IRESTORESHELL_COUNT), helpstring("property Count")]
  146. HRESULT Count([out, retval] INT *pnCount);
  147. // properties
  148. [propget, id(DISPID_IRESTORESHELL_LASTRESTORE)]
  149. HRESULT LastRestore([out,retval] INT *pnLastRestore);
  150. [propget, id(DISPID_IRESTORESHELL_ISSAFEMODE)]
  151. HRESULT IsSafeMode([out,retval] VARIANT_BOOL *pfIsSafeMode);
  152. [propget, id(DISPID_IRESTORESHELL_MAXDATE)]
  153. HRESULT MaxDate([out,retval] VARIANT *pvarDate);
  154. [propget, id(DISPID_IRESTORESHELL_MINDATE)]
  155. HRESULT MinDate([out,retval] VARIANT *pvarDate);
  156. [propget, id(DISPID_IRESTORESHELL_REALPOINT)]
  157. HRESULT RealPoint([out,retval] INT *pnPoint);
  158. [propget, id(DISPID_IRESTORESHELL_ISUNDO)]
  159. HRESULT IsUndo([out,retval] VARIANT_BOOL *pfIsUndo);
  160. [propput, id(DISPID_IRESTORESHELL_ISUNDO)]
  161. HRESULT IsUndo([in] VARIANT_BOOL fIsUndo);
  162. [propget, id(DISPID_IRESTORESHELL_SELECTEDDATE)]
  163. HRESULT SelectedDate([out,retval] VARIANT *pvarDate);
  164. [propput, id(DISPID_IRESTORESHELL_SELECTEDDATE)]
  165. HRESULT SelectedDate([in] VARIANT varDate);
  166. [propget, id(DISPID_IRESTORESHELL_SELECTEDNAME)]
  167. HRESULT SelectedName([out,retval] BSTR *pbstrName);
  168. [propget, id(DISPID_IRESTORESHELL_SELECTEDPOINT)]
  169. HRESULT SelectedPoint([out,retval] INT *pnPoint);
  170. [propput, id(DISPID_IRESTORESHELL_SELECTEDPOINT)]
  171. HRESULT SelectedPoint([in] INT nPoint);
  172. [propget, id(DISPID_IRESTORESHELL_STARTMODE)]
  173. HRESULT StartMode([out,retval] INT *pnMode);
  174. [propget, id(DISPID_IRESTORESHELL_USEDDATE)]
  175. HRESULT UsedDate([out,retval] VARIANT *pvarDate);
  176. [propget, id(DISPID_IRESTORESHELL_USEDNAME)]
  177. HRESULT UsedName([out,retval] BSTR *pbstrName);
  178. [propget, id(DISPID_IRESTORESHELL_RPSELFLAG)]
  179. HRESULT RestorePtSelected([out, retval] VARIANT_BOOL *pfPtSel);
  180. [propput, id(DISPID_IRESTORESHELL_RPSELFLAG)]
  181. HRESULT RestorePtSelected([in] VARIANT_BOOL fPtSel);
  182. [propget, id(DISPID_IRESTORESHELL_CURRENTDATE)]
  183. HRESULT CurrentDate([out,retval] VARIANT *pvarDate);
  184. [propget, id(DISPID_IRESTORESHELL_SMGRUNAVAILABLE)]
  185. HRESULT SmgrUnavailable([out, retval] VARIANT_BOOL *pfSmgr);
  186. [propget, id(DISPID_IRESTORESHELL_CANNAVIGATEPAGE)]
  187. HRESULT CanNavigatePage([out, retval] VARIANT_BOOL *pfCanNavigatePage);
  188. [propput, id(DISPID_IRESTORESHELL_CANNAVIGATEPAGE)]
  189. HRESULT CanNavigatePage([in] VARIANT_BOOL fCanNavigatePage);
  190. [propget, id(DISPID_IRESTORESHELL_RENAMEDFOLDERS)]
  191. HRESULT RenamedFolders([out, retval] IRenamedFolders **ppList);
  192. [propget, id(DISPID_IRESTORESHELL_MANUALRPNAME)]
  193. HRESULT ManualRPName([out,retval] BSTR *pbstrManualRP);
  194. [propput, id(DISPID_IRESTORESHELL_MANUALRPNAME)]
  195. HRESULT ManualRPName([in] BSTR bstrManualRP);
  196. [propget, id(DISPID_IRESTORESHELL_FIRSTDAYOFWEEK)]
  197. HRESULT FirstDayOfWeek([out,retval] INT *pnFirstDay);
  198. [propget, id(DISPID_IRESTORESHELL_MAINOPTION)]
  199. HRESULT MainOption([out, retval] INT *pnMainOption);
  200. [propput, id(DISPID_IRESTORESHELL_MAINOPTION)]
  201. HRESULT MainOption([in] INT nMainOption);
  202. // methods
  203. [id(DISPID_IRESTORESHELL_CHECKRESTORE), helpstring("method CheckRestore")]
  204. HRESULT CheckRestore([out,retval] VARIANT_BOOL *pfCheckRestore);
  205. [id(DISPID_IRESTORESHELL_BEGINRESTORE), helpstring("method BeginRestore")]
  206. HRESULT BeginRestore([out,retval] VARIANT_BOOL *pfBeginRestore);
  207. [id(DISPID_IRESTORESHELL_CANCEL), helpstring("method Cancel")]
  208. HRESULT Cancel([out,retval] VARIANT_BOOL *pfAbort);
  209. [id(DISPID_IRESTORESHELL_COMPAREDATE), helpstring("method CompareDate")]
  210. HRESULT CompareDate([in] VARIANT varDate1, [in] VARIANT varDate2,
  211. [out, retval] INT *pnCmp);
  212. //[id(DISPID_IRESTORESHELL_FINISH), helpstring("method Finish")]
  213. //HRESULT Finish();
  214. [id(DISPID_IRESTORESHELL_FORMATDATE), helpstring("method FormatDate")]
  215. HRESULT FormatDate([in] VARIANT varDate, [in] VARIANT_BOOL fLongFmt, [out, retval] BSTR *bstrDate);
  216. [id(DISPID_IRESTORESHELL_FORMATTIME), helpstring("method FormatTime")]
  217. HRESULT FormatTime([in] VARIANT varTime, [out, retval] BSTR *bstrTime);
  218. [id(DISPID_IRESTORESHELL_RESTORE), helpstring("method Restore")]
  219. HRESULT Restore([in] OLE_HANDLE pwndProgress);
  220. [id(DISPID_IRESTORESHELL_SETFORMSIZE), helpstring("method SetFormSize")]
  221. HRESULT SetFormSize([in] INT nWidth, [in] INT nHeight);
  222. [id(DISPID_IRESTORESHELL_INITIALIZEALL), helpstring("method InitializeAll")]
  223. HRESULT InitializeAll();
  224. [id(DISPID_IRESTORESHELL_DISABLEFIFO), helpstring("method DisableFIFO")]
  225. HRESULT DisableFIFO();
  226. [id(DISPID_IRESTORESHELL_ENABLEFIFO), helpstring("method EnableFIFO")]
  227. HRESULT EnableFIFO();
  228. [id(DISPID_IRESTORESHELL_GETLOCALEDATEFORMAT), helpstring("method GetLocaleDateFormat")]
  229. HRESULT GetLocaleDateFormat([in] VARIANT varDate, [in] BSTR bstrFormat, [out, retval] BSTR *bstrDayName);
  230. [id(DISPID_IRESTORESHELL_GETYEARMONTHSTR), helpstring("method GetLocaleMonthName")]
  231. HRESULT GetYearMonthStr([in] INT nYear, [in] INT nMonth, [out, retval] BSTR *bstrYearMonth);
  232. [id(DISPID_IRESTORESHELL_CREATERESTOREPOINT)]
  233. HRESULT CreateRestorePoint([out,retval] VARIANT_BOOL *pfSucceeded);
  234. [id(DISPID_IRESTORESHELL_CANCELRESTOREPOINT)]
  235. HRESULT CancelRestorePoint();
  236. [id(DISPID_IRESTORESHELL_SHOWMESSAGE), helpstring("method ShowMessage")]
  237. HRESULT ShowMessage([in] BSTR bstrMsg);
  238. [id(DISPID_IRESTORESHELL_FORMATLOWDISKMSG)]
  239. HRESULT FormatLowDiskMsg([in] BSTR bstrFmt, [out,retval] BSTR *pbstrMsg);
  240. [id(DISPID_IRESTORESHELL_CANRUNRESTORE), helpstring("method CanRunRestore")]
  241. HRESULT CanRunRestore([out,retval] VARIANT_BOOL *pfSucceeded);
  242. [id(DISPID_IRESTORESHELL_DISPLAYOTHERUSERSWARNING), helpstring("method DisplayOtherUsersWarning")]
  243. HRESULT DisplayOtherUsersWarning();
  244. [id(DISPID_IRESTORESHELL_DISPLAYMOVEFILEEXWARNING), helpstring("method DisplayMoveFileExWarning")]
  245. HRESULT DisplayMoveFileExWarning([out,retval] VARIANT_BOOL *pfSucceeded);
  246. [id(DISPID_IRESTORESHELL_WASLASTRESTOREFROMSAFEMODE), helpstring("method WasLastRestoreFromSafemode")]
  247. HRESULT WasLastRestoreFromSafeMode([out,retval] VARIANT_BOOL *pfSucceeded);
  248. };
  249. [
  250. object,
  251. uuid(cd7874b8-7d3a-11d3-b9e5-00c04f79e399),
  252. dual,
  253. helpstring("IRstrProgress Interface"),
  254. pointer_default(unique)
  255. ]
  256. interface IRstrProgress : IDispatch
  257. {
  258. //
  259. // Properties
  260. //
  261. [propput, id(DISPID_BACKCOLOR)]
  262. HRESULT BackColor([in]OLE_COLOR clr);
  263. [propget, id(DISPID_BACKCOLOR)]
  264. HRESULT BackColor([out,retval]OLE_COLOR* pclr);
  265. [propput, id(DISPID_FORECOLOR)]
  266. HRESULT ForeColor([in]OLE_COLOR clr);
  267. [propget, id(DISPID_FORECOLOR)]
  268. HRESULT ForeColor([out,retval]OLE_COLOR* pclr);
  269. [propget, id(DISPID_HWND)]
  270. HRESULT hWnd([out,retval] OLE_HANDLE *phWnd);
  271. [propput, id(DISPID_IRSTRPROGRESS_MAX)]
  272. HRESULT Max([in] long lMax);
  273. [propget, id(DISPID_IRSTRPROGRESS_MAX)]
  274. HRESULT Max([out,retval] long *plMax);
  275. [propput, id(DISPID_IRSTRPROGRESS_MIN)]
  276. HRESULT Min([in] long lMin);
  277. [propget, id(DISPID_IRSTRPROGRESS_MIN)]
  278. HRESULT Min([out,retval] long *plMin);
  279. [propput, id(DISPID_IRSTRPROGRESS_VALUE)]
  280. HRESULT Value([in] long lValue);
  281. [propget, id(DISPID_IRSTRPROGRESS_VALUE)]
  282. HRESULT Value([out,retval] long *plValue);
  283. };
  284. [
  285. uuid(e0732ca2-80dc-11d3-b9e6-00c04f79e399),
  286. helpstring("DRstrProgressEvents Interface")
  287. ]
  288. dispinterface DRstrProgressEvents
  289. {
  290. properties:
  291. methods:
  292. [id(DISPID_DRSTRPROGRESSEVENTS_ONCREATE)]
  293. void oncreate();
  294. };
  295. [
  296. uuid(bf404da2-7d3b-11d3-b9e5-00c04f79e399),
  297. helpstring("RstrProgress Class")
  298. ]
  299. coclass RstrProgress
  300. {
  301. [default] interface IRstrProgress;
  302. [default, source] dispinterface DRstrProgressEvents;
  303. };
  304. interface IRestoreShell;
  305. [
  306. uuid(fd589b7c-7ce0-11d3-b9e5-00c04f79e399),
  307. helpstring("RestoreShellExternal Class")
  308. ]
  309. coclass RestoreShellExternal
  310. {
  311. [default] interface IUnknown;
  312. };
  313. };