vswriter.h 143 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165
  1. /*** Autogenerated by WIDL 7.7 from include/vswriter.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __vswriter_h__
  14. #define __vswriter_h__
  15. /* Forward declarations */
  16. #ifndef __IVssWMFiledesc_FWD_DEFINED__
  17. #define __IVssWMFiledesc_FWD_DEFINED__
  18. typedef interface IVssWMFiledesc IVssWMFiledesc;
  19. #ifdef __cplusplus
  20. interface IVssWMFiledesc;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __IVssWMDependency_FWD_DEFINED__
  24. #define __IVssWMDependency_FWD_DEFINED__
  25. typedef interface IVssWMDependency IVssWMDependency;
  26. #ifdef __cplusplus
  27. interface IVssWMDependency;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __IVssComponent_FWD_DEFINED__
  31. #define __IVssComponent_FWD_DEFINED__
  32. typedef interface IVssComponent IVssComponent;
  33. #ifdef __cplusplus
  34. interface IVssComponent;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __IVssWriterComponents_FWD_DEFINED__
  38. #define __IVssWriterComponents_FWD_DEFINED__
  39. typedef interface IVssWriterComponents IVssWriterComponents;
  40. #ifdef __cplusplus
  41. interface IVssWriterComponents;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __IVssComponentEx_FWD_DEFINED__
  45. #define __IVssComponentEx_FWD_DEFINED__
  46. typedef interface IVssComponentEx IVssComponentEx;
  47. #ifdef __cplusplus
  48. interface IVssComponentEx;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __IVssComponentEx2_FWD_DEFINED__
  52. #define __IVssComponentEx2_FWD_DEFINED__
  53. typedef interface IVssComponentEx2 IVssComponentEx2;
  54. #ifdef __cplusplus
  55. interface IVssComponentEx2;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __IVssCreateWriterMetadata_FWD_DEFINED__
  59. #define __IVssCreateWriterMetadata_FWD_DEFINED__
  60. typedef interface IVssCreateWriterMetadata IVssCreateWriterMetadata;
  61. #ifdef __cplusplus
  62. interface IVssCreateWriterMetadata;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __IVssCreateWriterMetadataEx_FWD_DEFINED__
  66. #define __IVssCreateWriterMetadataEx_FWD_DEFINED__
  67. typedef interface IVssCreateWriterMetadataEx IVssCreateWriterMetadataEx;
  68. #ifdef __cplusplus
  69. interface IVssCreateWriterMetadataEx;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __IVssWriterImpl_FWD_DEFINED__
  73. #define __IVssWriterImpl_FWD_DEFINED__
  74. typedef interface IVssWriterImpl IVssWriterImpl;
  75. #ifdef __cplusplus
  76. interface IVssWriterImpl;
  77. #endif /* __cplusplus */
  78. #endif
  79. #ifndef __IVssCreateExpressWriterMetadata_FWD_DEFINED__
  80. #define __IVssCreateExpressWriterMetadata_FWD_DEFINED__
  81. typedef interface IVssCreateExpressWriterMetadata IVssCreateExpressWriterMetadata;
  82. #ifdef __cplusplus
  83. interface IVssCreateExpressWriterMetadata;
  84. #endif /* __cplusplus */
  85. #endif
  86. #ifndef __IVssExpressWriter_FWD_DEFINED__
  87. #define __IVssExpressWriter_FWD_DEFINED__
  88. typedef interface IVssExpressWriter IVssExpressWriter;
  89. #ifdef __cplusplus
  90. interface IVssExpressWriter;
  91. #endif /* __cplusplus */
  92. #endif
  93. /* Headers for imported files */
  94. #include <oaidl.h>
  95. #include <ocidl.h>
  96. #include <vss.h>
  97. #ifdef __cplusplus
  98. extern "C" {
  99. #endif
  100. #include <winapifamily.h>
  101. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  102. #include "vsserror.h"
  103. typedef enum VSS_USAGE_TYPE {
  104. VSS_UT_UNDEFINED = 0,
  105. VSS_UT_BOOTABLESYSTEMSTATE = 1,
  106. VSS_UT_SYSTEMSERVICE = 2,
  107. VSS_UT_USERDATA = 3,
  108. VSS_UT_OTHER = 4
  109. } VSS_USAGE_TYPE;
  110. typedef enum VSS_SOURCE_TYPE {
  111. VSS_ST_UNDEFINED = 0,
  112. VSS_ST_TRANSACTEDDB = 1,
  113. VSS_ST_NONTRANSACTEDDB = 2,
  114. VSS_ST_OTHER = 3
  115. } VSS_SOURCE_TYPE;
  116. typedef enum VSS_RESTOREMETHOD_ENUM {
  117. VSS_RME_UNDEFINED = 0,
  118. VSS_RME_RESTORE_IF_NOT_THERE = 1,
  119. VSS_RME_RESTORE_IF_CAN_REPLACE = 2,
  120. VSS_RME_STOP_RESTORE_START = 3,
  121. VSS_RME_RESTORE_TO_ALTERNATE_LOCATION = 4,
  122. VSS_RME_RESTORE_AT_REBOOT = 5,
  123. VSS_RME_RESTORE_AT_REBOOT_IF_CANNOT_REPLACE = 6,
  124. VSS_RME_CUSTOM = 7,
  125. VSS_RME_RESTORE_STOP_START = 8
  126. } VSS_RESTOREMETHOD_ENUM;
  127. typedef enum VSS_WRITERRESTORE_ENUM {
  128. VSS_WRE_UNDEFINED = 0,
  129. VSS_WRE_NEVER = 1,
  130. VSS_WRE_IF_REPLACE_FAILS = 2,
  131. VSS_WRE_ALWAYS = 3
  132. } VSS_WRITERRESTORE_ENUM;
  133. typedef enum VSS_COMPONENT_TYPE {
  134. VSS_CT_UNDEFINED = 0,
  135. VSS_CT_DATABASE = 1,
  136. VSS_CT_FILEGROUP = 2
  137. } VSS_COMPONENT_TYPE;
  138. typedef enum VSS_ALTERNATE_WRITER_STATE {
  139. VSS_AWS_UNDEFINED = 0,
  140. VSS_AWS_NO_ALTERNATE_WRITER = 1,
  141. VSS_AWS_ALTERNATE_WRITER_EXISTS = 2,
  142. VSS_AWS_THIS_IS_ALTERNATE_WRITER = 3
  143. } VSS_ALTERNATE_WRITER_STATE;
  144. typedef enum VSS_SUBSCRIBE_MASK {
  145. VSS_SM_POST_SNAPSHOT_FLAG = 0x1,
  146. VSS_SM_BACKUP_EVENTS_FLAG = 0x2,
  147. VSS_SM_RESTORE_EVENTS_FLAG = 0x4,
  148. VSS_SM_IO_THROTTLING_FLAG = 0x8,
  149. VSS_SM_ALL_FLAGS = 0xffffffff
  150. } VSS_SUBSCRIBE_MASK;
  151. typedef enum VSS_RESTORE_TARGET {
  152. VSS_RT_UNDEFINED = 0,
  153. VSS_RT_ORIGINAL = 1,
  154. VSS_RT_ALTERNATE = 2,
  155. VSS_RT_DIRECTED = 3,
  156. VSS_RT_ORIGINAL_LOCATION = 4
  157. } VSS_RESTORE_TARGET;
  158. typedef enum VSS_FILE_RESTORE_STATUS {
  159. VSS_RS_UNDEFINED = 0,
  160. VSS_RS_NONE = 1,
  161. VSS_RS_ALL = 2,
  162. VSS_RS_FAILED = 3
  163. } VSS_FILE_RESTORE_STATUS;
  164. typedef enum VSS_COMPONENT_FLAGS {
  165. VSS_CF_BACKUP_RECOVERY = 0x1,
  166. VSS_CF_APP_ROLLBACK_RECOVERY = 0x2,
  167. VSS_CF_NOT_SYSTEM_STATE = 0x4
  168. } VSS_COMPONENT_FLAGS;
  169. #ifndef __IVssExamineWriterMetadata_FWD_DEFINED__
  170. #define __IVssExamineWriterMetadata_FWD_DEFINED__
  171. typedef interface IVssExamineWriterMetadata IVssExamineWriterMetadata;
  172. #ifdef __cplusplus
  173. interface IVssExamineWriterMetadata;
  174. #endif /* __cplusplus */
  175. #endif
  176. /*****************************************************************************
  177. * IVssWMFiledesc interface
  178. */
  179. #ifndef __IVssWMFiledesc_INTERFACE_DEFINED__
  180. #define __IVssWMFiledesc_INTERFACE_DEFINED__
  181. DEFINE_GUID(IID_IVssWMFiledesc, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00);
  182. #if defined(__cplusplus) && !defined(CINTERFACE)
  183. MIDL_INTERFACE("00000000-0000-0000-0000-000000000000")
  184. IVssWMFiledesc : public IUnknown
  185. {
  186. virtual HRESULT STDMETHODCALLTYPE GetPath(
  187. BSTR *pbstrPath) = 0;
  188. virtual HRESULT STDMETHODCALLTYPE GetFilespec(
  189. BSTR *pbstrFilespec) = 0;
  190. virtual HRESULT STDMETHODCALLTYPE GetRecursive(
  191. boolean *pbRecursive) = 0;
  192. virtual HRESULT STDMETHODCALLTYPE GetAlternateLocation(
  193. BSTR *pbstrAlternateLocation) = 0;
  194. virtual HRESULT STDMETHODCALLTYPE GetBackupTypeMask(
  195. DWORD *pdwTypeMask) = 0;
  196. };
  197. #ifdef __CRT_UUID_DECL
  198. __CRT_UUID_DECL(IVssWMFiledesc, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00)
  199. #endif
  200. #else
  201. typedef struct IVssWMFiledescVtbl {
  202. BEGIN_INTERFACE
  203. /*** IUnknown methods ***/
  204. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  205. IVssWMFiledesc *This,
  206. REFIID riid,
  207. void **ppvObject);
  208. ULONG (STDMETHODCALLTYPE *AddRef)(
  209. IVssWMFiledesc *This);
  210. ULONG (STDMETHODCALLTYPE *Release)(
  211. IVssWMFiledesc *This);
  212. /*** IVssWMFiledesc methods ***/
  213. HRESULT (STDMETHODCALLTYPE *GetPath)(
  214. IVssWMFiledesc *This,
  215. BSTR *pbstrPath);
  216. HRESULT (STDMETHODCALLTYPE *GetFilespec)(
  217. IVssWMFiledesc *This,
  218. BSTR *pbstrFilespec);
  219. HRESULT (STDMETHODCALLTYPE *GetRecursive)(
  220. IVssWMFiledesc *This,
  221. boolean *pbRecursive);
  222. HRESULT (STDMETHODCALLTYPE *GetAlternateLocation)(
  223. IVssWMFiledesc *This,
  224. BSTR *pbstrAlternateLocation);
  225. HRESULT (STDMETHODCALLTYPE *GetBackupTypeMask)(
  226. IVssWMFiledesc *This,
  227. DWORD *pdwTypeMask);
  228. END_INTERFACE
  229. } IVssWMFiledescVtbl;
  230. interface IVssWMFiledesc {
  231. CONST_VTBL IVssWMFiledescVtbl* lpVtbl;
  232. };
  233. #ifdef COBJMACROS
  234. #ifndef WIDL_C_INLINE_WRAPPERS
  235. /*** IUnknown methods ***/
  236. #define IVssWMFiledesc_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  237. #define IVssWMFiledesc_AddRef(This) (This)->lpVtbl->AddRef(This)
  238. #define IVssWMFiledesc_Release(This) (This)->lpVtbl->Release(This)
  239. /*** IVssWMFiledesc methods ***/
  240. #define IVssWMFiledesc_GetPath(This,pbstrPath) (This)->lpVtbl->GetPath(This,pbstrPath)
  241. #define IVssWMFiledesc_GetFilespec(This,pbstrFilespec) (This)->lpVtbl->GetFilespec(This,pbstrFilespec)
  242. #define IVssWMFiledesc_GetRecursive(This,pbRecursive) (This)->lpVtbl->GetRecursive(This,pbRecursive)
  243. #define IVssWMFiledesc_GetAlternateLocation(This,pbstrAlternateLocation) (This)->lpVtbl->GetAlternateLocation(This,pbstrAlternateLocation)
  244. #define IVssWMFiledesc_GetBackupTypeMask(This,pdwTypeMask) (This)->lpVtbl->GetBackupTypeMask(This,pdwTypeMask)
  245. #else
  246. /*** IUnknown methods ***/
  247. static FORCEINLINE HRESULT IVssWMFiledesc_QueryInterface(IVssWMFiledesc* This,REFIID riid,void **ppvObject) {
  248. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  249. }
  250. static FORCEINLINE ULONG IVssWMFiledesc_AddRef(IVssWMFiledesc* This) {
  251. return This->lpVtbl->AddRef(This);
  252. }
  253. static FORCEINLINE ULONG IVssWMFiledesc_Release(IVssWMFiledesc* This) {
  254. return This->lpVtbl->Release(This);
  255. }
  256. /*** IVssWMFiledesc methods ***/
  257. static FORCEINLINE HRESULT IVssWMFiledesc_GetPath(IVssWMFiledesc* This,BSTR *pbstrPath) {
  258. return This->lpVtbl->GetPath(This,pbstrPath);
  259. }
  260. static FORCEINLINE HRESULT IVssWMFiledesc_GetFilespec(IVssWMFiledesc* This,BSTR *pbstrFilespec) {
  261. return This->lpVtbl->GetFilespec(This,pbstrFilespec);
  262. }
  263. static FORCEINLINE HRESULT IVssWMFiledesc_GetRecursive(IVssWMFiledesc* This,boolean *pbRecursive) {
  264. return This->lpVtbl->GetRecursive(This,pbRecursive);
  265. }
  266. static FORCEINLINE HRESULT IVssWMFiledesc_GetAlternateLocation(IVssWMFiledesc* This,BSTR *pbstrAlternateLocation) {
  267. return This->lpVtbl->GetAlternateLocation(This,pbstrAlternateLocation);
  268. }
  269. static FORCEINLINE HRESULT IVssWMFiledesc_GetBackupTypeMask(IVssWMFiledesc* This,DWORD *pdwTypeMask) {
  270. return This->lpVtbl->GetBackupTypeMask(This,pdwTypeMask);
  271. }
  272. #endif
  273. #endif
  274. #endif
  275. #endif /* __IVssWMFiledesc_INTERFACE_DEFINED__ */
  276. /*****************************************************************************
  277. * IVssWMDependency interface
  278. */
  279. #ifndef __IVssWMDependency_INTERFACE_DEFINED__
  280. #define __IVssWMDependency_INTERFACE_DEFINED__
  281. DEFINE_GUID(IID_IVssWMDependency, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00);
  282. #if defined(__cplusplus) && !defined(CINTERFACE)
  283. MIDL_INTERFACE("00000000-0000-0000-0000-000000000000")
  284. IVssWMDependency : public IUnknown
  285. {
  286. virtual HRESULT STDMETHODCALLTYPE GetWriterId(
  287. VSS_ID *pWriterId) = 0;
  288. virtual HRESULT STDMETHODCALLTYPE GetLogicalPath(
  289. BSTR *pbstrLogicalPath) = 0;
  290. virtual HRESULT STDMETHODCALLTYPE GetComponentName(
  291. BSTR *pbstrComponentName) = 0;
  292. };
  293. #ifdef __CRT_UUID_DECL
  294. __CRT_UUID_DECL(IVssWMDependency, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00)
  295. #endif
  296. #else
  297. typedef struct IVssWMDependencyVtbl {
  298. BEGIN_INTERFACE
  299. /*** IUnknown methods ***/
  300. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  301. IVssWMDependency *This,
  302. REFIID riid,
  303. void **ppvObject);
  304. ULONG (STDMETHODCALLTYPE *AddRef)(
  305. IVssWMDependency *This);
  306. ULONG (STDMETHODCALLTYPE *Release)(
  307. IVssWMDependency *This);
  308. /*** IVssWMDependency methods ***/
  309. HRESULT (STDMETHODCALLTYPE *GetWriterId)(
  310. IVssWMDependency *This,
  311. VSS_ID *pWriterId);
  312. HRESULT (STDMETHODCALLTYPE *GetLogicalPath)(
  313. IVssWMDependency *This,
  314. BSTR *pbstrLogicalPath);
  315. HRESULT (STDMETHODCALLTYPE *GetComponentName)(
  316. IVssWMDependency *This,
  317. BSTR *pbstrComponentName);
  318. END_INTERFACE
  319. } IVssWMDependencyVtbl;
  320. interface IVssWMDependency {
  321. CONST_VTBL IVssWMDependencyVtbl* lpVtbl;
  322. };
  323. #ifdef COBJMACROS
  324. #ifndef WIDL_C_INLINE_WRAPPERS
  325. /*** IUnknown methods ***/
  326. #define IVssWMDependency_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  327. #define IVssWMDependency_AddRef(This) (This)->lpVtbl->AddRef(This)
  328. #define IVssWMDependency_Release(This) (This)->lpVtbl->Release(This)
  329. /*** IVssWMDependency methods ***/
  330. #define IVssWMDependency_GetWriterId(This,pWriterId) (This)->lpVtbl->GetWriterId(This,pWriterId)
  331. #define IVssWMDependency_GetLogicalPath(This,pbstrLogicalPath) (This)->lpVtbl->GetLogicalPath(This,pbstrLogicalPath)
  332. #define IVssWMDependency_GetComponentName(This,pbstrComponentName) (This)->lpVtbl->GetComponentName(This,pbstrComponentName)
  333. #else
  334. /*** IUnknown methods ***/
  335. static FORCEINLINE HRESULT IVssWMDependency_QueryInterface(IVssWMDependency* This,REFIID riid,void **ppvObject) {
  336. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  337. }
  338. static FORCEINLINE ULONG IVssWMDependency_AddRef(IVssWMDependency* This) {
  339. return This->lpVtbl->AddRef(This);
  340. }
  341. static FORCEINLINE ULONG IVssWMDependency_Release(IVssWMDependency* This) {
  342. return This->lpVtbl->Release(This);
  343. }
  344. /*** IVssWMDependency methods ***/
  345. static FORCEINLINE HRESULT IVssWMDependency_GetWriterId(IVssWMDependency* This,VSS_ID *pWriterId) {
  346. return This->lpVtbl->GetWriterId(This,pWriterId);
  347. }
  348. static FORCEINLINE HRESULT IVssWMDependency_GetLogicalPath(IVssWMDependency* This,BSTR *pbstrLogicalPath) {
  349. return This->lpVtbl->GetLogicalPath(This,pbstrLogicalPath);
  350. }
  351. static FORCEINLINE HRESULT IVssWMDependency_GetComponentName(IVssWMDependency* This,BSTR *pbstrComponentName) {
  352. return This->lpVtbl->GetComponentName(This,pbstrComponentName);
  353. }
  354. #endif
  355. #endif
  356. #endif
  357. #endif /* __IVssWMDependency_INTERFACE_DEFINED__ */
  358. /*****************************************************************************
  359. * IVssComponent interface
  360. */
  361. #ifndef __IVssComponent_INTERFACE_DEFINED__
  362. #define __IVssComponent_INTERFACE_DEFINED__
  363. DEFINE_GUID(IID_IVssComponent, 0xd2c72c96, 0xc121, 0x4518, 0xb6,0x27, 0xe5,0xa9,0x3d,0x01,0x0e,0xad);
  364. #if defined(__cplusplus) && !defined(CINTERFACE)
  365. MIDL_INTERFACE("d2c72c96-c121-4518-b627-e5a93d010ead")
  366. IVssComponent : public IUnknown
  367. {
  368. virtual HRESULT STDMETHODCALLTYPE GetLogicalPath(
  369. BSTR *pbstrPath) = 0;
  370. virtual HRESULT STDMETHODCALLTYPE GetComponentType(
  371. VSS_COMPONENT_TYPE *pct) = 0;
  372. virtual HRESULT STDMETHODCALLTYPE GetComponentName(
  373. BSTR *pbstrName) = 0;
  374. virtual HRESULT STDMETHODCALLTYPE GetBackupSucceeded(
  375. boolean *pbSucceeded) = 0;
  376. virtual HRESULT STDMETHODCALLTYPE GetAlternateLocationMappingCount(
  377. UINT *pcMappings) = 0;
  378. virtual HRESULT STDMETHODCALLTYPE GetAlternateLocationMapping(
  379. UINT iMapping,
  380. IVssWMFiledesc **ppFiledesc) = 0;
  381. virtual HRESULT STDMETHODCALLTYPE SetBackupMetadata(
  382. LPCWSTR wszData) = 0;
  383. virtual HRESULT STDMETHODCALLTYPE GetBackupMetadata(
  384. BSTR *pbstrData) = 0;
  385. virtual HRESULT STDMETHODCALLTYPE AddPartialFile(
  386. LPCWSTR wszPath,
  387. LPCWSTR wszFilename,
  388. LPCWSTR wszRanges,
  389. LPCWSTR wszMetadata) = 0;
  390. virtual HRESULT STDMETHODCALLTYPE GetPartialFileCount(
  391. UINT *pcPartialFiles) = 0;
  392. virtual HRESULT STDMETHODCALLTYPE GetPartialFile(
  393. UINT iPartialFile,
  394. BSTR *pbstrPath,
  395. BSTR *pbstrFilename,
  396. BSTR *pbstrRange,
  397. BSTR *pbstrMetadata) = 0;
  398. virtual HRESULT STDMETHODCALLTYPE IsSelectedForRestore(
  399. boolean *pbSelectedForRestore) = 0;
  400. virtual HRESULT STDMETHODCALLTYPE GetAdditionalRestores(
  401. boolean *pbAdditionalRestores) = 0;
  402. virtual HRESULT STDMETHODCALLTYPE GetNewTargetCount(
  403. UINT *pcNewTarget) = 0;
  404. virtual HRESULT STDMETHODCALLTYPE GetNewTarget(
  405. UINT iNewTarget,
  406. IVssWMFiledesc **ppFiledesc) = 0;
  407. virtual HRESULT STDMETHODCALLTYPE AddDirectedTarget(
  408. LPCWSTR wszSourcePath,
  409. LPCWSTR wszSourceFilename,
  410. LPCWSTR wszSourceRangeList,
  411. LPCWSTR wszDestinationPath,
  412. LPCWSTR wszDestinationFilename,
  413. LPCWSTR wszDestinationRangeList) = 0;
  414. virtual HRESULT STDMETHODCALLTYPE GetDirectedTargetCount(
  415. UINT *pcDirectedTarget) = 0;
  416. virtual HRESULT STDMETHODCALLTYPE GetDirectedTarget(
  417. UINT iDirectedTarget,
  418. BSTR *pbstrSourcePath,
  419. BSTR *pbstrSourceFileName,
  420. BSTR *pbstrSourceRangeList,
  421. BSTR *pbstrDestinationPath,
  422. BSTR *pbstrDestinationFilename,
  423. BSTR *pbstrDestinationRangeList) = 0;
  424. virtual HRESULT STDMETHODCALLTYPE SetRestoreMetadata(
  425. LPCWSTR wszRestoreMetadata) = 0;
  426. virtual HRESULT STDMETHODCALLTYPE GetRestoreMetadata(
  427. BSTR *pbstrRestoreMetadata) = 0;
  428. virtual HRESULT STDMETHODCALLTYPE SetRestoreTarget(
  429. VSS_RESTORE_TARGET target) = 0;
  430. virtual HRESULT STDMETHODCALLTYPE GetRestoreTarget(
  431. VSS_RESTORE_TARGET *pTarget) = 0;
  432. virtual HRESULT STDMETHODCALLTYPE SetPreRestoreFailureMsg(
  433. LPCWSTR wszPreRestoreFailureMsg) = 0;
  434. virtual HRESULT STDMETHODCALLTYPE GetPreRestoreFailureMsg(
  435. BSTR *pbstrPreRestoreFailureMsg) = 0;
  436. virtual HRESULT STDMETHODCALLTYPE SetPostRestoreFailureMsg(
  437. LPCWSTR wszPostRestoreFailureMsg) = 0;
  438. virtual HRESULT STDMETHODCALLTYPE GetPostRestoreFailureMsg(
  439. BSTR *pbstrPostRestoreFailureMsg) = 0;
  440. virtual HRESULT STDMETHODCALLTYPE SetBackupStamp(
  441. LPCWSTR wszBackupStamp) = 0;
  442. virtual HRESULT STDMETHODCALLTYPE GetBackupStamp(
  443. BSTR *pbstrBackupStamp) = 0;
  444. virtual HRESULT STDMETHODCALLTYPE GetPreviousBackupStamp(
  445. BSTR *pbstrBackupStamp) = 0;
  446. virtual HRESULT STDMETHODCALLTYPE GetBackupOptions(
  447. BSTR *pbstrBackupOptions) = 0;
  448. virtual HRESULT STDMETHODCALLTYPE GetRestoreOptions(
  449. BSTR *pbstrRestoreOptions) = 0;
  450. virtual HRESULT STDMETHODCALLTYPE GetRestoreSubcomponentCount(
  451. UINT *pcRestoreSubcomponent) = 0;
  452. virtual HRESULT STDMETHODCALLTYPE GetRestoreSubcomponent(
  453. UINT iComponent,
  454. BSTR *pbstrLogicalPath,
  455. BSTR *pbstrComponentName,
  456. boolean *pbRepair) = 0;
  457. virtual HRESULT STDMETHODCALLTYPE GetFileRestoreStatus(
  458. VSS_FILE_RESTORE_STATUS *pStatus) = 0;
  459. virtual HRESULT STDMETHODCALLTYPE AddDifferencedFilesByLastModifyTime(
  460. LPCWSTR wszPath,
  461. LPCWSTR wszFilespec,
  462. WINBOOL bRecursive,
  463. FILETIME ftLastModifyTime) = 0;
  464. virtual HRESULT STDMETHODCALLTYPE AddDifferencedFilesByLastModifyLSN(
  465. LPCWSTR wszPath,
  466. LPCWSTR wszFilespec,
  467. WINBOOL bRecursive,
  468. BSTR bstrLsnString) = 0;
  469. virtual HRESULT STDMETHODCALLTYPE GetDifferencedFilesCount(
  470. UINT *pcDifferencedFiles) = 0;
  471. virtual HRESULT STDMETHODCALLTYPE GetDifferencedFile(
  472. UINT iDifferencedFile,
  473. BSTR *pbstrPath,
  474. BSTR *pbstrFilespec,
  475. WINBOOL *pbRecursive,
  476. BSTR *pbstrLsnString,
  477. FILETIME *pftLastModifyTime) = 0;
  478. };
  479. #ifdef __CRT_UUID_DECL
  480. __CRT_UUID_DECL(IVssComponent, 0xd2c72c96, 0xc121, 0x4518, 0xb6,0x27, 0xe5,0xa9,0x3d,0x01,0x0e,0xad)
  481. #endif
  482. #else
  483. typedef struct IVssComponentVtbl {
  484. BEGIN_INTERFACE
  485. /*** IUnknown methods ***/
  486. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  487. IVssComponent *This,
  488. REFIID riid,
  489. void **ppvObject);
  490. ULONG (STDMETHODCALLTYPE *AddRef)(
  491. IVssComponent *This);
  492. ULONG (STDMETHODCALLTYPE *Release)(
  493. IVssComponent *This);
  494. /*** IVssComponent methods ***/
  495. HRESULT (STDMETHODCALLTYPE *GetLogicalPath)(
  496. IVssComponent *This,
  497. BSTR *pbstrPath);
  498. HRESULT (STDMETHODCALLTYPE *GetComponentType)(
  499. IVssComponent *This,
  500. VSS_COMPONENT_TYPE *pct);
  501. HRESULT (STDMETHODCALLTYPE *GetComponentName)(
  502. IVssComponent *This,
  503. BSTR *pbstrName);
  504. HRESULT (STDMETHODCALLTYPE *GetBackupSucceeded)(
  505. IVssComponent *This,
  506. boolean *pbSucceeded);
  507. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMappingCount)(
  508. IVssComponent *This,
  509. UINT *pcMappings);
  510. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMapping)(
  511. IVssComponent *This,
  512. UINT iMapping,
  513. IVssWMFiledesc **ppFiledesc);
  514. HRESULT (STDMETHODCALLTYPE *SetBackupMetadata)(
  515. IVssComponent *This,
  516. LPCWSTR wszData);
  517. HRESULT (STDMETHODCALLTYPE *GetBackupMetadata)(
  518. IVssComponent *This,
  519. BSTR *pbstrData);
  520. HRESULT (STDMETHODCALLTYPE *AddPartialFile)(
  521. IVssComponent *This,
  522. LPCWSTR wszPath,
  523. LPCWSTR wszFilename,
  524. LPCWSTR wszRanges,
  525. LPCWSTR wszMetadata);
  526. HRESULT (STDMETHODCALLTYPE *GetPartialFileCount)(
  527. IVssComponent *This,
  528. UINT *pcPartialFiles);
  529. HRESULT (STDMETHODCALLTYPE *GetPartialFile)(
  530. IVssComponent *This,
  531. UINT iPartialFile,
  532. BSTR *pbstrPath,
  533. BSTR *pbstrFilename,
  534. BSTR *pbstrRange,
  535. BSTR *pbstrMetadata);
  536. HRESULT (STDMETHODCALLTYPE *IsSelectedForRestore)(
  537. IVssComponent *This,
  538. boolean *pbSelectedForRestore);
  539. HRESULT (STDMETHODCALLTYPE *GetAdditionalRestores)(
  540. IVssComponent *This,
  541. boolean *pbAdditionalRestores);
  542. HRESULT (STDMETHODCALLTYPE *GetNewTargetCount)(
  543. IVssComponent *This,
  544. UINT *pcNewTarget);
  545. HRESULT (STDMETHODCALLTYPE *GetNewTarget)(
  546. IVssComponent *This,
  547. UINT iNewTarget,
  548. IVssWMFiledesc **ppFiledesc);
  549. HRESULT (STDMETHODCALLTYPE *AddDirectedTarget)(
  550. IVssComponent *This,
  551. LPCWSTR wszSourcePath,
  552. LPCWSTR wszSourceFilename,
  553. LPCWSTR wszSourceRangeList,
  554. LPCWSTR wszDestinationPath,
  555. LPCWSTR wszDestinationFilename,
  556. LPCWSTR wszDestinationRangeList);
  557. HRESULT (STDMETHODCALLTYPE *GetDirectedTargetCount)(
  558. IVssComponent *This,
  559. UINT *pcDirectedTarget);
  560. HRESULT (STDMETHODCALLTYPE *GetDirectedTarget)(
  561. IVssComponent *This,
  562. UINT iDirectedTarget,
  563. BSTR *pbstrSourcePath,
  564. BSTR *pbstrSourceFileName,
  565. BSTR *pbstrSourceRangeList,
  566. BSTR *pbstrDestinationPath,
  567. BSTR *pbstrDestinationFilename,
  568. BSTR *pbstrDestinationRangeList);
  569. HRESULT (STDMETHODCALLTYPE *SetRestoreMetadata)(
  570. IVssComponent *This,
  571. LPCWSTR wszRestoreMetadata);
  572. HRESULT (STDMETHODCALLTYPE *GetRestoreMetadata)(
  573. IVssComponent *This,
  574. BSTR *pbstrRestoreMetadata);
  575. HRESULT (STDMETHODCALLTYPE *SetRestoreTarget)(
  576. IVssComponent *This,
  577. VSS_RESTORE_TARGET target);
  578. HRESULT (STDMETHODCALLTYPE *GetRestoreTarget)(
  579. IVssComponent *This,
  580. VSS_RESTORE_TARGET *pTarget);
  581. HRESULT (STDMETHODCALLTYPE *SetPreRestoreFailureMsg)(
  582. IVssComponent *This,
  583. LPCWSTR wszPreRestoreFailureMsg);
  584. HRESULT (STDMETHODCALLTYPE *GetPreRestoreFailureMsg)(
  585. IVssComponent *This,
  586. BSTR *pbstrPreRestoreFailureMsg);
  587. HRESULT (STDMETHODCALLTYPE *SetPostRestoreFailureMsg)(
  588. IVssComponent *This,
  589. LPCWSTR wszPostRestoreFailureMsg);
  590. HRESULT (STDMETHODCALLTYPE *GetPostRestoreFailureMsg)(
  591. IVssComponent *This,
  592. BSTR *pbstrPostRestoreFailureMsg);
  593. HRESULT (STDMETHODCALLTYPE *SetBackupStamp)(
  594. IVssComponent *This,
  595. LPCWSTR wszBackupStamp);
  596. HRESULT (STDMETHODCALLTYPE *GetBackupStamp)(
  597. IVssComponent *This,
  598. BSTR *pbstrBackupStamp);
  599. HRESULT (STDMETHODCALLTYPE *GetPreviousBackupStamp)(
  600. IVssComponent *This,
  601. BSTR *pbstrBackupStamp);
  602. HRESULT (STDMETHODCALLTYPE *GetBackupOptions)(
  603. IVssComponent *This,
  604. BSTR *pbstrBackupOptions);
  605. HRESULT (STDMETHODCALLTYPE *GetRestoreOptions)(
  606. IVssComponent *This,
  607. BSTR *pbstrRestoreOptions);
  608. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponentCount)(
  609. IVssComponent *This,
  610. UINT *pcRestoreSubcomponent);
  611. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponent)(
  612. IVssComponent *This,
  613. UINT iComponent,
  614. BSTR *pbstrLogicalPath,
  615. BSTR *pbstrComponentName,
  616. boolean *pbRepair);
  617. HRESULT (STDMETHODCALLTYPE *GetFileRestoreStatus)(
  618. IVssComponent *This,
  619. VSS_FILE_RESTORE_STATUS *pStatus);
  620. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyTime)(
  621. IVssComponent *This,
  622. LPCWSTR wszPath,
  623. LPCWSTR wszFilespec,
  624. WINBOOL bRecursive,
  625. FILETIME ftLastModifyTime);
  626. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyLSN)(
  627. IVssComponent *This,
  628. LPCWSTR wszPath,
  629. LPCWSTR wszFilespec,
  630. WINBOOL bRecursive,
  631. BSTR bstrLsnString);
  632. HRESULT (STDMETHODCALLTYPE *GetDifferencedFilesCount)(
  633. IVssComponent *This,
  634. UINT *pcDifferencedFiles);
  635. HRESULT (STDMETHODCALLTYPE *GetDifferencedFile)(
  636. IVssComponent *This,
  637. UINT iDifferencedFile,
  638. BSTR *pbstrPath,
  639. BSTR *pbstrFilespec,
  640. WINBOOL *pbRecursive,
  641. BSTR *pbstrLsnString,
  642. FILETIME *pftLastModifyTime);
  643. END_INTERFACE
  644. } IVssComponentVtbl;
  645. interface IVssComponent {
  646. CONST_VTBL IVssComponentVtbl* lpVtbl;
  647. };
  648. #ifdef COBJMACROS
  649. #ifndef WIDL_C_INLINE_WRAPPERS
  650. /*** IUnknown methods ***/
  651. #define IVssComponent_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  652. #define IVssComponent_AddRef(This) (This)->lpVtbl->AddRef(This)
  653. #define IVssComponent_Release(This) (This)->lpVtbl->Release(This)
  654. /*** IVssComponent methods ***/
  655. #define IVssComponent_GetLogicalPath(This,pbstrPath) (This)->lpVtbl->GetLogicalPath(This,pbstrPath)
  656. #define IVssComponent_GetComponentType(This,pct) (This)->lpVtbl->GetComponentType(This,pct)
  657. #define IVssComponent_GetComponentName(This,pbstrName) (This)->lpVtbl->GetComponentName(This,pbstrName)
  658. #define IVssComponent_GetBackupSucceeded(This,pbSucceeded) (This)->lpVtbl->GetBackupSucceeded(This,pbSucceeded)
  659. #define IVssComponent_GetAlternateLocationMappingCount(This,pcMappings) (This)->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings)
  660. #define IVssComponent_GetAlternateLocationMapping(This,iMapping,ppFiledesc) (This)->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc)
  661. #define IVssComponent_SetBackupMetadata(This,wszData) (This)->lpVtbl->SetBackupMetadata(This,wszData)
  662. #define IVssComponent_GetBackupMetadata(This,pbstrData) (This)->lpVtbl->GetBackupMetadata(This,pbstrData)
  663. #define IVssComponent_AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata) (This)->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata)
  664. #define IVssComponent_GetPartialFileCount(This,pcPartialFiles) (This)->lpVtbl->GetPartialFileCount(This,pcPartialFiles)
  665. #define IVssComponent_GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata) (This)->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata)
  666. #define IVssComponent_IsSelectedForRestore(This,pbSelectedForRestore) (This)->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore)
  667. #define IVssComponent_GetAdditionalRestores(This,pbAdditionalRestores) (This)->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores)
  668. #define IVssComponent_GetNewTargetCount(This,pcNewTarget) (This)->lpVtbl->GetNewTargetCount(This,pcNewTarget)
  669. #define IVssComponent_GetNewTarget(This,iNewTarget,ppFiledesc) (This)->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc)
  670. #define IVssComponent_AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList) (This)->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList)
  671. #define IVssComponent_GetDirectedTargetCount(This,pcDirectedTarget) (This)->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget)
  672. #define IVssComponent_GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList) (This)->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList)
  673. #define IVssComponent_SetRestoreMetadata(This,wszRestoreMetadata) (This)->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata)
  674. #define IVssComponent_GetRestoreMetadata(This,pbstrRestoreMetadata) (This)->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata)
  675. #define IVssComponent_SetRestoreTarget(This,target) (This)->lpVtbl->SetRestoreTarget(This,target)
  676. #define IVssComponent_GetRestoreTarget(This,pTarget) (This)->lpVtbl->GetRestoreTarget(This,pTarget)
  677. #define IVssComponent_SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg) (This)->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg)
  678. #define IVssComponent_GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg) (This)->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg)
  679. #define IVssComponent_SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg) (This)->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg)
  680. #define IVssComponent_GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg) (This)->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg)
  681. #define IVssComponent_SetBackupStamp(This,wszBackupStamp) (This)->lpVtbl->SetBackupStamp(This,wszBackupStamp)
  682. #define IVssComponent_GetBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetBackupStamp(This,pbstrBackupStamp)
  683. #define IVssComponent_GetPreviousBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp)
  684. #define IVssComponent_GetBackupOptions(This,pbstrBackupOptions) (This)->lpVtbl->GetBackupOptions(This,pbstrBackupOptions)
  685. #define IVssComponent_GetRestoreOptions(This,pbstrRestoreOptions) (This)->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions)
  686. #define IVssComponent_GetRestoreSubcomponentCount(This,pcRestoreSubcomponent) (This)->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent)
  687. #define IVssComponent_GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair) (This)->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair)
  688. #define IVssComponent_GetFileRestoreStatus(This,pStatus) (This)->lpVtbl->GetFileRestoreStatus(This,pStatus)
  689. #define IVssComponent_AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime) (This)->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime)
  690. #define IVssComponent_AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString) (This)->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString)
  691. #define IVssComponent_GetDifferencedFilesCount(This,pcDifferencedFiles) (This)->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles)
  692. #define IVssComponent_GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime) (This)->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime)
  693. #else
  694. /*** IUnknown methods ***/
  695. static FORCEINLINE HRESULT IVssComponent_QueryInterface(IVssComponent* This,REFIID riid,void **ppvObject) {
  696. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  697. }
  698. static FORCEINLINE ULONG IVssComponent_AddRef(IVssComponent* This) {
  699. return This->lpVtbl->AddRef(This);
  700. }
  701. static FORCEINLINE ULONG IVssComponent_Release(IVssComponent* This) {
  702. return This->lpVtbl->Release(This);
  703. }
  704. /*** IVssComponent methods ***/
  705. static FORCEINLINE HRESULT IVssComponent_GetLogicalPath(IVssComponent* This,BSTR *pbstrPath) {
  706. return This->lpVtbl->GetLogicalPath(This,pbstrPath);
  707. }
  708. static FORCEINLINE HRESULT IVssComponent_GetComponentType(IVssComponent* This,VSS_COMPONENT_TYPE *pct) {
  709. return This->lpVtbl->GetComponentType(This,pct);
  710. }
  711. static FORCEINLINE HRESULT IVssComponent_GetComponentName(IVssComponent* This,BSTR *pbstrName) {
  712. return This->lpVtbl->GetComponentName(This,pbstrName);
  713. }
  714. static FORCEINLINE HRESULT IVssComponent_GetBackupSucceeded(IVssComponent* This,boolean *pbSucceeded) {
  715. return This->lpVtbl->GetBackupSucceeded(This,pbSucceeded);
  716. }
  717. static FORCEINLINE HRESULT IVssComponent_GetAlternateLocationMappingCount(IVssComponent* This,UINT *pcMappings) {
  718. return This->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings);
  719. }
  720. static FORCEINLINE HRESULT IVssComponent_GetAlternateLocationMapping(IVssComponent* This,UINT iMapping,IVssWMFiledesc **ppFiledesc) {
  721. return This->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc);
  722. }
  723. static FORCEINLINE HRESULT IVssComponent_SetBackupMetadata(IVssComponent* This,LPCWSTR wszData) {
  724. return This->lpVtbl->SetBackupMetadata(This,wszData);
  725. }
  726. static FORCEINLINE HRESULT IVssComponent_GetBackupMetadata(IVssComponent* This,BSTR *pbstrData) {
  727. return This->lpVtbl->GetBackupMetadata(This,pbstrData);
  728. }
  729. static FORCEINLINE HRESULT IVssComponent_AddPartialFile(IVssComponent* This,LPCWSTR wszPath,LPCWSTR wszFilename,LPCWSTR wszRanges,LPCWSTR wszMetadata) {
  730. return This->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata);
  731. }
  732. static FORCEINLINE HRESULT IVssComponent_GetPartialFileCount(IVssComponent* This,UINT *pcPartialFiles) {
  733. return This->lpVtbl->GetPartialFileCount(This,pcPartialFiles);
  734. }
  735. static FORCEINLINE HRESULT IVssComponent_GetPartialFile(IVssComponent* This,UINT iPartialFile,BSTR *pbstrPath,BSTR *pbstrFilename,BSTR *pbstrRange,BSTR *pbstrMetadata) {
  736. return This->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata);
  737. }
  738. static FORCEINLINE HRESULT IVssComponent_IsSelectedForRestore(IVssComponent* This,boolean *pbSelectedForRestore) {
  739. return This->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore);
  740. }
  741. static FORCEINLINE HRESULT IVssComponent_GetAdditionalRestores(IVssComponent* This,boolean *pbAdditionalRestores) {
  742. return This->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores);
  743. }
  744. static FORCEINLINE HRESULT IVssComponent_GetNewTargetCount(IVssComponent* This,UINT *pcNewTarget) {
  745. return This->lpVtbl->GetNewTargetCount(This,pcNewTarget);
  746. }
  747. static FORCEINLINE HRESULT IVssComponent_GetNewTarget(IVssComponent* This,UINT iNewTarget,IVssWMFiledesc **ppFiledesc) {
  748. return This->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc);
  749. }
  750. static FORCEINLINE HRESULT IVssComponent_AddDirectedTarget(IVssComponent* This,LPCWSTR wszSourcePath,LPCWSTR wszSourceFilename,LPCWSTR wszSourceRangeList,LPCWSTR wszDestinationPath,LPCWSTR wszDestinationFilename,LPCWSTR wszDestinationRangeList) {
  751. return This->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList);
  752. }
  753. static FORCEINLINE HRESULT IVssComponent_GetDirectedTargetCount(IVssComponent* This,UINT *pcDirectedTarget) {
  754. return This->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget);
  755. }
  756. static FORCEINLINE HRESULT IVssComponent_GetDirectedTarget(IVssComponent* This,UINT iDirectedTarget,BSTR *pbstrSourcePath,BSTR *pbstrSourceFileName,BSTR *pbstrSourceRangeList,BSTR *pbstrDestinationPath,BSTR *pbstrDestinationFilename,BSTR *pbstrDestinationRangeList) {
  757. return This->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList);
  758. }
  759. static FORCEINLINE HRESULT IVssComponent_SetRestoreMetadata(IVssComponent* This,LPCWSTR wszRestoreMetadata) {
  760. return This->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata);
  761. }
  762. static FORCEINLINE HRESULT IVssComponent_GetRestoreMetadata(IVssComponent* This,BSTR *pbstrRestoreMetadata) {
  763. return This->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata);
  764. }
  765. static FORCEINLINE HRESULT IVssComponent_SetRestoreTarget(IVssComponent* This,VSS_RESTORE_TARGET target) {
  766. return This->lpVtbl->SetRestoreTarget(This,target);
  767. }
  768. static FORCEINLINE HRESULT IVssComponent_GetRestoreTarget(IVssComponent* This,VSS_RESTORE_TARGET *pTarget) {
  769. return This->lpVtbl->GetRestoreTarget(This,pTarget);
  770. }
  771. static FORCEINLINE HRESULT IVssComponent_SetPreRestoreFailureMsg(IVssComponent* This,LPCWSTR wszPreRestoreFailureMsg) {
  772. return This->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg);
  773. }
  774. static FORCEINLINE HRESULT IVssComponent_GetPreRestoreFailureMsg(IVssComponent* This,BSTR *pbstrPreRestoreFailureMsg) {
  775. return This->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg);
  776. }
  777. static FORCEINLINE HRESULT IVssComponent_SetPostRestoreFailureMsg(IVssComponent* This,LPCWSTR wszPostRestoreFailureMsg) {
  778. return This->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg);
  779. }
  780. static FORCEINLINE HRESULT IVssComponent_GetPostRestoreFailureMsg(IVssComponent* This,BSTR *pbstrPostRestoreFailureMsg) {
  781. return This->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg);
  782. }
  783. static FORCEINLINE HRESULT IVssComponent_SetBackupStamp(IVssComponent* This,LPCWSTR wszBackupStamp) {
  784. return This->lpVtbl->SetBackupStamp(This,wszBackupStamp);
  785. }
  786. static FORCEINLINE HRESULT IVssComponent_GetBackupStamp(IVssComponent* This,BSTR *pbstrBackupStamp) {
  787. return This->lpVtbl->GetBackupStamp(This,pbstrBackupStamp);
  788. }
  789. static FORCEINLINE HRESULT IVssComponent_GetPreviousBackupStamp(IVssComponent* This,BSTR *pbstrBackupStamp) {
  790. return This->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp);
  791. }
  792. static FORCEINLINE HRESULT IVssComponent_GetBackupOptions(IVssComponent* This,BSTR *pbstrBackupOptions) {
  793. return This->lpVtbl->GetBackupOptions(This,pbstrBackupOptions);
  794. }
  795. static FORCEINLINE HRESULT IVssComponent_GetRestoreOptions(IVssComponent* This,BSTR *pbstrRestoreOptions) {
  796. return This->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions);
  797. }
  798. static FORCEINLINE HRESULT IVssComponent_GetRestoreSubcomponentCount(IVssComponent* This,UINT *pcRestoreSubcomponent) {
  799. return This->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent);
  800. }
  801. static FORCEINLINE HRESULT IVssComponent_GetRestoreSubcomponent(IVssComponent* This,UINT iComponent,BSTR *pbstrLogicalPath,BSTR *pbstrComponentName,boolean *pbRepair) {
  802. return This->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair);
  803. }
  804. static FORCEINLINE HRESULT IVssComponent_GetFileRestoreStatus(IVssComponent* This,VSS_FILE_RESTORE_STATUS *pStatus) {
  805. return This->lpVtbl->GetFileRestoreStatus(This,pStatus);
  806. }
  807. static FORCEINLINE HRESULT IVssComponent_AddDifferencedFilesByLastModifyTime(IVssComponent* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,FILETIME ftLastModifyTime) {
  808. return This->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime);
  809. }
  810. static FORCEINLINE HRESULT IVssComponent_AddDifferencedFilesByLastModifyLSN(IVssComponent* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,BSTR bstrLsnString) {
  811. return This->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString);
  812. }
  813. static FORCEINLINE HRESULT IVssComponent_GetDifferencedFilesCount(IVssComponent* This,UINT *pcDifferencedFiles) {
  814. return This->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles);
  815. }
  816. static FORCEINLINE HRESULT IVssComponent_GetDifferencedFile(IVssComponent* This,UINT iDifferencedFile,BSTR *pbstrPath,BSTR *pbstrFilespec,WINBOOL *pbRecursive,BSTR *pbstrLsnString,FILETIME *pftLastModifyTime) {
  817. return This->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime);
  818. }
  819. #endif
  820. #endif
  821. #endif
  822. #endif /* __IVssComponent_INTERFACE_DEFINED__ */
  823. /*****************************************************************************
  824. * IVssWriterComponents interface
  825. */
  826. #ifndef __IVssWriterComponents_INTERFACE_DEFINED__
  827. #define __IVssWriterComponents_INTERFACE_DEFINED__
  828. DEFINE_GUID(IID_IVssWriterComponents, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00);
  829. #if defined(__cplusplus) && !defined(CINTERFACE)
  830. MIDL_INTERFACE("00000000-0000-0000-0000-000000000000")
  831. IVssWriterComponents
  832. {
  833. BEGIN_INTERFACE
  834. virtual HRESULT STDMETHODCALLTYPE GetComponentCount(
  835. UINT *pcComponents) = 0;
  836. virtual HRESULT STDMETHODCALLTYPE GetWriterInfo(
  837. VSS_ID *pidInstance,
  838. VSS_ID *pidWriter) = 0;
  839. virtual HRESULT STDMETHODCALLTYPE GetComponent(
  840. UINT iComponent,
  841. IVssComponent **ppComponent) = 0;
  842. END_INTERFACE
  843. };
  844. #ifdef __CRT_UUID_DECL
  845. __CRT_UUID_DECL(IVssWriterComponents, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00)
  846. #endif
  847. #else
  848. typedef struct IVssWriterComponentsVtbl {
  849. BEGIN_INTERFACE
  850. /*** IVssWriterComponents methods ***/
  851. HRESULT (STDMETHODCALLTYPE *GetComponentCount)(
  852. IVssWriterComponents *This,
  853. UINT *pcComponents);
  854. HRESULT (STDMETHODCALLTYPE *GetWriterInfo)(
  855. IVssWriterComponents *This,
  856. VSS_ID *pidInstance,
  857. VSS_ID *pidWriter);
  858. HRESULT (STDMETHODCALLTYPE *GetComponent)(
  859. IVssWriterComponents *This,
  860. UINT iComponent,
  861. IVssComponent **ppComponent);
  862. END_INTERFACE
  863. } IVssWriterComponentsVtbl;
  864. interface IVssWriterComponents {
  865. CONST_VTBL IVssWriterComponentsVtbl* lpVtbl;
  866. };
  867. #ifdef COBJMACROS
  868. #ifndef WIDL_C_INLINE_WRAPPERS
  869. /*** IVssWriterComponents methods ***/
  870. #define IVssWriterComponents_GetComponentCount(This,pcComponents) (This)->lpVtbl->GetComponentCount(This,pcComponents)
  871. #define IVssWriterComponents_GetWriterInfo(This,pidInstance,pidWriter) (This)->lpVtbl->GetWriterInfo(This,pidInstance,pidWriter)
  872. #define IVssWriterComponents_GetComponent(This,iComponent,ppComponent) (This)->lpVtbl->GetComponent(This,iComponent,ppComponent)
  873. #else
  874. /*** IVssWriterComponents methods ***/
  875. static FORCEINLINE HRESULT IVssWriterComponents_GetComponentCount(IVssWriterComponents* This,UINT *pcComponents) {
  876. return This->lpVtbl->GetComponentCount(This,pcComponents);
  877. }
  878. static FORCEINLINE HRESULT IVssWriterComponents_GetWriterInfo(IVssWriterComponents* This,VSS_ID *pidInstance,VSS_ID *pidWriter) {
  879. return This->lpVtbl->GetWriterInfo(This,pidInstance,pidWriter);
  880. }
  881. static FORCEINLINE HRESULT IVssWriterComponents_GetComponent(IVssWriterComponents* This,UINT iComponent,IVssComponent **ppComponent) {
  882. return This->lpVtbl->GetComponent(This,iComponent,ppComponent);
  883. }
  884. #endif
  885. #endif
  886. #endif
  887. #endif /* __IVssWriterComponents_INTERFACE_DEFINED__ */
  888. /*****************************************************************************
  889. * IVssComponentEx interface
  890. */
  891. #ifndef __IVssComponentEx_INTERFACE_DEFINED__
  892. #define __IVssComponentEx_INTERFACE_DEFINED__
  893. DEFINE_GUID(IID_IVssComponentEx, 0x156c8b5e, 0xf131, 0x4bd7, 0x9c,0x97, 0xd1,0x92,0x3b,0xe7,0xe1,0xfa);
  894. #if defined(__cplusplus) && !defined(CINTERFACE)
  895. MIDL_INTERFACE("156c8b5e-f131-4bd7-9c97-d1923be7e1fa")
  896. IVssComponentEx : public IVssComponent
  897. {
  898. virtual HRESULT STDMETHODCALLTYPE SetPrepareForBackupFailureMsg(
  899. LPCWSTR wszFailureMsg) = 0;
  900. virtual HRESULT STDMETHODCALLTYPE SetPostSnapshotFailureMsg(
  901. LPCWSTR wszFailureMsg) = 0;
  902. virtual HRESULT STDMETHODCALLTYPE GetPrepareForBackupFailureMsg(
  903. BSTR *pbstrFailureMsg) = 0;
  904. virtual HRESULT STDMETHODCALLTYPE GetPostSnapshotFailureMsg(
  905. BSTR *pbstrFailureMsg) = 0;
  906. virtual HRESULT STDMETHODCALLTYPE GetAuthoritativeRestore(
  907. boolean *pbAuth) = 0;
  908. virtual HRESULT STDMETHODCALLTYPE GetRollForward(
  909. VSS_ROLLFORWARD_TYPE *pRollType,
  910. BSTR *pbstrPoint) = 0;
  911. virtual HRESULT STDMETHODCALLTYPE GetRestoreName(
  912. BSTR *pbstrName) = 0;
  913. };
  914. #ifdef __CRT_UUID_DECL
  915. __CRT_UUID_DECL(IVssComponentEx, 0x156c8b5e, 0xf131, 0x4bd7, 0x9c,0x97, 0xd1,0x92,0x3b,0xe7,0xe1,0xfa)
  916. #endif
  917. #else
  918. typedef struct IVssComponentExVtbl {
  919. BEGIN_INTERFACE
  920. /*** IUnknown methods ***/
  921. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  922. IVssComponentEx *This,
  923. REFIID riid,
  924. void **ppvObject);
  925. ULONG (STDMETHODCALLTYPE *AddRef)(
  926. IVssComponentEx *This);
  927. ULONG (STDMETHODCALLTYPE *Release)(
  928. IVssComponentEx *This);
  929. /*** IVssComponent methods ***/
  930. HRESULT (STDMETHODCALLTYPE *GetLogicalPath)(
  931. IVssComponentEx *This,
  932. BSTR *pbstrPath);
  933. HRESULT (STDMETHODCALLTYPE *GetComponentType)(
  934. IVssComponentEx *This,
  935. VSS_COMPONENT_TYPE *pct);
  936. HRESULT (STDMETHODCALLTYPE *GetComponentName)(
  937. IVssComponentEx *This,
  938. BSTR *pbstrName);
  939. HRESULT (STDMETHODCALLTYPE *GetBackupSucceeded)(
  940. IVssComponentEx *This,
  941. boolean *pbSucceeded);
  942. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMappingCount)(
  943. IVssComponentEx *This,
  944. UINT *pcMappings);
  945. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMapping)(
  946. IVssComponentEx *This,
  947. UINT iMapping,
  948. IVssWMFiledesc **ppFiledesc);
  949. HRESULT (STDMETHODCALLTYPE *SetBackupMetadata)(
  950. IVssComponentEx *This,
  951. LPCWSTR wszData);
  952. HRESULT (STDMETHODCALLTYPE *GetBackupMetadata)(
  953. IVssComponentEx *This,
  954. BSTR *pbstrData);
  955. HRESULT (STDMETHODCALLTYPE *AddPartialFile)(
  956. IVssComponentEx *This,
  957. LPCWSTR wszPath,
  958. LPCWSTR wszFilename,
  959. LPCWSTR wszRanges,
  960. LPCWSTR wszMetadata);
  961. HRESULT (STDMETHODCALLTYPE *GetPartialFileCount)(
  962. IVssComponentEx *This,
  963. UINT *pcPartialFiles);
  964. HRESULT (STDMETHODCALLTYPE *GetPartialFile)(
  965. IVssComponentEx *This,
  966. UINT iPartialFile,
  967. BSTR *pbstrPath,
  968. BSTR *pbstrFilename,
  969. BSTR *pbstrRange,
  970. BSTR *pbstrMetadata);
  971. HRESULT (STDMETHODCALLTYPE *IsSelectedForRestore)(
  972. IVssComponentEx *This,
  973. boolean *pbSelectedForRestore);
  974. HRESULT (STDMETHODCALLTYPE *GetAdditionalRestores)(
  975. IVssComponentEx *This,
  976. boolean *pbAdditionalRestores);
  977. HRESULT (STDMETHODCALLTYPE *GetNewTargetCount)(
  978. IVssComponentEx *This,
  979. UINT *pcNewTarget);
  980. HRESULT (STDMETHODCALLTYPE *GetNewTarget)(
  981. IVssComponentEx *This,
  982. UINT iNewTarget,
  983. IVssWMFiledesc **ppFiledesc);
  984. HRESULT (STDMETHODCALLTYPE *AddDirectedTarget)(
  985. IVssComponentEx *This,
  986. LPCWSTR wszSourcePath,
  987. LPCWSTR wszSourceFilename,
  988. LPCWSTR wszSourceRangeList,
  989. LPCWSTR wszDestinationPath,
  990. LPCWSTR wszDestinationFilename,
  991. LPCWSTR wszDestinationRangeList);
  992. HRESULT (STDMETHODCALLTYPE *GetDirectedTargetCount)(
  993. IVssComponentEx *This,
  994. UINT *pcDirectedTarget);
  995. HRESULT (STDMETHODCALLTYPE *GetDirectedTarget)(
  996. IVssComponentEx *This,
  997. UINT iDirectedTarget,
  998. BSTR *pbstrSourcePath,
  999. BSTR *pbstrSourceFileName,
  1000. BSTR *pbstrSourceRangeList,
  1001. BSTR *pbstrDestinationPath,
  1002. BSTR *pbstrDestinationFilename,
  1003. BSTR *pbstrDestinationRangeList);
  1004. HRESULT (STDMETHODCALLTYPE *SetRestoreMetadata)(
  1005. IVssComponentEx *This,
  1006. LPCWSTR wszRestoreMetadata);
  1007. HRESULT (STDMETHODCALLTYPE *GetRestoreMetadata)(
  1008. IVssComponentEx *This,
  1009. BSTR *pbstrRestoreMetadata);
  1010. HRESULT (STDMETHODCALLTYPE *SetRestoreTarget)(
  1011. IVssComponentEx *This,
  1012. VSS_RESTORE_TARGET target);
  1013. HRESULT (STDMETHODCALLTYPE *GetRestoreTarget)(
  1014. IVssComponentEx *This,
  1015. VSS_RESTORE_TARGET *pTarget);
  1016. HRESULT (STDMETHODCALLTYPE *SetPreRestoreFailureMsg)(
  1017. IVssComponentEx *This,
  1018. LPCWSTR wszPreRestoreFailureMsg);
  1019. HRESULT (STDMETHODCALLTYPE *GetPreRestoreFailureMsg)(
  1020. IVssComponentEx *This,
  1021. BSTR *pbstrPreRestoreFailureMsg);
  1022. HRESULT (STDMETHODCALLTYPE *SetPostRestoreFailureMsg)(
  1023. IVssComponentEx *This,
  1024. LPCWSTR wszPostRestoreFailureMsg);
  1025. HRESULT (STDMETHODCALLTYPE *GetPostRestoreFailureMsg)(
  1026. IVssComponentEx *This,
  1027. BSTR *pbstrPostRestoreFailureMsg);
  1028. HRESULT (STDMETHODCALLTYPE *SetBackupStamp)(
  1029. IVssComponentEx *This,
  1030. LPCWSTR wszBackupStamp);
  1031. HRESULT (STDMETHODCALLTYPE *GetBackupStamp)(
  1032. IVssComponentEx *This,
  1033. BSTR *pbstrBackupStamp);
  1034. HRESULT (STDMETHODCALLTYPE *GetPreviousBackupStamp)(
  1035. IVssComponentEx *This,
  1036. BSTR *pbstrBackupStamp);
  1037. HRESULT (STDMETHODCALLTYPE *GetBackupOptions)(
  1038. IVssComponentEx *This,
  1039. BSTR *pbstrBackupOptions);
  1040. HRESULT (STDMETHODCALLTYPE *GetRestoreOptions)(
  1041. IVssComponentEx *This,
  1042. BSTR *pbstrRestoreOptions);
  1043. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponentCount)(
  1044. IVssComponentEx *This,
  1045. UINT *pcRestoreSubcomponent);
  1046. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponent)(
  1047. IVssComponentEx *This,
  1048. UINT iComponent,
  1049. BSTR *pbstrLogicalPath,
  1050. BSTR *pbstrComponentName,
  1051. boolean *pbRepair);
  1052. HRESULT (STDMETHODCALLTYPE *GetFileRestoreStatus)(
  1053. IVssComponentEx *This,
  1054. VSS_FILE_RESTORE_STATUS *pStatus);
  1055. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyTime)(
  1056. IVssComponentEx *This,
  1057. LPCWSTR wszPath,
  1058. LPCWSTR wszFilespec,
  1059. WINBOOL bRecursive,
  1060. FILETIME ftLastModifyTime);
  1061. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyLSN)(
  1062. IVssComponentEx *This,
  1063. LPCWSTR wszPath,
  1064. LPCWSTR wszFilespec,
  1065. WINBOOL bRecursive,
  1066. BSTR bstrLsnString);
  1067. HRESULT (STDMETHODCALLTYPE *GetDifferencedFilesCount)(
  1068. IVssComponentEx *This,
  1069. UINT *pcDifferencedFiles);
  1070. HRESULT (STDMETHODCALLTYPE *GetDifferencedFile)(
  1071. IVssComponentEx *This,
  1072. UINT iDifferencedFile,
  1073. BSTR *pbstrPath,
  1074. BSTR *pbstrFilespec,
  1075. WINBOOL *pbRecursive,
  1076. BSTR *pbstrLsnString,
  1077. FILETIME *pftLastModifyTime);
  1078. /*** IVssComponentEx methods ***/
  1079. HRESULT (STDMETHODCALLTYPE *SetPrepareForBackupFailureMsg)(
  1080. IVssComponentEx *This,
  1081. LPCWSTR wszFailureMsg);
  1082. HRESULT (STDMETHODCALLTYPE *SetPostSnapshotFailureMsg)(
  1083. IVssComponentEx *This,
  1084. LPCWSTR wszFailureMsg);
  1085. HRESULT (STDMETHODCALLTYPE *GetPrepareForBackupFailureMsg)(
  1086. IVssComponentEx *This,
  1087. BSTR *pbstrFailureMsg);
  1088. HRESULT (STDMETHODCALLTYPE *GetPostSnapshotFailureMsg)(
  1089. IVssComponentEx *This,
  1090. BSTR *pbstrFailureMsg);
  1091. HRESULT (STDMETHODCALLTYPE *GetAuthoritativeRestore)(
  1092. IVssComponentEx *This,
  1093. boolean *pbAuth);
  1094. HRESULT (STDMETHODCALLTYPE *GetRollForward)(
  1095. IVssComponentEx *This,
  1096. VSS_ROLLFORWARD_TYPE *pRollType,
  1097. BSTR *pbstrPoint);
  1098. HRESULT (STDMETHODCALLTYPE *GetRestoreName)(
  1099. IVssComponentEx *This,
  1100. BSTR *pbstrName);
  1101. END_INTERFACE
  1102. } IVssComponentExVtbl;
  1103. interface IVssComponentEx {
  1104. CONST_VTBL IVssComponentExVtbl* lpVtbl;
  1105. };
  1106. #ifdef COBJMACROS
  1107. #ifndef WIDL_C_INLINE_WRAPPERS
  1108. /*** IUnknown methods ***/
  1109. #define IVssComponentEx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1110. #define IVssComponentEx_AddRef(This) (This)->lpVtbl->AddRef(This)
  1111. #define IVssComponentEx_Release(This) (This)->lpVtbl->Release(This)
  1112. /*** IVssComponent methods ***/
  1113. #define IVssComponentEx_GetLogicalPath(This,pbstrPath) (This)->lpVtbl->GetLogicalPath(This,pbstrPath)
  1114. #define IVssComponentEx_GetComponentType(This,pct) (This)->lpVtbl->GetComponentType(This,pct)
  1115. #define IVssComponentEx_GetComponentName(This,pbstrName) (This)->lpVtbl->GetComponentName(This,pbstrName)
  1116. #define IVssComponentEx_GetBackupSucceeded(This,pbSucceeded) (This)->lpVtbl->GetBackupSucceeded(This,pbSucceeded)
  1117. #define IVssComponentEx_GetAlternateLocationMappingCount(This,pcMappings) (This)->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings)
  1118. #define IVssComponentEx_GetAlternateLocationMapping(This,iMapping,ppFiledesc) (This)->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc)
  1119. #define IVssComponentEx_SetBackupMetadata(This,wszData) (This)->lpVtbl->SetBackupMetadata(This,wszData)
  1120. #define IVssComponentEx_GetBackupMetadata(This,pbstrData) (This)->lpVtbl->GetBackupMetadata(This,pbstrData)
  1121. #define IVssComponentEx_AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata) (This)->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata)
  1122. #define IVssComponentEx_GetPartialFileCount(This,pcPartialFiles) (This)->lpVtbl->GetPartialFileCount(This,pcPartialFiles)
  1123. #define IVssComponentEx_GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata) (This)->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata)
  1124. #define IVssComponentEx_IsSelectedForRestore(This,pbSelectedForRestore) (This)->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore)
  1125. #define IVssComponentEx_GetAdditionalRestores(This,pbAdditionalRestores) (This)->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores)
  1126. #define IVssComponentEx_GetNewTargetCount(This,pcNewTarget) (This)->lpVtbl->GetNewTargetCount(This,pcNewTarget)
  1127. #define IVssComponentEx_GetNewTarget(This,iNewTarget,ppFiledesc) (This)->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc)
  1128. #define IVssComponentEx_AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList) (This)->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList)
  1129. #define IVssComponentEx_GetDirectedTargetCount(This,pcDirectedTarget) (This)->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget)
  1130. #define IVssComponentEx_GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList) (This)->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList)
  1131. #define IVssComponentEx_SetRestoreMetadata(This,wszRestoreMetadata) (This)->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata)
  1132. #define IVssComponentEx_GetRestoreMetadata(This,pbstrRestoreMetadata) (This)->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata)
  1133. #define IVssComponentEx_SetRestoreTarget(This,target) (This)->lpVtbl->SetRestoreTarget(This,target)
  1134. #define IVssComponentEx_GetRestoreTarget(This,pTarget) (This)->lpVtbl->GetRestoreTarget(This,pTarget)
  1135. #define IVssComponentEx_SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg) (This)->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg)
  1136. #define IVssComponentEx_GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg) (This)->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg)
  1137. #define IVssComponentEx_SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg) (This)->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg)
  1138. #define IVssComponentEx_GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg) (This)->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg)
  1139. #define IVssComponentEx_SetBackupStamp(This,wszBackupStamp) (This)->lpVtbl->SetBackupStamp(This,wszBackupStamp)
  1140. #define IVssComponentEx_GetBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetBackupStamp(This,pbstrBackupStamp)
  1141. #define IVssComponentEx_GetPreviousBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp)
  1142. #define IVssComponentEx_GetBackupOptions(This,pbstrBackupOptions) (This)->lpVtbl->GetBackupOptions(This,pbstrBackupOptions)
  1143. #define IVssComponentEx_GetRestoreOptions(This,pbstrRestoreOptions) (This)->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions)
  1144. #define IVssComponentEx_GetRestoreSubcomponentCount(This,pcRestoreSubcomponent) (This)->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent)
  1145. #define IVssComponentEx_GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair) (This)->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair)
  1146. #define IVssComponentEx_GetFileRestoreStatus(This,pStatus) (This)->lpVtbl->GetFileRestoreStatus(This,pStatus)
  1147. #define IVssComponentEx_AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime) (This)->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime)
  1148. #define IVssComponentEx_AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString) (This)->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString)
  1149. #define IVssComponentEx_GetDifferencedFilesCount(This,pcDifferencedFiles) (This)->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles)
  1150. #define IVssComponentEx_GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime) (This)->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime)
  1151. /*** IVssComponentEx methods ***/
  1152. #define IVssComponentEx_SetPrepareForBackupFailureMsg(This,wszFailureMsg) (This)->lpVtbl->SetPrepareForBackupFailureMsg(This,wszFailureMsg)
  1153. #define IVssComponentEx_SetPostSnapshotFailureMsg(This,wszFailureMsg) (This)->lpVtbl->SetPostSnapshotFailureMsg(This,wszFailureMsg)
  1154. #define IVssComponentEx_GetPrepareForBackupFailureMsg(This,pbstrFailureMsg) (This)->lpVtbl->GetPrepareForBackupFailureMsg(This,pbstrFailureMsg)
  1155. #define IVssComponentEx_GetPostSnapshotFailureMsg(This,pbstrFailureMsg) (This)->lpVtbl->GetPostSnapshotFailureMsg(This,pbstrFailureMsg)
  1156. #define IVssComponentEx_GetAuthoritativeRestore(This,pbAuth) (This)->lpVtbl->GetAuthoritativeRestore(This,pbAuth)
  1157. #define IVssComponentEx_GetRollForward(This,pRollType,pbstrPoint) (This)->lpVtbl->GetRollForward(This,pRollType,pbstrPoint)
  1158. #define IVssComponentEx_GetRestoreName(This,pbstrName) (This)->lpVtbl->GetRestoreName(This,pbstrName)
  1159. #else
  1160. /*** IUnknown methods ***/
  1161. static FORCEINLINE HRESULT IVssComponentEx_QueryInterface(IVssComponentEx* This,REFIID riid,void **ppvObject) {
  1162. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1163. }
  1164. static FORCEINLINE ULONG IVssComponentEx_AddRef(IVssComponentEx* This) {
  1165. return This->lpVtbl->AddRef(This);
  1166. }
  1167. static FORCEINLINE ULONG IVssComponentEx_Release(IVssComponentEx* This) {
  1168. return This->lpVtbl->Release(This);
  1169. }
  1170. /*** IVssComponent methods ***/
  1171. static FORCEINLINE HRESULT IVssComponentEx_GetLogicalPath(IVssComponentEx* This,BSTR *pbstrPath) {
  1172. return This->lpVtbl->GetLogicalPath(This,pbstrPath);
  1173. }
  1174. static FORCEINLINE HRESULT IVssComponentEx_GetComponentType(IVssComponentEx* This,VSS_COMPONENT_TYPE *pct) {
  1175. return This->lpVtbl->GetComponentType(This,pct);
  1176. }
  1177. static FORCEINLINE HRESULT IVssComponentEx_GetComponentName(IVssComponentEx* This,BSTR *pbstrName) {
  1178. return This->lpVtbl->GetComponentName(This,pbstrName);
  1179. }
  1180. static FORCEINLINE HRESULT IVssComponentEx_GetBackupSucceeded(IVssComponentEx* This,boolean *pbSucceeded) {
  1181. return This->lpVtbl->GetBackupSucceeded(This,pbSucceeded);
  1182. }
  1183. static FORCEINLINE HRESULT IVssComponentEx_GetAlternateLocationMappingCount(IVssComponentEx* This,UINT *pcMappings) {
  1184. return This->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings);
  1185. }
  1186. static FORCEINLINE HRESULT IVssComponentEx_GetAlternateLocationMapping(IVssComponentEx* This,UINT iMapping,IVssWMFiledesc **ppFiledesc) {
  1187. return This->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc);
  1188. }
  1189. static FORCEINLINE HRESULT IVssComponentEx_SetBackupMetadata(IVssComponentEx* This,LPCWSTR wszData) {
  1190. return This->lpVtbl->SetBackupMetadata(This,wszData);
  1191. }
  1192. static FORCEINLINE HRESULT IVssComponentEx_GetBackupMetadata(IVssComponentEx* This,BSTR *pbstrData) {
  1193. return This->lpVtbl->GetBackupMetadata(This,pbstrData);
  1194. }
  1195. static FORCEINLINE HRESULT IVssComponentEx_AddPartialFile(IVssComponentEx* This,LPCWSTR wszPath,LPCWSTR wszFilename,LPCWSTR wszRanges,LPCWSTR wszMetadata) {
  1196. return This->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata);
  1197. }
  1198. static FORCEINLINE HRESULT IVssComponentEx_GetPartialFileCount(IVssComponentEx* This,UINT *pcPartialFiles) {
  1199. return This->lpVtbl->GetPartialFileCount(This,pcPartialFiles);
  1200. }
  1201. static FORCEINLINE HRESULT IVssComponentEx_GetPartialFile(IVssComponentEx* This,UINT iPartialFile,BSTR *pbstrPath,BSTR *pbstrFilename,BSTR *pbstrRange,BSTR *pbstrMetadata) {
  1202. return This->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata);
  1203. }
  1204. static FORCEINLINE HRESULT IVssComponentEx_IsSelectedForRestore(IVssComponentEx* This,boolean *pbSelectedForRestore) {
  1205. return This->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore);
  1206. }
  1207. static FORCEINLINE HRESULT IVssComponentEx_GetAdditionalRestores(IVssComponentEx* This,boolean *pbAdditionalRestores) {
  1208. return This->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores);
  1209. }
  1210. static FORCEINLINE HRESULT IVssComponentEx_GetNewTargetCount(IVssComponentEx* This,UINT *pcNewTarget) {
  1211. return This->lpVtbl->GetNewTargetCount(This,pcNewTarget);
  1212. }
  1213. static FORCEINLINE HRESULT IVssComponentEx_GetNewTarget(IVssComponentEx* This,UINT iNewTarget,IVssWMFiledesc **ppFiledesc) {
  1214. return This->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc);
  1215. }
  1216. static FORCEINLINE HRESULT IVssComponentEx_AddDirectedTarget(IVssComponentEx* This,LPCWSTR wszSourcePath,LPCWSTR wszSourceFilename,LPCWSTR wszSourceRangeList,LPCWSTR wszDestinationPath,LPCWSTR wszDestinationFilename,LPCWSTR wszDestinationRangeList) {
  1217. return This->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList);
  1218. }
  1219. static FORCEINLINE HRESULT IVssComponentEx_GetDirectedTargetCount(IVssComponentEx* This,UINT *pcDirectedTarget) {
  1220. return This->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget);
  1221. }
  1222. static FORCEINLINE HRESULT IVssComponentEx_GetDirectedTarget(IVssComponentEx* This,UINT iDirectedTarget,BSTR *pbstrSourcePath,BSTR *pbstrSourceFileName,BSTR *pbstrSourceRangeList,BSTR *pbstrDestinationPath,BSTR *pbstrDestinationFilename,BSTR *pbstrDestinationRangeList) {
  1223. return This->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList);
  1224. }
  1225. static FORCEINLINE HRESULT IVssComponentEx_SetRestoreMetadata(IVssComponentEx* This,LPCWSTR wszRestoreMetadata) {
  1226. return This->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata);
  1227. }
  1228. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreMetadata(IVssComponentEx* This,BSTR *pbstrRestoreMetadata) {
  1229. return This->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata);
  1230. }
  1231. static FORCEINLINE HRESULT IVssComponentEx_SetRestoreTarget(IVssComponentEx* This,VSS_RESTORE_TARGET target) {
  1232. return This->lpVtbl->SetRestoreTarget(This,target);
  1233. }
  1234. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreTarget(IVssComponentEx* This,VSS_RESTORE_TARGET *pTarget) {
  1235. return This->lpVtbl->GetRestoreTarget(This,pTarget);
  1236. }
  1237. static FORCEINLINE HRESULT IVssComponentEx_SetPreRestoreFailureMsg(IVssComponentEx* This,LPCWSTR wszPreRestoreFailureMsg) {
  1238. return This->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg);
  1239. }
  1240. static FORCEINLINE HRESULT IVssComponentEx_GetPreRestoreFailureMsg(IVssComponentEx* This,BSTR *pbstrPreRestoreFailureMsg) {
  1241. return This->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg);
  1242. }
  1243. static FORCEINLINE HRESULT IVssComponentEx_SetPostRestoreFailureMsg(IVssComponentEx* This,LPCWSTR wszPostRestoreFailureMsg) {
  1244. return This->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg);
  1245. }
  1246. static FORCEINLINE HRESULT IVssComponentEx_GetPostRestoreFailureMsg(IVssComponentEx* This,BSTR *pbstrPostRestoreFailureMsg) {
  1247. return This->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg);
  1248. }
  1249. static FORCEINLINE HRESULT IVssComponentEx_SetBackupStamp(IVssComponentEx* This,LPCWSTR wszBackupStamp) {
  1250. return This->lpVtbl->SetBackupStamp(This,wszBackupStamp);
  1251. }
  1252. static FORCEINLINE HRESULT IVssComponentEx_GetBackupStamp(IVssComponentEx* This,BSTR *pbstrBackupStamp) {
  1253. return This->lpVtbl->GetBackupStamp(This,pbstrBackupStamp);
  1254. }
  1255. static FORCEINLINE HRESULT IVssComponentEx_GetPreviousBackupStamp(IVssComponentEx* This,BSTR *pbstrBackupStamp) {
  1256. return This->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp);
  1257. }
  1258. static FORCEINLINE HRESULT IVssComponentEx_GetBackupOptions(IVssComponentEx* This,BSTR *pbstrBackupOptions) {
  1259. return This->lpVtbl->GetBackupOptions(This,pbstrBackupOptions);
  1260. }
  1261. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreOptions(IVssComponentEx* This,BSTR *pbstrRestoreOptions) {
  1262. return This->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions);
  1263. }
  1264. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreSubcomponentCount(IVssComponentEx* This,UINT *pcRestoreSubcomponent) {
  1265. return This->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent);
  1266. }
  1267. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreSubcomponent(IVssComponentEx* This,UINT iComponent,BSTR *pbstrLogicalPath,BSTR *pbstrComponentName,boolean *pbRepair) {
  1268. return This->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair);
  1269. }
  1270. static FORCEINLINE HRESULT IVssComponentEx_GetFileRestoreStatus(IVssComponentEx* This,VSS_FILE_RESTORE_STATUS *pStatus) {
  1271. return This->lpVtbl->GetFileRestoreStatus(This,pStatus);
  1272. }
  1273. static FORCEINLINE HRESULT IVssComponentEx_AddDifferencedFilesByLastModifyTime(IVssComponentEx* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,FILETIME ftLastModifyTime) {
  1274. return This->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime);
  1275. }
  1276. static FORCEINLINE HRESULT IVssComponentEx_AddDifferencedFilesByLastModifyLSN(IVssComponentEx* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,BSTR bstrLsnString) {
  1277. return This->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString);
  1278. }
  1279. static FORCEINLINE HRESULT IVssComponentEx_GetDifferencedFilesCount(IVssComponentEx* This,UINT *pcDifferencedFiles) {
  1280. return This->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles);
  1281. }
  1282. static FORCEINLINE HRESULT IVssComponentEx_GetDifferencedFile(IVssComponentEx* This,UINT iDifferencedFile,BSTR *pbstrPath,BSTR *pbstrFilespec,WINBOOL *pbRecursive,BSTR *pbstrLsnString,FILETIME *pftLastModifyTime) {
  1283. return This->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime);
  1284. }
  1285. /*** IVssComponentEx methods ***/
  1286. static FORCEINLINE HRESULT IVssComponentEx_SetPrepareForBackupFailureMsg(IVssComponentEx* This,LPCWSTR wszFailureMsg) {
  1287. return This->lpVtbl->SetPrepareForBackupFailureMsg(This,wszFailureMsg);
  1288. }
  1289. static FORCEINLINE HRESULT IVssComponentEx_SetPostSnapshotFailureMsg(IVssComponentEx* This,LPCWSTR wszFailureMsg) {
  1290. return This->lpVtbl->SetPostSnapshotFailureMsg(This,wszFailureMsg);
  1291. }
  1292. static FORCEINLINE HRESULT IVssComponentEx_GetPrepareForBackupFailureMsg(IVssComponentEx* This,BSTR *pbstrFailureMsg) {
  1293. return This->lpVtbl->GetPrepareForBackupFailureMsg(This,pbstrFailureMsg);
  1294. }
  1295. static FORCEINLINE HRESULT IVssComponentEx_GetPostSnapshotFailureMsg(IVssComponentEx* This,BSTR *pbstrFailureMsg) {
  1296. return This->lpVtbl->GetPostSnapshotFailureMsg(This,pbstrFailureMsg);
  1297. }
  1298. static FORCEINLINE HRESULT IVssComponentEx_GetAuthoritativeRestore(IVssComponentEx* This,boolean *pbAuth) {
  1299. return This->lpVtbl->GetAuthoritativeRestore(This,pbAuth);
  1300. }
  1301. static FORCEINLINE HRESULT IVssComponentEx_GetRollForward(IVssComponentEx* This,VSS_ROLLFORWARD_TYPE *pRollType,BSTR *pbstrPoint) {
  1302. return This->lpVtbl->GetRollForward(This,pRollType,pbstrPoint);
  1303. }
  1304. static FORCEINLINE HRESULT IVssComponentEx_GetRestoreName(IVssComponentEx* This,BSTR *pbstrName) {
  1305. return This->lpVtbl->GetRestoreName(This,pbstrName);
  1306. }
  1307. #endif
  1308. #endif
  1309. #endif
  1310. #endif /* __IVssComponentEx_INTERFACE_DEFINED__ */
  1311. /*****************************************************************************
  1312. * IVssComponentEx2 interface
  1313. */
  1314. #ifndef __IVssComponentEx2_INTERFACE_DEFINED__
  1315. #define __IVssComponentEx2_INTERFACE_DEFINED__
  1316. DEFINE_GUID(IID_IVssComponentEx2, 0x3b5be0f2, 0x07a9, 0x4e4b, 0xbd,0xd3, 0xcf,0xdc,0x8e,0x2c,0x0d,0x2d);
  1317. #if defined(__cplusplus) && !defined(CINTERFACE)
  1318. MIDL_INTERFACE("3b5be0f2-07a9-4e4b-bdd3-cfdc8e2c0d2d")
  1319. IVssComponentEx2 : public IVssComponentEx
  1320. {
  1321. virtual HRESULT STDMETHODCALLTYPE SetFailure(
  1322. HRESULT hr,
  1323. HRESULT hrApplication,
  1324. LPCWSTR wszApplicationMessage,
  1325. DWORD dwReserved) = 0;
  1326. virtual HRESULT STDMETHODCALLTYPE GetFailure(
  1327. HRESULT *phr,
  1328. HRESULT *phrApplication,
  1329. BSTR *pbstrApplicationMessage,
  1330. DWORD *pdwReserved) = 0;
  1331. };
  1332. #ifdef __CRT_UUID_DECL
  1333. __CRT_UUID_DECL(IVssComponentEx2, 0x3b5be0f2, 0x07a9, 0x4e4b, 0xbd,0xd3, 0xcf,0xdc,0x8e,0x2c,0x0d,0x2d)
  1334. #endif
  1335. #else
  1336. typedef struct IVssComponentEx2Vtbl {
  1337. BEGIN_INTERFACE
  1338. /*** IUnknown methods ***/
  1339. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1340. IVssComponentEx2 *This,
  1341. REFIID riid,
  1342. void **ppvObject);
  1343. ULONG (STDMETHODCALLTYPE *AddRef)(
  1344. IVssComponentEx2 *This);
  1345. ULONG (STDMETHODCALLTYPE *Release)(
  1346. IVssComponentEx2 *This);
  1347. /*** IVssComponent methods ***/
  1348. HRESULT (STDMETHODCALLTYPE *GetLogicalPath)(
  1349. IVssComponentEx2 *This,
  1350. BSTR *pbstrPath);
  1351. HRESULT (STDMETHODCALLTYPE *GetComponentType)(
  1352. IVssComponentEx2 *This,
  1353. VSS_COMPONENT_TYPE *pct);
  1354. HRESULT (STDMETHODCALLTYPE *GetComponentName)(
  1355. IVssComponentEx2 *This,
  1356. BSTR *pbstrName);
  1357. HRESULT (STDMETHODCALLTYPE *GetBackupSucceeded)(
  1358. IVssComponentEx2 *This,
  1359. boolean *pbSucceeded);
  1360. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMappingCount)(
  1361. IVssComponentEx2 *This,
  1362. UINT *pcMappings);
  1363. HRESULT (STDMETHODCALLTYPE *GetAlternateLocationMapping)(
  1364. IVssComponentEx2 *This,
  1365. UINT iMapping,
  1366. IVssWMFiledesc **ppFiledesc);
  1367. HRESULT (STDMETHODCALLTYPE *SetBackupMetadata)(
  1368. IVssComponentEx2 *This,
  1369. LPCWSTR wszData);
  1370. HRESULT (STDMETHODCALLTYPE *GetBackupMetadata)(
  1371. IVssComponentEx2 *This,
  1372. BSTR *pbstrData);
  1373. HRESULT (STDMETHODCALLTYPE *AddPartialFile)(
  1374. IVssComponentEx2 *This,
  1375. LPCWSTR wszPath,
  1376. LPCWSTR wszFilename,
  1377. LPCWSTR wszRanges,
  1378. LPCWSTR wszMetadata);
  1379. HRESULT (STDMETHODCALLTYPE *GetPartialFileCount)(
  1380. IVssComponentEx2 *This,
  1381. UINT *pcPartialFiles);
  1382. HRESULT (STDMETHODCALLTYPE *GetPartialFile)(
  1383. IVssComponentEx2 *This,
  1384. UINT iPartialFile,
  1385. BSTR *pbstrPath,
  1386. BSTR *pbstrFilename,
  1387. BSTR *pbstrRange,
  1388. BSTR *pbstrMetadata);
  1389. HRESULT (STDMETHODCALLTYPE *IsSelectedForRestore)(
  1390. IVssComponentEx2 *This,
  1391. boolean *pbSelectedForRestore);
  1392. HRESULT (STDMETHODCALLTYPE *GetAdditionalRestores)(
  1393. IVssComponentEx2 *This,
  1394. boolean *pbAdditionalRestores);
  1395. HRESULT (STDMETHODCALLTYPE *GetNewTargetCount)(
  1396. IVssComponentEx2 *This,
  1397. UINT *pcNewTarget);
  1398. HRESULT (STDMETHODCALLTYPE *GetNewTarget)(
  1399. IVssComponentEx2 *This,
  1400. UINT iNewTarget,
  1401. IVssWMFiledesc **ppFiledesc);
  1402. HRESULT (STDMETHODCALLTYPE *AddDirectedTarget)(
  1403. IVssComponentEx2 *This,
  1404. LPCWSTR wszSourcePath,
  1405. LPCWSTR wszSourceFilename,
  1406. LPCWSTR wszSourceRangeList,
  1407. LPCWSTR wszDestinationPath,
  1408. LPCWSTR wszDestinationFilename,
  1409. LPCWSTR wszDestinationRangeList);
  1410. HRESULT (STDMETHODCALLTYPE *GetDirectedTargetCount)(
  1411. IVssComponentEx2 *This,
  1412. UINT *pcDirectedTarget);
  1413. HRESULT (STDMETHODCALLTYPE *GetDirectedTarget)(
  1414. IVssComponentEx2 *This,
  1415. UINT iDirectedTarget,
  1416. BSTR *pbstrSourcePath,
  1417. BSTR *pbstrSourceFileName,
  1418. BSTR *pbstrSourceRangeList,
  1419. BSTR *pbstrDestinationPath,
  1420. BSTR *pbstrDestinationFilename,
  1421. BSTR *pbstrDestinationRangeList);
  1422. HRESULT (STDMETHODCALLTYPE *SetRestoreMetadata)(
  1423. IVssComponentEx2 *This,
  1424. LPCWSTR wszRestoreMetadata);
  1425. HRESULT (STDMETHODCALLTYPE *GetRestoreMetadata)(
  1426. IVssComponentEx2 *This,
  1427. BSTR *pbstrRestoreMetadata);
  1428. HRESULT (STDMETHODCALLTYPE *SetRestoreTarget)(
  1429. IVssComponentEx2 *This,
  1430. VSS_RESTORE_TARGET target);
  1431. HRESULT (STDMETHODCALLTYPE *GetRestoreTarget)(
  1432. IVssComponentEx2 *This,
  1433. VSS_RESTORE_TARGET *pTarget);
  1434. HRESULT (STDMETHODCALLTYPE *SetPreRestoreFailureMsg)(
  1435. IVssComponentEx2 *This,
  1436. LPCWSTR wszPreRestoreFailureMsg);
  1437. HRESULT (STDMETHODCALLTYPE *GetPreRestoreFailureMsg)(
  1438. IVssComponentEx2 *This,
  1439. BSTR *pbstrPreRestoreFailureMsg);
  1440. HRESULT (STDMETHODCALLTYPE *SetPostRestoreFailureMsg)(
  1441. IVssComponentEx2 *This,
  1442. LPCWSTR wszPostRestoreFailureMsg);
  1443. HRESULT (STDMETHODCALLTYPE *GetPostRestoreFailureMsg)(
  1444. IVssComponentEx2 *This,
  1445. BSTR *pbstrPostRestoreFailureMsg);
  1446. HRESULT (STDMETHODCALLTYPE *SetBackupStamp)(
  1447. IVssComponentEx2 *This,
  1448. LPCWSTR wszBackupStamp);
  1449. HRESULT (STDMETHODCALLTYPE *GetBackupStamp)(
  1450. IVssComponentEx2 *This,
  1451. BSTR *pbstrBackupStamp);
  1452. HRESULT (STDMETHODCALLTYPE *GetPreviousBackupStamp)(
  1453. IVssComponentEx2 *This,
  1454. BSTR *pbstrBackupStamp);
  1455. HRESULT (STDMETHODCALLTYPE *GetBackupOptions)(
  1456. IVssComponentEx2 *This,
  1457. BSTR *pbstrBackupOptions);
  1458. HRESULT (STDMETHODCALLTYPE *GetRestoreOptions)(
  1459. IVssComponentEx2 *This,
  1460. BSTR *pbstrRestoreOptions);
  1461. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponentCount)(
  1462. IVssComponentEx2 *This,
  1463. UINT *pcRestoreSubcomponent);
  1464. HRESULT (STDMETHODCALLTYPE *GetRestoreSubcomponent)(
  1465. IVssComponentEx2 *This,
  1466. UINT iComponent,
  1467. BSTR *pbstrLogicalPath,
  1468. BSTR *pbstrComponentName,
  1469. boolean *pbRepair);
  1470. HRESULT (STDMETHODCALLTYPE *GetFileRestoreStatus)(
  1471. IVssComponentEx2 *This,
  1472. VSS_FILE_RESTORE_STATUS *pStatus);
  1473. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyTime)(
  1474. IVssComponentEx2 *This,
  1475. LPCWSTR wszPath,
  1476. LPCWSTR wszFilespec,
  1477. WINBOOL bRecursive,
  1478. FILETIME ftLastModifyTime);
  1479. HRESULT (STDMETHODCALLTYPE *AddDifferencedFilesByLastModifyLSN)(
  1480. IVssComponentEx2 *This,
  1481. LPCWSTR wszPath,
  1482. LPCWSTR wszFilespec,
  1483. WINBOOL bRecursive,
  1484. BSTR bstrLsnString);
  1485. HRESULT (STDMETHODCALLTYPE *GetDifferencedFilesCount)(
  1486. IVssComponentEx2 *This,
  1487. UINT *pcDifferencedFiles);
  1488. HRESULT (STDMETHODCALLTYPE *GetDifferencedFile)(
  1489. IVssComponentEx2 *This,
  1490. UINT iDifferencedFile,
  1491. BSTR *pbstrPath,
  1492. BSTR *pbstrFilespec,
  1493. WINBOOL *pbRecursive,
  1494. BSTR *pbstrLsnString,
  1495. FILETIME *pftLastModifyTime);
  1496. /*** IVssComponentEx methods ***/
  1497. HRESULT (STDMETHODCALLTYPE *SetPrepareForBackupFailureMsg)(
  1498. IVssComponentEx2 *This,
  1499. LPCWSTR wszFailureMsg);
  1500. HRESULT (STDMETHODCALLTYPE *SetPostSnapshotFailureMsg)(
  1501. IVssComponentEx2 *This,
  1502. LPCWSTR wszFailureMsg);
  1503. HRESULT (STDMETHODCALLTYPE *GetPrepareForBackupFailureMsg)(
  1504. IVssComponentEx2 *This,
  1505. BSTR *pbstrFailureMsg);
  1506. HRESULT (STDMETHODCALLTYPE *GetPostSnapshotFailureMsg)(
  1507. IVssComponentEx2 *This,
  1508. BSTR *pbstrFailureMsg);
  1509. HRESULT (STDMETHODCALLTYPE *GetAuthoritativeRestore)(
  1510. IVssComponentEx2 *This,
  1511. boolean *pbAuth);
  1512. HRESULT (STDMETHODCALLTYPE *GetRollForward)(
  1513. IVssComponentEx2 *This,
  1514. VSS_ROLLFORWARD_TYPE *pRollType,
  1515. BSTR *pbstrPoint);
  1516. HRESULT (STDMETHODCALLTYPE *GetRestoreName)(
  1517. IVssComponentEx2 *This,
  1518. BSTR *pbstrName);
  1519. /*** IVssComponentEx2 methods ***/
  1520. HRESULT (STDMETHODCALLTYPE *SetFailure)(
  1521. IVssComponentEx2 *This,
  1522. HRESULT hr,
  1523. HRESULT hrApplication,
  1524. LPCWSTR wszApplicationMessage,
  1525. DWORD dwReserved);
  1526. HRESULT (STDMETHODCALLTYPE *GetFailure)(
  1527. IVssComponentEx2 *This,
  1528. HRESULT *phr,
  1529. HRESULT *phrApplication,
  1530. BSTR *pbstrApplicationMessage,
  1531. DWORD *pdwReserved);
  1532. END_INTERFACE
  1533. } IVssComponentEx2Vtbl;
  1534. interface IVssComponentEx2 {
  1535. CONST_VTBL IVssComponentEx2Vtbl* lpVtbl;
  1536. };
  1537. #ifdef COBJMACROS
  1538. #ifndef WIDL_C_INLINE_WRAPPERS
  1539. /*** IUnknown methods ***/
  1540. #define IVssComponentEx2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1541. #define IVssComponentEx2_AddRef(This) (This)->lpVtbl->AddRef(This)
  1542. #define IVssComponentEx2_Release(This) (This)->lpVtbl->Release(This)
  1543. /*** IVssComponent methods ***/
  1544. #define IVssComponentEx2_GetLogicalPath(This,pbstrPath) (This)->lpVtbl->GetLogicalPath(This,pbstrPath)
  1545. #define IVssComponentEx2_GetComponentType(This,pct) (This)->lpVtbl->GetComponentType(This,pct)
  1546. #define IVssComponentEx2_GetComponentName(This,pbstrName) (This)->lpVtbl->GetComponentName(This,pbstrName)
  1547. #define IVssComponentEx2_GetBackupSucceeded(This,pbSucceeded) (This)->lpVtbl->GetBackupSucceeded(This,pbSucceeded)
  1548. #define IVssComponentEx2_GetAlternateLocationMappingCount(This,pcMappings) (This)->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings)
  1549. #define IVssComponentEx2_GetAlternateLocationMapping(This,iMapping,ppFiledesc) (This)->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc)
  1550. #define IVssComponentEx2_SetBackupMetadata(This,wszData) (This)->lpVtbl->SetBackupMetadata(This,wszData)
  1551. #define IVssComponentEx2_GetBackupMetadata(This,pbstrData) (This)->lpVtbl->GetBackupMetadata(This,pbstrData)
  1552. #define IVssComponentEx2_AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata) (This)->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata)
  1553. #define IVssComponentEx2_GetPartialFileCount(This,pcPartialFiles) (This)->lpVtbl->GetPartialFileCount(This,pcPartialFiles)
  1554. #define IVssComponentEx2_GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata) (This)->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata)
  1555. #define IVssComponentEx2_IsSelectedForRestore(This,pbSelectedForRestore) (This)->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore)
  1556. #define IVssComponentEx2_GetAdditionalRestores(This,pbAdditionalRestores) (This)->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores)
  1557. #define IVssComponentEx2_GetNewTargetCount(This,pcNewTarget) (This)->lpVtbl->GetNewTargetCount(This,pcNewTarget)
  1558. #define IVssComponentEx2_GetNewTarget(This,iNewTarget,ppFiledesc) (This)->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc)
  1559. #define IVssComponentEx2_AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList) (This)->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList)
  1560. #define IVssComponentEx2_GetDirectedTargetCount(This,pcDirectedTarget) (This)->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget)
  1561. #define IVssComponentEx2_GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList) (This)->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList)
  1562. #define IVssComponentEx2_SetRestoreMetadata(This,wszRestoreMetadata) (This)->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata)
  1563. #define IVssComponentEx2_GetRestoreMetadata(This,pbstrRestoreMetadata) (This)->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata)
  1564. #define IVssComponentEx2_SetRestoreTarget(This,target) (This)->lpVtbl->SetRestoreTarget(This,target)
  1565. #define IVssComponentEx2_GetRestoreTarget(This,pTarget) (This)->lpVtbl->GetRestoreTarget(This,pTarget)
  1566. #define IVssComponentEx2_SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg) (This)->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg)
  1567. #define IVssComponentEx2_GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg) (This)->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg)
  1568. #define IVssComponentEx2_SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg) (This)->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg)
  1569. #define IVssComponentEx2_GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg) (This)->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg)
  1570. #define IVssComponentEx2_SetBackupStamp(This,wszBackupStamp) (This)->lpVtbl->SetBackupStamp(This,wszBackupStamp)
  1571. #define IVssComponentEx2_GetBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetBackupStamp(This,pbstrBackupStamp)
  1572. #define IVssComponentEx2_GetPreviousBackupStamp(This,pbstrBackupStamp) (This)->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp)
  1573. #define IVssComponentEx2_GetBackupOptions(This,pbstrBackupOptions) (This)->lpVtbl->GetBackupOptions(This,pbstrBackupOptions)
  1574. #define IVssComponentEx2_GetRestoreOptions(This,pbstrRestoreOptions) (This)->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions)
  1575. #define IVssComponentEx2_GetRestoreSubcomponentCount(This,pcRestoreSubcomponent) (This)->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent)
  1576. #define IVssComponentEx2_GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair) (This)->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair)
  1577. #define IVssComponentEx2_GetFileRestoreStatus(This,pStatus) (This)->lpVtbl->GetFileRestoreStatus(This,pStatus)
  1578. #define IVssComponentEx2_AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime) (This)->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime)
  1579. #define IVssComponentEx2_AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString) (This)->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString)
  1580. #define IVssComponentEx2_GetDifferencedFilesCount(This,pcDifferencedFiles) (This)->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles)
  1581. #define IVssComponentEx2_GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime) (This)->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime)
  1582. /*** IVssComponentEx methods ***/
  1583. #define IVssComponentEx2_SetPrepareForBackupFailureMsg(This,wszFailureMsg) (This)->lpVtbl->SetPrepareForBackupFailureMsg(This,wszFailureMsg)
  1584. #define IVssComponentEx2_SetPostSnapshotFailureMsg(This,wszFailureMsg) (This)->lpVtbl->SetPostSnapshotFailureMsg(This,wszFailureMsg)
  1585. #define IVssComponentEx2_GetPrepareForBackupFailureMsg(This,pbstrFailureMsg) (This)->lpVtbl->GetPrepareForBackupFailureMsg(This,pbstrFailureMsg)
  1586. #define IVssComponentEx2_GetPostSnapshotFailureMsg(This,pbstrFailureMsg) (This)->lpVtbl->GetPostSnapshotFailureMsg(This,pbstrFailureMsg)
  1587. #define IVssComponentEx2_GetAuthoritativeRestore(This,pbAuth) (This)->lpVtbl->GetAuthoritativeRestore(This,pbAuth)
  1588. #define IVssComponentEx2_GetRollForward(This,pRollType,pbstrPoint) (This)->lpVtbl->GetRollForward(This,pRollType,pbstrPoint)
  1589. #define IVssComponentEx2_GetRestoreName(This,pbstrName) (This)->lpVtbl->GetRestoreName(This,pbstrName)
  1590. /*** IVssComponentEx2 methods ***/
  1591. #define IVssComponentEx2_SetFailure(This,hr,hrApplication,wszApplicationMessage,dwReserved) (This)->lpVtbl->SetFailure(This,hr,hrApplication,wszApplicationMessage,dwReserved)
  1592. #define IVssComponentEx2_GetFailure(This,phr,phrApplication,pbstrApplicationMessage,pdwReserved) (This)->lpVtbl->GetFailure(This,phr,phrApplication,pbstrApplicationMessage,pdwReserved)
  1593. #else
  1594. /*** IUnknown methods ***/
  1595. static FORCEINLINE HRESULT IVssComponentEx2_QueryInterface(IVssComponentEx2* This,REFIID riid,void **ppvObject) {
  1596. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1597. }
  1598. static FORCEINLINE ULONG IVssComponentEx2_AddRef(IVssComponentEx2* This) {
  1599. return This->lpVtbl->AddRef(This);
  1600. }
  1601. static FORCEINLINE ULONG IVssComponentEx2_Release(IVssComponentEx2* This) {
  1602. return This->lpVtbl->Release(This);
  1603. }
  1604. /*** IVssComponent methods ***/
  1605. static FORCEINLINE HRESULT IVssComponentEx2_GetLogicalPath(IVssComponentEx2* This,BSTR *pbstrPath) {
  1606. return This->lpVtbl->GetLogicalPath(This,pbstrPath);
  1607. }
  1608. static FORCEINLINE HRESULT IVssComponentEx2_GetComponentType(IVssComponentEx2* This,VSS_COMPONENT_TYPE *pct) {
  1609. return This->lpVtbl->GetComponentType(This,pct);
  1610. }
  1611. static FORCEINLINE HRESULT IVssComponentEx2_GetComponentName(IVssComponentEx2* This,BSTR *pbstrName) {
  1612. return This->lpVtbl->GetComponentName(This,pbstrName);
  1613. }
  1614. static FORCEINLINE HRESULT IVssComponentEx2_GetBackupSucceeded(IVssComponentEx2* This,boolean *pbSucceeded) {
  1615. return This->lpVtbl->GetBackupSucceeded(This,pbSucceeded);
  1616. }
  1617. static FORCEINLINE HRESULT IVssComponentEx2_GetAlternateLocationMappingCount(IVssComponentEx2* This,UINT *pcMappings) {
  1618. return This->lpVtbl->GetAlternateLocationMappingCount(This,pcMappings);
  1619. }
  1620. static FORCEINLINE HRESULT IVssComponentEx2_GetAlternateLocationMapping(IVssComponentEx2* This,UINT iMapping,IVssWMFiledesc **ppFiledesc) {
  1621. return This->lpVtbl->GetAlternateLocationMapping(This,iMapping,ppFiledesc);
  1622. }
  1623. static FORCEINLINE HRESULT IVssComponentEx2_SetBackupMetadata(IVssComponentEx2* This,LPCWSTR wszData) {
  1624. return This->lpVtbl->SetBackupMetadata(This,wszData);
  1625. }
  1626. static FORCEINLINE HRESULT IVssComponentEx2_GetBackupMetadata(IVssComponentEx2* This,BSTR *pbstrData) {
  1627. return This->lpVtbl->GetBackupMetadata(This,pbstrData);
  1628. }
  1629. static FORCEINLINE HRESULT IVssComponentEx2_AddPartialFile(IVssComponentEx2* This,LPCWSTR wszPath,LPCWSTR wszFilename,LPCWSTR wszRanges,LPCWSTR wszMetadata) {
  1630. return This->lpVtbl->AddPartialFile(This,wszPath,wszFilename,wszRanges,wszMetadata);
  1631. }
  1632. static FORCEINLINE HRESULT IVssComponentEx2_GetPartialFileCount(IVssComponentEx2* This,UINT *pcPartialFiles) {
  1633. return This->lpVtbl->GetPartialFileCount(This,pcPartialFiles);
  1634. }
  1635. static FORCEINLINE HRESULT IVssComponentEx2_GetPartialFile(IVssComponentEx2* This,UINT iPartialFile,BSTR *pbstrPath,BSTR *pbstrFilename,BSTR *pbstrRange,BSTR *pbstrMetadata) {
  1636. return This->lpVtbl->GetPartialFile(This,iPartialFile,pbstrPath,pbstrFilename,pbstrRange,pbstrMetadata);
  1637. }
  1638. static FORCEINLINE HRESULT IVssComponentEx2_IsSelectedForRestore(IVssComponentEx2* This,boolean *pbSelectedForRestore) {
  1639. return This->lpVtbl->IsSelectedForRestore(This,pbSelectedForRestore);
  1640. }
  1641. static FORCEINLINE HRESULT IVssComponentEx2_GetAdditionalRestores(IVssComponentEx2* This,boolean *pbAdditionalRestores) {
  1642. return This->lpVtbl->GetAdditionalRestores(This,pbAdditionalRestores);
  1643. }
  1644. static FORCEINLINE HRESULT IVssComponentEx2_GetNewTargetCount(IVssComponentEx2* This,UINT *pcNewTarget) {
  1645. return This->lpVtbl->GetNewTargetCount(This,pcNewTarget);
  1646. }
  1647. static FORCEINLINE HRESULT IVssComponentEx2_GetNewTarget(IVssComponentEx2* This,UINT iNewTarget,IVssWMFiledesc **ppFiledesc) {
  1648. return This->lpVtbl->GetNewTarget(This,iNewTarget,ppFiledesc);
  1649. }
  1650. static FORCEINLINE HRESULT IVssComponentEx2_AddDirectedTarget(IVssComponentEx2* This,LPCWSTR wszSourcePath,LPCWSTR wszSourceFilename,LPCWSTR wszSourceRangeList,LPCWSTR wszDestinationPath,LPCWSTR wszDestinationFilename,LPCWSTR wszDestinationRangeList) {
  1651. return This->lpVtbl->AddDirectedTarget(This,wszSourcePath,wszSourceFilename,wszSourceRangeList,wszDestinationPath,wszDestinationFilename,wszDestinationRangeList);
  1652. }
  1653. static FORCEINLINE HRESULT IVssComponentEx2_GetDirectedTargetCount(IVssComponentEx2* This,UINT *pcDirectedTarget) {
  1654. return This->lpVtbl->GetDirectedTargetCount(This,pcDirectedTarget);
  1655. }
  1656. static FORCEINLINE HRESULT IVssComponentEx2_GetDirectedTarget(IVssComponentEx2* This,UINT iDirectedTarget,BSTR *pbstrSourcePath,BSTR *pbstrSourceFileName,BSTR *pbstrSourceRangeList,BSTR *pbstrDestinationPath,BSTR *pbstrDestinationFilename,BSTR *pbstrDestinationRangeList) {
  1657. return This->lpVtbl->GetDirectedTarget(This,iDirectedTarget,pbstrSourcePath,pbstrSourceFileName,pbstrSourceRangeList,pbstrDestinationPath,pbstrDestinationFilename,pbstrDestinationRangeList);
  1658. }
  1659. static FORCEINLINE HRESULT IVssComponentEx2_SetRestoreMetadata(IVssComponentEx2* This,LPCWSTR wszRestoreMetadata) {
  1660. return This->lpVtbl->SetRestoreMetadata(This,wszRestoreMetadata);
  1661. }
  1662. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreMetadata(IVssComponentEx2* This,BSTR *pbstrRestoreMetadata) {
  1663. return This->lpVtbl->GetRestoreMetadata(This,pbstrRestoreMetadata);
  1664. }
  1665. static FORCEINLINE HRESULT IVssComponentEx2_SetRestoreTarget(IVssComponentEx2* This,VSS_RESTORE_TARGET target) {
  1666. return This->lpVtbl->SetRestoreTarget(This,target);
  1667. }
  1668. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreTarget(IVssComponentEx2* This,VSS_RESTORE_TARGET *pTarget) {
  1669. return This->lpVtbl->GetRestoreTarget(This,pTarget);
  1670. }
  1671. static FORCEINLINE HRESULT IVssComponentEx2_SetPreRestoreFailureMsg(IVssComponentEx2* This,LPCWSTR wszPreRestoreFailureMsg) {
  1672. return This->lpVtbl->SetPreRestoreFailureMsg(This,wszPreRestoreFailureMsg);
  1673. }
  1674. static FORCEINLINE HRESULT IVssComponentEx2_GetPreRestoreFailureMsg(IVssComponentEx2* This,BSTR *pbstrPreRestoreFailureMsg) {
  1675. return This->lpVtbl->GetPreRestoreFailureMsg(This,pbstrPreRestoreFailureMsg);
  1676. }
  1677. static FORCEINLINE HRESULT IVssComponentEx2_SetPostRestoreFailureMsg(IVssComponentEx2* This,LPCWSTR wszPostRestoreFailureMsg) {
  1678. return This->lpVtbl->SetPostRestoreFailureMsg(This,wszPostRestoreFailureMsg);
  1679. }
  1680. static FORCEINLINE HRESULT IVssComponentEx2_GetPostRestoreFailureMsg(IVssComponentEx2* This,BSTR *pbstrPostRestoreFailureMsg) {
  1681. return This->lpVtbl->GetPostRestoreFailureMsg(This,pbstrPostRestoreFailureMsg);
  1682. }
  1683. static FORCEINLINE HRESULT IVssComponentEx2_SetBackupStamp(IVssComponentEx2* This,LPCWSTR wszBackupStamp) {
  1684. return This->lpVtbl->SetBackupStamp(This,wszBackupStamp);
  1685. }
  1686. static FORCEINLINE HRESULT IVssComponentEx2_GetBackupStamp(IVssComponentEx2* This,BSTR *pbstrBackupStamp) {
  1687. return This->lpVtbl->GetBackupStamp(This,pbstrBackupStamp);
  1688. }
  1689. static FORCEINLINE HRESULT IVssComponentEx2_GetPreviousBackupStamp(IVssComponentEx2* This,BSTR *pbstrBackupStamp) {
  1690. return This->lpVtbl->GetPreviousBackupStamp(This,pbstrBackupStamp);
  1691. }
  1692. static FORCEINLINE HRESULT IVssComponentEx2_GetBackupOptions(IVssComponentEx2* This,BSTR *pbstrBackupOptions) {
  1693. return This->lpVtbl->GetBackupOptions(This,pbstrBackupOptions);
  1694. }
  1695. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreOptions(IVssComponentEx2* This,BSTR *pbstrRestoreOptions) {
  1696. return This->lpVtbl->GetRestoreOptions(This,pbstrRestoreOptions);
  1697. }
  1698. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreSubcomponentCount(IVssComponentEx2* This,UINT *pcRestoreSubcomponent) {
  1699. return This->lpVtbl->GetRestoreSubcomponentCount(This,pcRestoreSubcomponent);
  1700. }
  1701. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreSubcomponent(IVssComponentEx2* This,UINT iComponent,BSTR *pbstrLogicalPath,BSTR *pbstrComponentName,boolean *pbRepair) {
  1702. return This->lpVtbl->GetRestoreSubcomponent(This,iComponent,pbstrLogicalPath,pbstrComponentName,pbRepair);
  1703. }
  1704. static FORCEINLINE HRESULT IVssComponentEx2_GetFileRestoreStatus(IVssComponentEx2* This,VSS_FILE_RESTORE_STATUS *pStatus) {
  1705. return This->lpVtbl->GetFileRestoreStatus(This,pStatus);
  1706. }
  1707. static FORCEINLINE HRESULT IVssComponentEx2_AddDifferencedFilesByLastModifyTime(IVssComponentEx2* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,FILETIME ftLastModifyTime) {
  1708. return This->lpVtbl->AddDifferencedFilesByLastModifyTime(This,wszPath,wszFilespec,bRecursive,ftLastModifyTime);
  1709. }
  1710. static FORCEINLINE HRESULT IVssComponentEx2_AddDifferencedFilesByLastModifyLSN(IVssComponentEx2* This,LPCWSTR wszPath,LPCWSTR wszFilespec,WINBOOL bRecursive,BSTR bstrLsnString) {
  1711. return This->lpVtbl->AddDifferencedFilesByLastModifyLSN(This,wszPath,wszFilespec,bRecursive,bstrLsnString);
  1712. }
  1713. static FORCEINLINE HRESULT IVssComponentEx2_GetDifferencedFilesCount(IVssComponentEx2* This,UINT *pcDifferencedFiles) {
  1714. return This->lpVtbl->GetDifferencedFilesCount(This,pcDifferencedFiles);
  1715. }
  1716. static FORCEINLINE HRESULT IVssComponentEx2_GetDifferencedFile(IVssComponentEx2* This,UINT iDifferencedFile,BSTR *pbstrPath,BSTR *pbstrFilespec,WINBOOL *pbRecursive,BSTR *pbstrLsnString,FILETIME *pftLastModifyTime) {
  1717. return This->lpVtbl->GetDifferencedFile(This,iDifferencedFile,pbstrPath,pbstrFilespec,pbRecursive,pbstrLsnString,pftLastModifyTime);
  1718. }
  1719. /*** IVssComponentEx methods ***/
  1720. static FORCEINLINE HRESULT IVssComponentEx2_SetPrepareForBackupFailureMsg(IVssComponentEx2* This,LPCWSTR wszFailureMsg) {
  1721. return This->lpVtbl->SetPrepareForBackupFailureMsg(This,wszFailureMsg);
  1722. }
  1723. static FORCEINLINE HRESULT IVssComponentEx2_SetPostSnapshotFailureMsg(IVssComponentEx2* This,LPCWSTR wszFailureMsg) {
  1724. return This->lpVtbl->SetPostSnapshotFailureMsg(This,wszFailureMsg);
  1725. }
  1726. static FORCEINLINE HRESULT IVssComponentEx2_GetPrepareForBackupFailureMsg(IVssComponentEx2* This,BSTR *pbstrFailureMsg) {
  1727. return This->lpVtbl->GetPrepareForBackupFailureMsg(This,pbstrFailureMsg);
  1728. }
  1729. static FORCEINLINE HRESULT IVssComponentEx2_GetPostSnapshotFailureMsg(IVssComponentEx2* This,BSTR *pbstrFailureMsg) {
  1730. return This->lpVtbl->GetPostSnapshotFailureMsg(This,pbstrFailureMsg);
  1731. }
  1732. static FORCEINLINE HRESULT IVssComponentEx2_GetAuthoritativeRestore(IVssComponentEx2* This,boolean *pbAuth) {
  1733. return This->lpVtbl->GetAuthoritativeRestore(This,pbAuth);
  1734. }
  1735. static FORCEINLINE HRESULT IVssComponentEx2_GetRollForward(IVssComponentEx2* This,VSS_ROLLFORWARD_TYPE *pRollType,BSTR *pbstrPoint) {
  1736. return This->lpVtbl->GetRollForward(This,pRollType,pbstrPoint);
  1737. }
  1738. static FORCEINLINE HRESULT IVssComponentEx2_GetRestoreName(IVssComponentEx2* This,BSTR *pbstrName) {
  1739. return This->lpVtbl->GetRestoreName(This,pbstrName);
  1740. }
  1741. /*** IVssComponentEx2 methods ***/
  1742. static FORCEINLINE HRESULT IVssComponentEx2_SetFailure(IVssComponentEx2* This,HRESULT hr,HRESULT hrApplication,LPCWSTR wszApplicationMessage,DWORD dwReserved) {
  1743. return This->lpVtbl->SetFailure(This,hr,hrApplication,wszApplicationMessage,dwReserved);
  1744. }
  1745. static FORCEINLINE HRESULT IVssComponentEx2_GetFailure(IVssComponentEx2* This,HRESULT *phr,HRESULT *phrApplication,BSTR *pbstrApplicationMessage,DWORD *pdwReserved) {
  1746. return This->lpVtbl->GetFailure(This,phr,phrApplication,pbstrApplicationMessage,pdwReserved);
  1747. }
  1748. #endif
  1749. #endif
  1750. #endif
  1751. #endif /* __IVssComponentEx2_INTERFACE_DEFINED__ */
  1752. #ifndef __IXMLDOMDocument_FWD_DEFINED__
  1753. #define __IXMLDOMDocument_FWD_DEFINED__
  1754. typedef interface IXMLDOMDocument IXMLDOMDocument;
  1755. #ifdef __cplusplus
  1756. interface IXMLDOMDocument;
  1757. #endif /* __cplusplus */
  1758. #endif
  1759. /*****************************************************************************
  1760. * IVssCreateWriterMetadata interface
  1761. */
  1762. #ifndef __IVssCreateWriterMetadata_INTERFACE_DEFINED__
  1763. #define __IVssCreateWriterMetadata_INTERFACE_DEFINED__
  1764. DEFINE_GUID(IID_IVssCreateWriterMetadata, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00);
  1765. #if defined(__cplusplus) && !defined(CINTERFACE)
  1766. MIDL_INTERFACE("00000000-0000-0000-0000-000000000000")
  1767. IVssCreateWriterMetadata
  1768. {
  1769. BEGIN_INTERFACE
  1770. virtual HRESULT STDMETHODCALLTYPE AddIncludeFiles(
  1771. LPCWSTR wszPath,
  1772. LPCWSTR wszFilespec,
  1773. boolean bRecursive,
  1774. LPCWSTR wszAlternateLocation) = 0;
  1775. virtual HRESULT STDMETHODCALLTYPE AddExcludeFiles(
  1776. LPCWSTR wszPath,
  1777. LPCWSTR wszFilespec,
  1778. boolean bRecursive) = 0;
  1779. virtual HRESULT STDMETHODCALLTYPE AddComponent(
  1780. VSS_COMPONENT_TYPE ct,
  1781. LPCWSTR wszLogicalPath,
  1782. LPCWSTR wszComponentName,
  1783. LPCWSTR wszCaption,
  1784. const BYTE *pbIcon,
  1785. UINT cbIcon,
  1786. boolean bRestoreMetadata,
  1787. boolean bNotifyOnBackupComplete,
  1788. boolean bSelectable,
  1789. boolean bSelectableForRestore = 0,
  1790. DWORD dwComponentFlags = 0) = 0;
  1791. virtual HRESULT STDMETHODCALLTYPE AddDatabaseFiles(
  1792. LPCWSTR wszLogicalPath,
  1793. LPCWSTR wszDatabaseName,
  1794. LPCWSTR wszPath,
  1795. LPCWSTR wszFilespec,
  1796. DWORD dwBackupTypeMask = VSS_FSBT_ALL_BACKUP_REQUIRED | VSS_FSBT_ALL_SNAPSHOT_REQUIRED) = 0;
  1797. virtual HRESULT STDMETHODCALLTYPE AddDatabaseLogFiles(
  1798. LPCWSTR wszLogicalPath,
  1799. LPCWSTR wszDatabaseName,
  1800. LPCWSTR wszPath,
  1801. LPCWSTR wszFilespec,
  1802. DWORD dwBackupTypeMask = VSS_FSBT_ALL_BACKUP_REQUIRED | VSS_FSBT_ALL_SNAPSHOT_REQUIRED) = 0;
  1803. virtual HRESULT STDMETHODCALLTYPE AddFilesToFileGroup(
  1804. LPCWSTR wszLogicalPath,
  1805. LPCWSTR wszGroupName,
  1806. LPCWSTR wszPath,
  1807. LPCWSTR wszFilespec,
  1808. boolean bRecursive,
  1809. LPCWSTR wszAlternateLocation,
  1810. DWORD dwBackupTypeMask = VSS_FSBT_ALL_BACKUP_REQUIRED | VSS_FSBT_ALL_SNAPSHOT_REQUIRED) = 0;
  1811. virtual HRESULT STDMETHODCALLTYPE SetRestoreMethod(
  1812. VSS_RESTOREMETHOD_ENUM method,
  1813. LPCWSTR wszService,
  1814. LPCWSTR wszUserProcedure,
  1815. VSS_WRITERRESTORE_ENUM writerRestore,
  1816. boolean bRebootRequired) = 0;
  1817. virtual HRESULT STDMETHODCALLTYPE AddAlternateLocationMapping(
  1818. LPCWSTR wszSourcePath,
  1819. LPCWSTR wszSourceFilespec,
  1820. boolean bRecursive,
  1821. LPCWSTR wszDestination) = 0;
  1822. virtual HRESULT STDMETHODCALLTYPE AddComponentDependency(
  1823. LPCWSTR wszForLogicalPath,
  1824. LPCWSTR wszForComponentName,
  1825. VSS_ID onWriterId,
  1826. LPCWSTR wszOnLogicalPath,
  1827. LPCWSTR wszOnComponentName) = 0;
  1828. virtual HRESULT STDMETHODCALLTYPE SetBackupSchema(
  1829. DWORD dwSchemaMask) = 0;
  1830. virtual HRESULT STDMETHODCALLTYPE GetDocument(
  1831. IXMLDOMDocument **pDoc) = 0;
  1832. virtual HRESULT STDMETHODCALLTYPE SaveAsXML(
  1833. BSTR *pbstrXML) = 0;
  1834. END_INTERFACE
  1835. };
  1836. #ifdef __CRT_UUID_DECL
  1837. __CRT_UUID_DECL(IVssCreateWriterMetadata, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00)
  1838. #endif
  1839. #else
  1840. typedef struct IVssCreateWriterMetadataVtbl {
  1841. BEGIN_INTERFACE
  1842. /*** IVssCreateWriterMetadata methods ***/
  1843. HRESULT (STDMETHODCALLTYPE *AddIncludeFiles)(
  1844. IVssCreateWriterMetadata *This,
  1845. LPCWSTR wszPath,
  1846. LPCWSTR wszFilespec,
  1847. boolean bRecursive,
  1848. LPCWSTR wszAlternateLocation);
  1849. HRESULT (STDMETHODCALLTYPE *AddExcludeFiles)(
  1850. IVssCreateWriterMetadata *This,
  1851. LPCWSTR wszPath,
  1852. LPCWSTR wszFilespec,
  1853. boolean bRecursive);
  1854. HRESULT (STDMETHODCALLTYPE *AddComponent)(
  1855. IVssCreateWriterMetadata *This,
  1856. VSS_COMPONENT_TYPE ct,
  1857. LPCWSTR wszLogicalPath,
  1858. LPCWSTR wszComponentName,
  1859. LPCWSTR wszCaption,
  1860. const BYTE *pbIcon,
  1861. UINT cbIcon,
  1862. boolean bRestoreMetadata,
  1863. boolean bNotifyOnBackupComplete,
  1864. boolean bSelectable,
  1865. boolean bSelectableForRestore,
  1866. DWORD dwComponentFlags);
  1867. HRESULT (STDMETHODCALLTYPE *AddDatabaseFiles)(
  1868. IVssCreateWriterMetadata *This,
  1869. LPCWSTR wszLogicalPath,
  1870. LPCWSTR wszDatabaseName,
  1871. LPCWSTR wszPath,
  1872. LPCWSTR wszFilespec,
  1873. DWORD dwBackupTypeMask);
  1874. HRESULT (STDMETHODCALLTYPE *AddDatabaseLogFiles)(
  1875. IVssCreateWriterMetadata *This,
  1876. LPCWSTR wszLogicalPath,
  1877. LPCWSTR wszDatabaseName,
  1878. LPCWSTR wszPath,
  1879. LPCWSTR wszFilespec,
  1880. DWORD dwBackupTypeMask);
  1881. HRESULT (STDMETHODCALLTYPE *AddFilesToFileGroup)(
  1882. IVssCreateWriterMetadata *This,
  1883. LPCWSTR wszLogicalPath,
  1884. LPCWSTR wszGroupName,
  1885. LPCWSTR wszPath,
  1886. LPCWSTR wszFilespec,
  1887. boolean bRecursive,
  1888. LPCWSTR wszAlternateLocation,
  1889. DWORD dwBackupTypeMask);
  1890. HRESULT (STDMETHODCALLTYPE *SetRestoreMethod)(
  1891. IVssCreateWriterMetadata *This,
  1892. VSS_RESTOREMETHOD_ENUM method,
  1893. LPCWSTR wszService,
  1894. LPCWSTR wszUserProcedure,
  1895. VSS_WRITERRESTORE_ENUM writerRestore,
  1896. boolean bRebootRequired);
  1897. HRESULT (STDMETHODCALLTYPE *AddAlternateLocationMapping)(
  1898. IVssCreateWriterMetadata *This,
  1899. LPCWSTR wszSourcePath,
  1900. LPCWSTR wszSourceFilespec,
  1901. boolean bRecursive,
  1902. LPCWSTR wszDestination);
  1903. HRESULT (STDMETHODCALLTYPE *AddComponentDependency)(
  1904. IVssCreateWriterMetadata *This,
  1905. LPCWSTR wszForLogicalPath,
  1906. LPCWSTR wszForComponentName,
  1907. VSS_ID onWriterId,
  1908. LPCWSTR wszOnLogicalPath,
  1909. LPCWSTR wszOnComponentName);
  1910. HRESULT (STDMETHODCALLTYPE *SetBackupSchema)(
  1911. IVssCreateWriterMetadata *This,
  1912. DWORD dwSchemaMask);
  1913. HRESULT (STDMETHODCALLTYPE *GetDocument)(
  1914. IVssCreateWriterMetadata *This,
  1915. IXMLDOMDocument **pDoc);
  1916. HRESULT (STDMETHODCALLTYPE *SaveAsXML)(
  1917. IVssCreateWriterMetadata *This,
  1918. BSTR *pbstrXML);
  1919. END_INTERFACE
  1920. } IVssCreateWriterMetadataVtbl;
  1921. interface IVssCreateWriterMetadata {
  1922. CONST_VTBL IVssCreateWriterMetadataVtbl* lpVtbl;
  1923. };
  1924. #ifdef COBJMACROS
  1925. #ifndef WIDL_C_INLINE_WRAPPERS
  1926. /*** IVssCreateWriterMetadata methods ***/
  1927. #define IVssCreateWriterMetadata_AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation) (This)->lpVtbl->AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation)
  1928. #define IVssCreateWriterMetadata_AddExcludeFiles(This,wszPath,wszFilespec,bRecursive) (This)->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive)
  1929. #define IVssCreateWriterMetadata_AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags) (This)->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags)
  1930. #define IVssCreateWriterMetadata_AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask) (This)->lpVtbl->AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask)
  1931. #define IVssCreateWriterMetadata_AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask) (This)->lpVtbl->AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask)
  1932. #define IVssCreateWriterMetadata_AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask) (This)->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask)
  1933. #define IVssCreateWriterMetadata_SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired) (This)->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired)
  1934. #define IVssCreateWriterMetadata_AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination) (This)->lpVtbl->AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination)
  1935. #define IVssCreateWriterMetadata_AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName) (This)->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName)
  1936. #define IVssCreateWriterMetadata_SetBackupSchema(This,dwSchemaMask) (This)->lpVtbl->SetBackupSchema(This,dwSchemaMask)
  1937. #define IVssCreateWriterMetadata_GetDocument(This,pDoc) (This)->lpVtbl->GetDocument(This,pDoc)
  1938. #define IVssCreateWriterMetadata_SaveAsXML(This,pbstrXML) (This)->lpVtbl->SaveAsXML(This,pbstrXML)
  1939. #else
  1940. /*** IVssCreateWriterMetadata methods ***/
  1941. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddIncludeFiles(IVssCreateWriterMetadata* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive,LPCWSTR wszAlternateLocation) {
  1942. return This->lpVtbl->AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation);
  1943. }
  1944. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddExcludeFiles(IVssCreateWriterMetadata* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive) {
  1945. return This->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive);
  1946. }
  1947. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddComponent(IVssCreateWriterMetadata* This,VSS_COMPONENT_TYPE ct,LPCWSTR wszLogicalPath,LPCWSTR wszComponentName,LPCWSTR wszCaption,const BYTE *pbIcon,UINT cbIcon,boolean bRestoreMetadata,boolean bNotifyOnBackupComplete,boolean bSelectable,boolean bSelectableForRestore,DWORD dwComponentFlags) {
  1948. return This->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags);
  1949. }
  1950. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddDatabaseFiles(IVssCreateWriterMetadata* This,LPCWSTR wszLogicalPath,LPCWSTR wszDatabaseName,LPCWSTR wszPath,LPCWSTR wszFilespec,DWORD dwBackupTypeMask) {
  1951. return This->lpVtbl->AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask);
  1952. }
  1953. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddDatabaseLogFiles(IVssCreateWriterMetadata* This,LPCWSTR wszLogicalPath,LPCWSTR wszDatabaseName,LPCWSTR wszPath,LPCWSTR wszFilespec,DWORD dwBackupTypeMask) {
  1954. return This->lpVtbl->AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask);
  1955. }
  1956. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddFilesToFileGroup(IVssCreateWriterMetadata* This,LPCWSTR wszLogicalPath,LPCWSTR wszGroupName,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive,LPCWSTR wszAlternateLocation,DWORD dwBackupTypeMask) {
  1957. return This->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask);
  1958. }
  1959. static FORCEINLINE HRESULT IVssCreateWriterMetadata_SetRestoreMethod(IVssCreateWriterMetadata* This,VSS_RESTOREMETHOD_ENUM method,LPCWSTR wszService,LPCWSTR wszUserProcedure,VSS_WRITERRESTORE_ENUM writerRestore,boolean bRebootRequired) {
  1960. return This->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired);
  1961. }
  1962. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddAlternateLocationMapping(IVssCreateWriterMetadata* This,LPCWSTR wszSourcePath,LPCWSTR wszSourceFilespec,boolean bRecursive,LPCWSTR wszDestination) {
  1963. return This->lpVtbl->AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination);
  1964. }
  1965. static FORCEINLINE HRESULT IVssCreateWriterMetadata_AddComponentDependency(IVssCreateWriterMetadata* This,LPCWSTR wszForLogicalPath,LPCWSTR wszForComponentName,VSS_ID onWriterId,LPCWSTR wszOnLogicalPath,LPCWSTR wszOnComponentName) {
  1966. return This->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName);
  1967. }
  1968. static FORCEINLINE HRESULT IVssCreateWriterMetadata_SetBackupSchema(IVssCreateWriterMetadata* This,DWORD dwSchemaMask) {
  1969. return This->lpVtbl->SetBackupSchema(This,dwSchemaMask);
  1970. }
  1971. static FORCEINLINE HRESULT IVssCreateWriterMetadata_GetDocument(IVssCreateWriterMetadata* This,IXMLDOMDocument **pDoc) {
  1972. return This->lpVtbl->GetDocument(This,pDoc);
  1973. }
  1974. static FORCEINLINE HRESULT IVssCreateWriterMetadata_SaveAsXML(IVssCreateWriterMetadata* This,BSTR *pbstrXML) {
  1975. return This->lpVtbl->SaveAsXML(This,pbstrXML);
  1976. }
  1977. #endif
  1978. #endif
  1979. #endif
  1980. #endif /* __IVssCreateWriterMetadata_INTERFACE_DEFINED__ */
  1981. /*****************************************************************************
  1982. * IVssCreateWriterMetadataEx interface
  1983. */
  1984. #ifndef __IVssCreateWriterMetadataEx_INTERFACE_DEFINED__
  1985. #define __IVssCreateWriterMetadataEx_INTERFACE_DEFINED__
  1986. DEFINE_GUID(IID_IVssCreateWriterMetadataEx, 0x9f21981d, 0xd469, 0x4349, 0xb8,0x07, 0x39,0xe6,0x4e,0x46,0x74,0xe1);
  1987. #if defined(__cplusplus) && !defined(CINTERFACE)
  1988. MIDL_INTERFACE("9f21981d-d469-4349-b807-39e64e4674e1")
  1989. IVssCreateWriterMetadataEx : public IVssCreateWriterMetadata
  1990. {
  1991. virtual HRESULT STDMETHODCALLTYPE AddExcludeFilesFromSnapshot(
  1992. LPCWSTR wszPath,
  1993. LPCWSTR wszFilespec,
  1994. boolean bRecursive) = 0;
  1995. };
  1996. #ifdef __CRT_UUID_DECL
  1997. __CRT_UUID_DECL(IVssCreateWriterMetadataEx, 0x9f21981d, 0xd469, 0x4349, 0xb8,0x07, 0x39,0xe6,0x4e,0x46,0x74,0xe1)
  1998. #endif
  1999. #else
  2000. typedef struct IVssCreateWriterMetadataExVtbl {
  2001. BEGIN_INTERFACE
  2002. /*** IVssCreateWriterMetadata methods ***/
  2003. HRESULT (STDMETHODCALLTYPE *AddIncludeFiles)(
  2004. IVssCreateWriterMetadataEx *This,
  2005. LPCWSTR wszPath,
  2006. LPCWSTR wszFilespec,
  2007. boolean bRecursive,
  2008. LPCWSTR wszAlternateLocation);
  2009. HRESULT (STDMETHODCALLTYPE *AddExcludeFiles)(
  2010. IVssCreateWriterMetadataEx *This,
  2011. LPCWSTR wszPath,
  2012. LPCWSTR wszFilespec,
  2013. boolean bRecursive);
  2014. HRESULT (STDMETHODCALLTYPE *AddComponent)(
  2015. IVssCreateWriterMetadataEx *This,
  2016. VSS_COMPONENT_TYPE ct,
  2017. LPCWSTR wszLogicalPath,
  2018. LPCWSTR wszComponentName,
  2019. LPCWSTR wszCaption,
  2020. const BYTE *pbIcon,
  2021. UINT cbIcon,
  2022. boolean bRestoreMetadata,
  2023. boolean bNotifyOnBackupComplete,
  2024. boolean bSelectable,
  2025. boolean bSelectableForRestore,
  2026. DWORD dwComponentFlags);
  2027. HRESULT (STDMETHODCALLTYPE *AddDatabaseFiles)(
  2028. IVssCreateWriterMetadataEx *This,
  2029. LPCWSTR wszLogicalPath,
  2030. LPCWSTR wszDatabaseName,
  2031. LPCWSTR wszPath,
  2032. LPCWSTR wszFilespec,
  2033. DWORD dwBackupTypeMask);
  2034. HRESULT (STDMETHODCALLTYPE *AddDatabaseLogFiles)(
  2035. IVssCreateWriterMetadataEx *This,
  2036. LPCWSTR wszLogicalPath,
  2037. LPCWSTR wszDatabaseName,
  2038. LPCWSTR wszPath,
  2039. LPCWSTR wszFilespec,
  2040. DWORD dwBackupTypeMask);
  2041. HRESULT (STDMETHODCALLTYPE *AddFilesToFileGroup)(
  2042. IVssCreateWriterMetadataEx *This,
  2043. LPCWSTR wszLogicalPath,
  2044. LPCWSTR wszGroupName,
  2045. LPCWSTR wszPath,
  2046. LPCWSTR wszFilespec,
  2047. boolean bRecursive,
  2048. LPCWSTR wszAlternateLocation,
  2049. DWORD dwBackupTypeMask);
  2050. HRESULT (STDMETHODCALLTYPE *SetRestoreMethod)(
  2051. IVssCreateWriterMetadataEx *This,
  2052. VSS_RESTOREMETHOD_ENUM method,
  2053. LPCWSTR wszService,
  2054. LPCWSTR wszUserProcedure,
  2055. VSS_WRITERRESTORE_ENUM writerRestore,
  2056. boolean bRebootRequired);
  2057. HRESULT (STDMETHODCALLTYPE *AddAlternateLocationMapping)(
  2058. IVssCreateWriterMetadataEx *This,
  2059. LPCWSTR wszSourcePath,
  2060. LPCWSTR wszSourceFilespec,
  2061. boolean bRecursive,
  2062. LPCWSTR wszDestination);
  2063. HRESULT (STDMETHODCALLTYPE *AddComponentDependency)(
  2064. IVssCreateWriterMetadataEx *This,
  2065. LPCWSTR wszForLogicalPath,
  2066. LPCWSTR wszForComponentName,
  2067. VSS_ID onWriterId,
  2068. LPCWSTR wszOnLogicalPath,
  2069. LPCWSTR wszOnComponentName);
  2070. HRESULT (STDMETHODCALLTYPE *SetBackupSchema)(
  2071. IVssCreateWriterMetadataEx *This,
  2072. DWORD dwSchemaMask);
  2073. HRESULT (STDMETHODCALLTYPE *GetDocument)(
  2074. IVssCreateWriterMetadataEx *This,
  2075. IXMLDOMDocument **pDoc);
  2076. HRESULT (STDMETHODCALLTYPE *SaveAsXML)(
  2077. IVssCreateWriterMetadataEx *This,
  2078. BSTR *pbstrXML);
  2079. /*** IVssCreateWriterMetadataEx methods ***/
  2080. HRESULT (STDMETHODCALLTYPE *AddExcludeFilesFromSnapshot)(
  2081. IVssCreateWriterMetadataEx *This,
  2082. LPCWSTR wszPath,
  2083. LPCWSTR wszFilespec,
  2084. boolean bRecursive);
  2085. END_INTERFACE
  2086. } IVssCreateWriterMetadataExVtbl;
  2087. interface IVssCreateWriterMetadataEx {
  2088. CONST_VTBL IVssCreateWriterMetadataExVtbl* lpVtbl;
  2089. };
  2090. #ifdef COBJMACROS
  2091. #ifndef WIDL_C_INLINE_WRAPPERS
  2092. /*** IVssCreateWriterMetadata methods ***/
  2093. #define IVssCreateWriterMetadataEx_AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation) (This)->lpVtbl->AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation)
  2094. #define IVssCreateWriterMetadataEx_AddExcludeFiles(This,wszPath,wszFilespec,bRecursive) (This)->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive)
  2095. #define IVssCreateWriterMetadataEx_AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags) (This)->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags)
  2096. #define IVssCreateWriterMetadataEx_AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask) (This)->lpVtbl->AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask)
  2097. #define IVssCreateWriterMetadataEx_AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask) (This)->lpVtbl->AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask)
  2098. #define IVssCreateWriterMetadataEx_AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask) (This)->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask)
  2099. #define IVssCreateWriterMetadataEx_SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired) (This)->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired)
  2100. #define IVssCreateWriterMetadataEx_AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination) (This)->lpVtbl->AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination)
  2101. #define IVssCreateWriterMetadataEx_AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName) (This)->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName)
  2102. #define IVssCreateWriterMetadataEx_SetBackupSchema(This,dwSchemaMask) (This)->lpVtbl->SetBackupSchema(This,dwSchemaMask)
  2103. #define IVssCreateWriterMetadataEx_GetDocument(This,pDoc) (This)->lpVtbl->GetDocument(This,pDoc)
  2104. #define IVssCreateWriterMetadataEx_SaveAsXML(This,pbstrXML) (This)->lpVtbl->SaveAsXML(This,pbstrXML)
  2105. /*** IVssCreateWriterMetadataEx methods ***/
  2106. #define IVssCreateWriterMetadataEx_AddExcludeFilesFromSnapshot(This,wszPath,wszFilespec,bRecursive) (This)->lpVtbl->AddExcludeFilesFromSnapshot(This,wszPath,wszFilespec,bRecursive)
  2107. #else
  2108. /*** IVssCreateWriterMetadata methods ***/
  2109. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddIncludeFiles(IVssCreateWriterMetadataEx* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive,LPCWSTR wszAlternateLocation) {
  2110. return This->lpVtbl->AddIncludeFiles(This,wszPath,wszFilespec,bRecursive,wszAlternateLocation);
  2111. }
  2112. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddExcludeFiles(IVssCreateWriterMetadataEx* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive) {
  2113. return This->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive);
  2114. }
  2115. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddComponent(IVssCreateWriterMetadataEx* This,VSS_COMPONENT_TYPE ct,LPCWSTR wszLogicalPath,LPCWSTR wszComponentName,LPCWSTR wszCaption,const BYTE *pbIcon,UINT cbIcon,boolean bRestoreMetadata,boolean bNotifyOnBackupComplete,boolean bSelectable,boolean bSelectableForRestore,DWORD dwComponentFlags) {
  2116. return This->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags);
  2117. }
  2118. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddDatabaseFiles(IVssCreateWriterMetadataEx* This,LPCWSTR wszLogicalPath,LPCWSTR wszDatabaseName,LPCWSTR wszPath,LPCWSTR wszFilespec,DWORD dwBackupTypeMask) {
  2119. return This->lpVtbl->AddDatabaseFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask);
  2120. }
  2121. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddDatabaseLogFiles(IVssCreateWriterMetadataEx* This,LPCWSTR wszLogicalPath,LPCWSTR wszDatabaseName,LPCWSTR wszPath,LPCWSTR wszFilespec,DWORD dwBackupTypeMask) {
  2122. return This->lpVtbl->AddDatabaseLogFiles(This,wszLogicalPath,wszDatabaseName,wszPath,wszFilespec,dwBackupTypeMask);
  2123. }
  2124. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddFilesToFileGroup(IVssCreateWriterMetadataEx* This,LPCWSTR wszLogicalPath,LPCWSTR wszGroupName,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive,LPCWSTR wszAlternateLocation,DWORD dwBackupTypeMask) {
  2125. return This->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask);
  2126. }
  2127. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_SetRestoreMethod(IVssCreateWriterMetadataEx* This,VSS_RESTOREMETHOD_ENUM method,LPCWSTR wszService,LPCWSTR wszUserProcedure,VSS_WRITERRESTORE_ENUM writerRestore,boolean bRebootRequired) {
  2128. return This->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired);
  2129. }
  2130. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddAlternateLocationMapping(IVssCreateWriterMetadataEx* This,LPCWSTR wszSourcePath,LPCWSTR wszSourceFilespec,boolean bRecursive,LPCWSTR wszDestination) {
  2131. return This->lpVtbl->AddAlternateLocationMapping(This,wszSourcePath,wszSourceFilespec,bRecursive,wszDestination);
  2132. }
  2133. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddComponentDependency(IVssCreateWriterMetadataEx* This,LPCWSTR wszForLogicalPath,LPCWSTR wszForComponentName,VSS_ID onWriterId,LPCWSTR wszOnLogicalPath,LPCWSTR wszOnComponentName) {
  2134. return This->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName);
  2135. }
  2136. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_SetBackupSchema(IVssCreateWriterMetadataEx* This,DWORD dwSchemaMask) {
  2137. return This->lpVtbl->SetBackupSchema(This,dwSchemaMask);
  2138. }
  2139. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_GetDocument(IVssCreateWriterMetadataEx* This,IXMLDOMDocument **pDoc) {
  2140. return This->lpVtbl->GetDocument(This,pDoc);
  2141. }
  2142. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_SaveAsXML(IVssCreateWriterMetadataEx* This,BSTR *pbstrXML) {
  2143. return This->lpVtbl->SaveAsXML(This,pbstrXML);
  2144. }
  2145. /*** IVssCreateWriterMetadataEx methods ***/
  2146. static FORCEINLINE HRESULT IVssCreateWriterMetadataEx_AddExcludeFilesFromSnapshot(IVssCreateWriterMetadataEx* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive) {
  2147. return This->lpVtbl->AddExcludeFilesFromSnapshot(This,wszPath,wszFilespec,bRecursive);
  2148. }
  2149. #endif
  2150. #endif
  2151. #endif
  2152. #endif /* __IVssCreateWriterMetadataEx_INTERFACE_DEFINED__ */
  2153. /*****************************************************************************
  2154. * IVssWriterImpl interface
  2155. */
  2156. #ifndef __IVssWriterImpl_INTERFACE_DEFINED__
  2157. #define __IVssWriterImpl_INTERFACE_DEFINED__
  2158. DEFINE_GUID(IID_IVssWriterImpl, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00);
  2159. #if defined(__cplusplus) && !defined(CINTERFACE)
  2160. MIDL_INTERFACE("00000000-0000-0000-0000-000000000000")
  2161. IVssWriterImpl : public IUnknown
  2162. {
  2163. virtual HRESULT STDMETHODCALLTYPE Initialize(
  2164. VSS_ID writerId,
  2165. LPCWSTR wszWriterName,
  2166. LPCWSTR wszWriterInstanceName,
  2167. DWORD dwMajorVersion,
  2168. DWORD dwMinorVersion,
  2169. VSS_USAGE_TYPE ut,
  2170. VSS_SOURCE_TYPE st,
  2171. VSS_APPLICATION_LEVEL nLevel,
  2172. DWORD dwTimeout,
  2173. VSS_ALTERNATE_WRITER_STATE aws,
  2174. boolean bIOThrottlingOnly) = 0;
  2175. virtual HRESULT STDMETHODCALLTYPE Subscribe(
  2176. DWORD dwSubscribeTimeout,
  2177. DWORD dwEventFlags) = 0;
  2178. virtual HRESULT STDMETHODCALLTYPE Unsubscribe(
  2179. ) = 0;
  2180. virtual void STDMETHODCALLTYPE Uninitialize(
  2181. ) = 0;
  2182. virtual LPCWSTR * STDMETHODCALLTYPE GetCurrentVolumeArray(
  2183. ) = 0;
  2184. virtual UINT STDMETHODCALLTYPE GetCurrentVolumeCount(
  2185. ) = 0;
  2186. virtual HRESULT STDMETHODCALLTYPE GetSnapshotDeviceName(
  2187. LPCWSTR wszOriginalVolume,
  2188. LPCWSTR *ppwszSnapshotDevice) = 0;
  2189. #ifdef WIDL_EXPLICIT_AGGREGATE_RETURNS
  2190. virtual VSS_ID* STDMETHODCALLTYPE GetCurrentSnapshotSetId(
  2191. VSS_ID *__ret) = 0;
  2192. VSS_ID STDMETHODCALLTYPE GetCurrentSnapshotSetId(
  2193. )
  2194. {
  2195. VSS_ID __ret;
  2196. return *GetCurrentSnapshotSetId(&__ret);
  2197. }
  2198. #else
  2199. virtual VSS_ID STDMETHODCALLTYPE GetCurrentSnapshotSetId(
  2200. ) = 0;
  2201. #endif
  2202. virtual LONG STDMETHODCALLTYPE GetContext(
  2203. ) = 0;
  2204. virtual VSS_APPLICATION_LEVEL STDMETHODCALLTYPE GetCurrentLevel(
  2205. ) = 0;
  2206. virtual boolean STDMETHODCALLTYPE IsPathAffected(
  2207. LPCWSTR wszPath) = 0;
  2208. virtual boolean STDMETHODCALLTYPE IsBootableSystemStateBackedUp(
  2209. ) = 0;
  2210. virtual boolean STDMETHODCALLTYPE AreComponentsSelected(
  2211. ) = 0;
  2212. virtual VSS_BACKUP_TYPE STDMETHODCALLTYPE GetBackupType(
  2213. ) = 0;
  2214. virtual VSS_RESTORE_TYPE STDMETHODCALLTYPE GetRestoreType(
  2215. ) = 0;
  2216. virtual HRESULT STDMETHODCALLTYPE SetWriterFailure(
  2217. HRESULT hr) = 0;
  2218. virtual boolean STDMETHODCALLTYPE IsPartialFileSupportEnabled(
  2219. ) = 0;
  2220. virtual HRESULT STDMETHODCALLTYPE InstallAlternateWriter(
  2221. VSS_ID idWriter,
  2222. CLSID clsid) = 0;
  2223. virtual IVssExamineWriterMetadata * STDMETHODCALLTYPE GetIdentityInformation(
  2224. ) = 0;
  2225. virtual HRESULT STDMETHODCALLTYPE SetWriterFailureEx(
  2226. HRESULT hr,
  2227. HRESULT hrApplication,
  2228. LPCWSTR wszApplicationMessage) = 0;
  2229. virtual HRESULT STDMETHODCALLTYPE GetSessionId(
  2230. VSS_ID *idSession) = 0;
  2231. virtual boolean STDMETHODCALLTYPE IsWriterShuttingDown(
  2232. ) = 0;
  2233. };
  2234. #ifdef __CRT_UUID_DECL
  2235. __CRT_UUID_DECL(IVssWriterImpl, 0x00000000, 0x0000, 0x0000, 0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00)
  2236. #endif
  2237. #else
  2238. typedef struct IVssWriterImplVtbl {
  2239. BEGIN_INTERFACE
  2240. /*** IUnknown methods ***/
  2241. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2242. IVssWriterImpl *This,
  2243. REFIID riid,
  2244. void **ppvObject);
  2245. ULONG (STDMETHODCALLTYPE *AddRef)(
  2246. IVssWriterImpl *This);
  2247. ULONG (STDMETHODCALLTYPE *Release)(
  2248. IVssWriterImpl *This);
  2249. /*** IVssWriterImpl methods ***/
  2250. HRESULT (STDMETHODCALLTYPE *Initialize)(
  2251. IVssWriterImpl *This,
  2252. VSS_ID writerId,
  2253. LPCWSTR wszWriterName,
  2254. LPCWSTR wszWriterInstanceName,
  2255. DWORD dwMajorVersion,
  2256. DWORD dwMinorVersion,
  2257. VSS_USAGE_TYPE ut,
  2258. VSS_SOURCE_TYPE st,
  2259. VSS_APPLICATION_LEVEL nLevel,
  2260. DWORD dwTimeout,
  2261. VSS_ALTERNATE_WRITER_STATE aws,
  2262. boolean bIOThrottlingOnly);
  2263. HRESULT (STDMETHODCALLTYPE *Subscribe)(
  2264. IVssWriterImpl *This,
  2265. DWORD dwSubscribeTimeout,
  2266. DWORD dwEventFlags);
  2267. HRESULT (STDMETHODCALLTYPE *Unsubscribe)(
  2268. IVssWriterImpl *This);
  2269. void (STDMETHODCALLTYPE *Uninitialize)(
  2270. IVssWriterImpl *This);
  2271. LPCWSTR * (STDMETHODCALLTYPE *GetCurrentVolumeArray)(
  2272. IVssWriterImpl *This);
  2273. UINT (STDMETHODCALLTYPE *GetCurrentVolumeCount)(
  2274. IVssWriterImpl *This);
  2275. HRESULT (STDMETHODCALLTYPE *GetSnapshotDeviceName)(
  2276. IVssWriterImpl *This,
  2277. LPCWSTR wszOriginalVolume,
  2278. LPCWSTR *ppwszSnapshotDevice);
  2279. VSS_ID * (STDMETHODCALLTYPE *GetCurrentSnapshotSetId)(
  2280. IVssWriterImpl *This,
  2281. VSS_ID *__ret);
  2282. LONG (STDMETHODCALLTYPE *GetContext)(
  2283. IVssWriterImpl *This);
  2284. VSS_APPLICATION_LEVEL (STDMETHODCALLTYPE *GetCurrentLevel)(
  2285. IVssWriterImpl *This);
  2286. boolean (STDMETHODCALLTYPE *IsPathAffected)(
  2287. IVssWriterImpl *This,
  2288. LPCWSTR wszPath);
  2289. boolean (STDMETHODCALLTYPE *IsBootableSystemStateBackedUp)(
  2290. IVssWriterImpl *This);
  2291. boolean (STDMETHODCALLTYPE *AreComponentsSelected)(
  2292. IVssWriterImpl *This);
  2293. VSS_BACKUP_TYPE (STDMETHODCALLTYPE *GetBackupType)(
  2294. IVssWriterImpl *This);
  2295. VSS_RESTORE_TYPE (STDMETHODCALLTYPE *GetRestoreType)(
  2296. IVssWriterImpl *This);
  2297. HRESULT (STDMETHODCALLTYPE *SetWriterFailure)(
  2298. IVssWriterImpl *This,
  2299. HRESULT hr);
  2300. boolean (STDMETHODCALLTYPE *IsPartialFileSupportEnabled)(
  2301. IVssWriterImpl *This);
  2302. HRESULT (STDMETHODCALLTYPE *InstallAlternateWriter)(
  2303. IVssWriterImpl *This,
  2304. VSS_ID idWriter,
  2305. CLSID clsid);
  2306. IVssExamineWriterMetadata * (STDMETHODCALLTYPE *GetIdentityInformation)(
  2307. IVssWriterImpl *This);
  2308. HRESULT (STDMETHODCALLTYPE *SetWriterFailureEx)(
  2309. IVssWriterImpl *This,
  2310. HRESULT hr,
  2311. HRESULT hrApplication,
  2312. LPCWSTR wszApplicationMessage);
  2313. HRESULT (STDMETHODCALLTYPE *GetSessionId)(
  2314. IVssWriterImpl *This,
  2315. VSS_ID *idSession);
  2316. boolean (STDMETHODCALLTYPE *IsWriterShuttingDown)(
  2317. IVssWriterImpl *This);
  2318. END_INTERFACE
  2319. } IVssWriterImplVtbl;
  2320. interface IVssWriterImpl {
  2321. CONST_VTBL IVssWriterImplVtbl* lpVtbl;
  2322. };
  2323. #ifdef COBJMACROS
  2324. #ifndef WIDL_C_INLINE_WRAPPERS
  2325. /*** IUnknown methods ***/
  2326. #define IVssWriterImpl_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2327. #define IVssWriterImpl_AddRef(This) (This)->lpVtbl->AddRef(This)
  2328. #define IVssWriterImpl_Release(This) (This)->lpVtbl->Release(This)
  2329. /*** IVssWriterImpl methods ***/
  2330. #define IVssWriterImpl_Initialize(This,writerId,wszWriterName,wszWriterInstanceName,dwMajorVersion,dwMinorVersion,ut,st,nLevel,dwTimeout,aws,bIOThrottlingOnly) (This)->lpVtbl->Initialize(This,writerId,wszWriterName,wszWriterInstanceName,dwMajorVersion,dwMinorVersion,ut,st,nLevel,dwTimeout,aws,bIOThrottlingOnly)
  2331. #define IVssWriterImpl_Subscribe(This,dwSubscribeTimeout,dwEventFlags) (This)->lpVtbl->Subscribe(This,dwSubscribeTimeout,dwEventFlags)
  2332. #define IVssWriterImpl_Unsubscribe(This) (This)->lpVtbl->Unsubscribe(This)
  2333. #define IVssWriterImpl_Uninitialize(This) (This)->lpVtbl->Uninitialize(This)
  2334. #define IVssWriterImpl_GetCurrentVolumeArray(This) (This)->lpVtbl->GetCurrentVolumeArray(This)
  2335. #define IVssWriterImpl_GetCurrentVolumeCount(This) (This)->lpVtbl->GetCurrentVolumeCount(This)
  2336. #define IVssWriterImpl_GetSnapshotDeviceName(This,wszOriginalVolume,ppwszSnapshotDevice) (This)->lpVtbl->GetSnapshotDeviceName(This,wszOriginalVolume,ppwszSnapshotDevice)
  2337. #define IVssWriterImpl_GetCurrentSnapshotSetId(This) IVssWriterImpl_GetCurrentSnapshotSetId_define_WIDL_C_INLINE_WRAPPERS_for_aggregate_return_support
  2338. #define IVssWriterImpl_GetContext(This) (This)->lpVtbl->GetContext(This)
  2339. #define IVssWriterImpl_GetCurrentLevel(This) (This)->lpVtbl->GetCurrentLevel(This)
  2340. #define IVssWriterImpl_IsPathAffected(This,wszPath) (This)->lpVtbl->IsPathAffected(This,wszPath)
  2341. #define IVssWriterImpl_IsBootableSystemStateBackedUp(This) (This)->lpVtbl->IsBootableSystemStateBackedUp(This)
  2342. #define IVssWriterImpl_AreComponentsSelected(This) (This)->lpVtbl->AreComponentsSelected(This)
  2343. #define IVssWriterImpl_GetBackupType(This) (This)->lpVtbl->GetBackupType(This)
  2344. #define IVssWriterImpl_GetRestoreType(This) (This)->lpVtbl->GetRestoreType(This)
  2345. #define IVssWriterImpl_SetWriterFailure(This,hr) (This)->lpVtbl->SetWriterFailure(This,hr)
  2346. #define IVssWriterImpl_IsPartialFileSupportEnabled(This) (This)->lpVtbl->IsPartialFileSupportEnabled(This)
  2347. #define IVssWriterImpl_InstallAlternateWriter(This,idWriter,clsid) (This)->lpVtbl->InstallAlternateWriter(This,idWriter,clsid)
  2348. #define IVssWriterImpl_GetIdentityInformation(This) (This)->lpVtbl->GetIdentityInformation(This)
  2349. #define IVssWriterImpl_SetWriterFailureEx(This,hr,hrApplication,wszApplicationMessage) (This)->lpVtbl->SetWriterFailureEx(This,hr,hrApplication,wszApplicationMessage)
  2350. #define IVssWriterImpl_GetSessionId(This,idSession) (This)->lpVtbl->GetSessionId(This,idSession)
  2351. #define IVssWriterImpl_IsWriterShuttingDown(This) (This)->lpVtbl->IsWriterShuttingDown(This)
  2352. #else
  2353. /*** IUnknown methods ***/
  2354. static FORCEINLINE HRESULT IVssWriterImpl_QueryInterface(IVssWriterImpl* This,REFIID riid,void **ppvObject) {
  2355. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2356. }
  2357. static FORCEINLINE ULONG IVssWriterImpl_AddRef(IVssWriterImpl* This) {
  2358. return This->lpVtbl->AddRef(This);
  2359. }
  2360. static FORCEINLINE ULONG IVssWriterImpl_Release(IVssWriterImpl* This) {
  2361. return This->lpVtbl->Release(This);
  2362. }
  2363. /*** IVssWriterImpl methods ***/
  2364. static FORCEINLINE HRESULT IVssWriterImpl_Initialize(IVssWriterImpl* This,VSS_ID writerId,LPCWSTR wszWriterName,LPCWSTR wszWriterInstanceName,DWORD dwMajorVersion,DWORD dwMinorVersion,VSS_USAGE_TYPE ut,VSS_SOURCE_TYPE st,VSS_APPLICATION_LEVEL nLevel,DWORD dwTimeout,VSS_ALTERNATE_WRITER_STATE aws,boolean bIOThrottlingOnly) {
  2365. return This->lpVtbl->Initialize(This,writerId,wszWriterName,wszWriterInstanceName,dwMajorVersion,dwMinorVersion,ut,st,nLevel,dwTimeout,aws,bIOThrottlingOnly);
  2366. }
  2367. static FORCEINLINE HRESULT IVssWriterImpl_Subscribe(IVssWriterImpl* This,DWORD dwSubscribeTimeout,DWORD dwEventFlags) {
  2368. return This->lpVtbl->Subscribe(This,dwSubscribeTimeout,dwEventFlags);
  2369. }
  2370. static FORCEINLINE HRESULT IVssWriterImpl_Unsubscribe(IVssWriterImpl* This) {
  2371. return This->lpVtbl->Unsubscribe(This);
  2372. }
  2373. static FORCEINLINE void IVssWriterImpl_Uninitialize(IVssWriterImpl* This) {
  2374. This->lpVtbl->Uninitialize(This);
  2375. }
  2376. static FORCEINLINE LPCWSTR * IVssWriterImpl_GetCurrentVolumeArray(IVssWriterImpl* This) {
  2377. return This->lpVtbl->GetCurrentVolumeArray(This);
  2378. }
  2379. static FORCEINLINE UINT IVssWriterImpl_GetCurrentVolumeCount(IVssWriterImpl* This) {
  2380. return This->lpVtbl->GetCurrentVolumeCount(This);
  2381. }
  2382. static FORCEINLINE HRESULT IVssWriterImpl_GetSnapshotDeviceName(IVssWriterImpl* This,LPCWSTR wszOriginalVolume,LPCWSTR *ppwszSnapshotDevice) {
  2383. return This->lpVtbl->GetSnapshotDeviceName(This,wszOriginalVolume,ppwszSnapshotDevice);
  2384. }
  2385. static FORCEINLINE VSS_ID IVssWriterImpl_GetCurrentSnapshotSetId(IVssWriterImpl* This) {
  2386. VSS_ID __ret;
  2387. return *This->lpVtbl->GetCurrentSnapshotSetId(This,&__ret);
  2388. }
  2389. static FORCEINLINE LONG IVssWriterImpl_GetContext(IVssWriterImpl* This) {
  2390. return This->lpVtbl->GetContext(This);
  2391. }
  2392. static FORCEINLINE VSS_APPLICATION_LEVEL IVssWriterImpl_GetCurrentLevel(IVssWriterImpl* This) {
  2393. return This->lpVtbl->GetCurrentLevel(This);
  2394. }
  2395. static FORCEINLINE boolean IVssWriterImpl_IsPathAffected(IVssWriterImpl* This,LPCWSTR wszPath) {
  2396. return This->lpVtbl->IsPathAffected(This,wszPath);
  2397. }
  2398. static FORCEINLINE boolean IVssWriterImpl_IsBootableSystemStateBackedUp(IVssWriterImpl* This) {
  2399. return This->lpVtbl->IsBootableSystemStateBackedUp(This);
  2400. }
  2401. static FORCEINLINE boolean IVssWriterImpl_AreComponentsSelected(IVssWriterImpl* This) {
  2402. return This->lpVtbl->AreComponentsSelected(This);
  2403. }
  2404. static FORCEINLINE VSS_BACKUP_TYPE IVssWriterImpl_GetBackupType(IVssWriterImpl* This) {
  2405. return This->lpVtbl->GetBackupType(This);
  2406. }
  2407. static FORCEINLINE VSS_RESTORE_TYPE IVssWriterImpl_GetRestoreType(IVssWriterImpl* This) {
  2408. return This->lpVtbl->GetRestoreType(This);
  2409. }
  2410. static FORCEINLINE HRESULT IVssWriterImpl_SetWriterFailure(IVssWriterImpl* This,HRESULT hr) {
  2411. return This->lpVtbl->SetWriterFailure(This,hr);
  2412. }
  2413. static FORCEINLINE boolean IVssWriterImpl_IsPartialFileSupportEnabled(IVssWriterImpl* This) {
  2414. return This->lpVtbl->IsPartialFileSupportEnabled(This);
  2415. }
  2416. static FORCEINLINE HRESULT IVssWriterImpl_InstallAlternateWriter(IVssWriterImpl* This,VSS_ID idWriter,CLSID clsid) {
  2417. return This->lpVtbl->InstallAlternateWriter(This,idWriter,clsid);
  2418. }
  2419. static FORCEINLINE IVssExamineWriterMetadata * IVssWriterImpl_GetIdentityInformation(IVssWriterImpl* This) {
  2420. return This->lpVtbl->GetIdentityInformation(This);
  2421. }
  2422. static FORCEINLINE HRESULT IVssWriterImpl_SetWriterFailureEx(IVssWriterImpl* This,HRESULT hr,HRESULT hrApplication,LPCWSTR wszApplicationMessage) {
  2423. return This->lpVtbl->SetWriterFailureEx(This,hr,hrApplication,wszApplicationMessage);
  2424. }
  2425. static FORCEINLINE HRESULT IVssWriterImpl_GetSessionId(IVssWriterImpl* This,VSS_ID *idSession) {
  2426. return This->lpVtbl->GetSessionId(This,idSession);
  2427. }
  2428. static FORCEINLINE boolean IVssWriterImpl_IsWriterShuttingDown(IVssWriterImpl* This) {
  2429. return This->lpVtbl->IsWriterShuttingDown(This);
  2430. }
  2431. #endif
  2432. #endif
  2433. #endif
  2434. #endif /* __IVssWriterImpl_INTERFACE_DEFINED__ */
  2435. /*****************************************************************************
  2436. * IVssCreateExpressWriterMetadata interface
  2437. */
  2438. #ifndef __IVssCreateExpressWriterMetadata_INTERFACE_DEFINED__
  2439. #define __IVssCreateExpressWriterMetadata_INTERFACE_DEFINED__
  2440. DEFINE_GUID(IID_IVssCreateExpressWriterMetadata, 0x9c772e77, 0xb26e, 0x427f, 0x92,0xdd, 0xc9,0x96,0xf4,0x1e,0xa5,0xe3);
  2441. #if defined(__cplusplus) && !defined(CINTERFACE)
  2442. MIDL_INTERFACE("9c772e77-b26e-427f-92dd-c996f41ea5e3")
  2443. IVssCreateExpressWriterMetadata : public IUnknown
  2444. {
  2445. virtual HRESULT STDMETHODCALLTYPE AddExcludeFiles(
  2446. LPCWSTR wszPath,
  2447. LPCWSTR wszFilespec,
  2448. boolean bRecursive) = 0;
  2449. virtual HRESULT STDMETHODCALLTYPE AddComponent(
  2450. VSS_COMPONENT_TYPE ct,
  2451. LPCWSTR wszLogicalPath,
  2452. LPCWSTR wszComponentName,
  2453. LPCWSTR wszCaption,
  2454. const BYTE *pbIcon,
  2455. UINT cbIcon,
  2456. boolean bRestoreMetadata,
  2457. boolean bNotifyOnBackupComplete,
  2458. boolean bSelectable,
  2459. boolean bSelectableForRestore = 0,
  2460. DWORD dwComponentFlags = 0) = 0;
  2461. virtual HRESULT STDMETHODCALLTYPE AddFilesToFileGroup(
  2462. LPCWSTR wszLogicalPath,
  2463. LPCWSTR wszGroupName,
  2464. LPCWSTR wszPath,
  2465. LPCWSTR wszFilespec,
  2466. boolean bRecursive,
  2467. LPCWSTR wszAlternateLocation,
  2468. DWORD dwBackupTypeMask = VSS_FSBT_ALL_BACKUP_REQUIRED | VSS_FSBT_ALL_SNAPSHOT_REQUIRED) = 0;
  2469. virtual HRESULT STDMETHODCALLTYPE SetRestoreMethod(
  2470. VSS_RESTOREMETHOD_ENUM method,
  2471. LPCWSTR wszService,
  2472. LPCWSTR wszUserProcedure,
  2473. VSS_WRITERRESTORE_ENUM writerRestore,
  2474. boolean bRebootRequired) = 0;
  2475. virtual HRESULT STDMETHODCALLTYPE AddComponentDependency(
  2476. LPCWSTR wszForLogicalPath,
  2477. LPCWSTR wszForComponentName,
  2478. VSS_ID onWriterId,
  2479. LPCWSTR wszOnLogicalPath,
  2480. LPCWSTR wszOnComponentName) = 0;
  2481. virtual HRESULT STDMETHODCALLTYPE SetBackupSchema(
  2482. DWORD dwSchemaMask) = 0;
  2483. virtual HRESULT STDMETHODCALLTYPE SaveAsXML(
  2484. BSTR *pbstrXML) = 0;
  2485. };
  2486. #ifdef __CRT_UUID_DECL
  2487. __CRT_UUID_DECL(IVssCreateExpressWriterMetadata, 0x9c772e77, 0xb26e, 0x427f, 0x92,0xdd, 0xc9,0x96,0xf4,0x1e,0xa5,0xe3)
  2488. #endif
  2489. #else
  2490. typedef struct IVssCreateExpressWriterMetadataVtbl {
  2491. BEGIN_INTERFACE
  2492. /*** IUnknown methods ***/
  2493. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2494. IVssCreateExpressWriterMetadata *This,
  2495. REFIID riid,
  2496. void **ppvObject);
  2497. ULONG (STDMETHODCALLTYPE *AddRef)(
  2498. IVssCreateExpressWriterMetadata *This);
  2499. ULONG (STDMETHODCALLTYPE *Release)(
  2500. IVssCreateExpressWriterMetadata *This);
  2501. /*** IVssCreateExpressWriterMetadata methods ***/
  2502. HRESULT (STDMETHODCALLTYPE *AddExcludeFiles)(
  2503. IVssCreateExpressWriterMetadata *This,
  2504. LPCWSTR wszPath,
  2505. LPCWSTR wszFilespec,
  2506. boolean bRecursive);
  2507. HRESULT (STDMETHODCALLTYPE *AddComponent)(
  2508. IVssCreateExpressWriterMetadata *This,
  2509. VSS_COMPONENT_TYPE ct,
  2510. LPCWSTR wszLogicalPath,
  2511. LPCWSTR wszComponentName,
  2512. LPCWSTR wszCaption,
  2513. const BYTE *pbIcon,
  2514. UINT cbIcon,
  2515. boolean bRestoreMetadata,
  2516. boolean bNotifyOnBackupComplete,
  2517. boolean bSelectable,
  2518. boolean bSelectableForRestore,
  2519. DWORD dwComponentFlags);
  2520. HRESULT (STDMETHODCALLTYPE *AddFilesToFileGroup)(
  2521. IVssCreateExpressWriterMetadata *This,
  2522. LPCWSTR wszLogicalPath,
  2523. LPCWSTR wszGroupName,
  2524. LPCWSTR wszPath,
  2525. LPCWSTR wszFilespec,
  2526. boolean bRecursive,
  2527. LPCWSTR wszAlternateLocation,
  2528. DWORD dwBackupTypeMask);
  2529. HRESULT (STDMETHODCALLTYPE *SetRestoreMethod)(
  2530. IVssCreateExpressWriterMetadata *This,
  2531. VSS_RESTOREMETHOD_ENUM method,
  2532. LPCWSTR wszService,
  2533. LPCWSTR wszUserProcedure,
  2534. VSS_WRITERRESTORE_ENUM writerRestore,
  2535. boolean bRebootRequired);
  2536. HRESULT (STDMETHODCALLTYPE *AddComponentDependency)(
  2537. IVssCreateExpressWriterMetadata *This,
  2538. LPCWSTR wszForLogicalPath,
  2539. LPCWSTR wszForComponentName,
  2540. VSS_ID onWriterId,
  2541. LPCWSTR wszOnLogicalPath,
  2542. LPCWSTR wszOnComponentName);
  2543. HRESULT (STDMETHODCALLTYPE *SetBackupSchema)(
  2544. IVssCreateExpressWriterMetadata *This,
  2545. DWORD dwSchemaMask);
  2546. HRESULT (STDMETHODCALLTYPE *SaveAsXML)(
  2547. IVssCreateExpressWriterMetadata *This,
  2548. BSTR *pbstrXML);
  2549. END_INTERFACE
  2550. } IVssCreateExpressWriterMetadataVtbl;
  2551. interface IVssCreateExpressWriterMetadata {
  2552. CONST_VTBL IVssCreateExpressWriterMetadataVtbl* lpVtbl;
  2553. };
  2554. #ifdef COBJMACROS
  2555. #ifndef WIDL_C_INLINE_WRAPPERS
  2556. /*** IUnknown methods ***/
  2557. #define IVssCreateExpressWriterMetadata_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2558. #define IVssCreateExpressWriterMetadata_AddRef(This) (This)->lpVtbl->AddRef(This)
  2559. #define IVssCreateExpressWriterMetadata_Release(This) (This)->lpVtbl->Release(This)
  2560. /*** IVssCreateExpressWriterMetadata methods ***/
  2561. #define IVssCreateExpressWriterMetadata_AddExcludeFiles(This,wszPath,wszFilespec,bRecursive) (This)->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive)
  2562. #define IVssCreateExpressWriterMetadata_AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags) (This)->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags)
  2563. #define IVssCreateExpressWriterMetadata_AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask) (This)->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask)
  2564. #define IVssCreateExpressWriterMetadata_SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired) (This)->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired)
  2565. #define IVssCreateExpressWriterMetadata_AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName) (This)->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName)
  2566. #define IVssCreateExpressWriterMetadata_SetBackupSchema(This,dwSchemaMask) (This)->lpVtbl->SetBackupSchema(This,dwSchemaMask)
  2567. #define IVssCreateExpressWriterMetadata_SaveAsXML(This,pbstrXML) (This)->lpVtbl->SaveAsXML(This,pbstrXML)
  2568. #else
  2569. /*** IUnknown methods ***/
  2570. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_QueryInterface(IVssCreateExpressWriterMetadata* This,REFIID riid,void **ppvObject) {
  2571. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2572. }
  2573. static FORCEINLINE ULONG IVssCreateExpressWriterMetadata_AddRef(IVssCreateExpressWriterMetadata* This) {
  2574. return This->lpVtbl->AddRef(This);
  2575. }
  2576. static FORCEINLINE ULONG IVssCreateExpressWriterMetadata_Release(IVssCreateExpressWriterMetadata* This) {
  2577. return This->lpVtbl->Release(This);
  2578. }
  2579. /*** IVssCreateExpressWriterMetadata methods ***/
  2580. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_AddExcludeFiles(IVssCreateExpressWriterMetadata* This,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive) {
  2581. return This->lpVtbl->AddExcludeFiles(This,wszPath,wszFilespec,bRecursive);
  2582. }
  2583. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_AddComponent(IVssCreateExpressWriterMetadata* This,VSS_COMPONENT_TYPE ct,LPCWSTR wszLogicalPath,LPCWSTR wszComponentName,LPCWSTR wszCaption,const BYTE *pbIcon,UINT cbIcon,boolean bRestoreMetadata,boolean bNotifyOnBackupComplete,boolean bSelectable,boolean bSelectableForRestore,DWORD dwComponentFlags) {
  2584. return This->lpVtbl->AddComponent(This,ct,wszLogicalPath,wszComponentName,wszCaption,pbIcon,cbIcon,bRestoreMetadata,bNotifyOnBackupComplete,bSelectable,bSelectableForRestore,dwComponentFlags);
  2585. }
  2586. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_AddFilesToFileGroup(IVssCreateExpressWriterMetadata* This,LPCWSTR wszLogicalPath,LPCWSTR wszGroupName,LPCWSTR wszPath,LPCWSTR wszFilespec,boolean bRecursive,LPCWSTR wszAlternateLocation,DWORD dwBackupTypeMask) {
  2587. return This->lpVtbl->AddFilesToFileGroup(This,wszLogicalPath,wszGroupName,wszPath,wszFilespec,bRecursive,wszAlternateLocation,dwBackupTypeMask);
  2588. }
  2589. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_SetRestoreMethod(IVssCreateExpressWriterMetadata* This,VSS_RESTOREMETHOD_ENUM method,LPCWSTR wszService,LPCWSTR wszUserProcedure,VSS_WRITERRESTORE_ENUM writerRestore,boolean bRebootRequired) {
  2590. return This->lpVtbl->SetRestoreMethod(This,method,wszService,wszUserProcedure,writerRestore,bRebootRequired);
  2591. }
  2592. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_AddComponentDependency(IVssCreateExpressWriterMetadata* This,LPCWSTR wszForLogicalPath,LPCWSTR wszForComponentName,VSS_ID onWriterId,LPCWSTR wszOnLogicalPath,LPCWSTR wszOnComponentName) {
  2593. return This->lpVtbl->AddComponentDependency(This,wszForLogicalPath,wszForComponentName,onWriterId,wszOnLogicalPath,wszOnComponentName);
  2594. }
  2595. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_SetBackupSchema(IVssCreateExpressWriterMetadata* This,DWORD dwSchemaMask) {
  2596. return This->lpVtbl->SetBackupSchema(This,dwSchemaMask);
  2597. }
  2598. static FORCEINLINE HRESULT IVssCreateExpressWriterMetadata_SaveAsXML(IVssCreateExpressWriterMetadata* This,BSTR *pbstrXML) {
  2599. return This->lpVtbl->SaveAsXML(This,pbstrXML);
  2600. }
  2601. #endif
  2602. #endif
  2603. #endif
  2604. #endif /* __IVssCreateExpressWriterMetadata_INTERFACE_DEFINED__ */
  2605. /*****************************************************************************
  2606. * IVssExpressWriter interface
  2607. */
  2608. #ifndef __IVssExpressWriter_INTERFACE_DEFINED__
  2609. #define __IVssExpressWriter_INTERFACE_DEFINED__
  2610. DEFINE_GUID(IID_IVssExpressWriter, 0xe33affdc, 0x59c7, 0x47b1, 0x97,0xd5, 0x42,0x66,0x59,0x8f,0x62,0x35);
  2611. #if defined(__cplusplus) && !defined(CINTERFACE)
  2612. MIDL_INTERFACE("e33affdc-59c7-47b1-97d5-4266598f6235")
  2613. IVssExpressWriter : public IUnknown
  2614. {
  2615. virtual HRESULT STDMETHODCALLTYPE CreateMetadata(
  2616. VSS_ID writerId,
  2617. LPCWSTR writerName,
  2618. VSS_USAGE_TYPE usageType,
  2619. DWORD versionMajor,
  2620. DWORD versionMinor,
  2621. DWORD reserved,
  2622. IVssCreateExpressWriterMetadata **ppMetadata) = 0;
  2623. virtual HRESULT STDMETHODCALLTYPE LoadMetadata(
  2624. LPCWSTR metadata,
  2625. DWORD reserved) = 0;
  2626. virtual HRESULT STDMETHODCALLTYPE Register(
  2627. ) = 0;
  2628. virtual HRESULT STDMETHODCALLTYPE Unregister(
  2629. VSS_ID writerId) = 0;
  2630. };
  2631. #ifdef __CRT_UUID_DECL
  2632. __CRT_UUID_DECL(IVssExpressWriter, 0xe33affdc, 0x59c7, 0x47b1, 0x97,0xd5, 0x42,0x66,0x59,0x8f,0x62,0x35)
  2633. #endif
  2634. #else
  2635. typedef struct IVssExpressWriterVtbl {
  2636. BEGIN_INTERFACE
  2637. /*** IUnknown methods ***/
  2638. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2639. IVssExpressWriter *This,
  2640. REFIID riid,
  2641. void **ppvObject);
  2642. ULONG (STDMETHODCALLTYPE *AddRef)(
  2643. IVssExpressWriter *This);
  2644. ULONG (STDMETHODCALLTYPE *Release)(
  2645. IVssExpressWriter *This);
  2646. /*** IVssExpressWriter methods ***/
  2647. HRESULT (STDMETHODCALLTYPE *CreateMetadata)(
  2648. IVssExpressWriter *This,
  2649. VSS_ID writerId,
  2650. LPCWSTR writerName,
  2651. VSS_USAGE_TYPE usageType,
  2652. DWORD versionMajor,
  2653. DWORD versionMinor,
  2654. DWORD reserved,
  2655. IVssCreateExpressWriterMetadata **ppMetadata);
  2656. HRESULT (STDMETHODCALLTYPE *LoadMetadata)(
  2657. IVssExpressWriter *This,
  2658. LPCWSTR metadata,
  2659. DWORD reserved);
  2660. HRESULT (STDMETHODCALLTYPE *Register)(
  2661. IVssExpressWriter *This);
  2662. HRESULT (STDMETHODCALLTYPE *Unregister)(
  2663. IVssExpressWriter *This,
  2664. VSS_ID writerId);
  2665. END_INTERFACE
  2666. } IVssExpressWriterVtbl;
  2667. interface IVssExpressWriter {
  2668. CONST_VTBL IVssExpressWriterVtbl* lpVtbl;
  2669. };
  2670. #ifdef COBJMACROS
  2671. #ifndef WIDL_C_INLINE_WRAPPERS
  2672. /*** IUnknown methods ***/
  2673. #define IVssExpressWriter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2674. #define IVssExpressWriter_AddRef(This) (This)->lpVtbl->AddRef(This)
  2675. #define IVssExpressWriter_Release(This) (This)->lpVtbl->Release(This)
  2676. /*** IVssExpressWriter methods ***/
  2677. #define IVssExpressWriter_CreateMetadata(This,writerId,writerName,usageType,versionMajor,versionMinor,reserved,ppMetadata) (This)->lpVtbl->CreateMetadata(This,writerId,writerName,usageType,versionMajor,versionMinor,reserved,ppMetadata)
  2678. #define IVssExpressWriter_LoadMetadata(This,metadata,reserved) (This)->lpVtbl->LoadMetadata(This,metadata,reserved)
  2679. #define IVssExpressWriter_Register(This) (This)->lpVtbl->Register(This)
  2680. #define IVssExpressWriter_Unregister(This,writerId) (This)->lpVtbl->Unregister(This,writerId)
  2681. #else
  2682. /*** IUnknown methods ***/
  2683. static FORCEINLINE HRESULT IVssExpressWriter_QueryInterface(IVssExpressWriter* This,REFIID riid,void **ppvObject) {
  2684. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2685. }
  2686. static FORCEINLINE ULONG IVssExpressWriter_AddRef(IVssExpressWriter* This) {
  2687. return This->lpVtbl->AddRef(This);
  2688. }
  2689. static FORCEINLINE ULONG IVssExpressWriter_Release(IVssExpressWriter* This) {
  2690. return This->lpVtbl->Release(This);
  2691. }
  2692. /*** IVssExpressWriter methods ***/
  2693. static FORCEINLINE HRESULT IVssExpressWriter_CreateMetadata(IVssExpressWriter* This,VSS_ID writerId,LPCWSTR writerName,VSS_USAGE_TYPE usageType,DWORD versionMajor,DWORD versionMinor,DWORD reserved,IVssCreateExpressWriterMetadata **ppMetadata) {
  2694. return This->lpVtbl->CreateMetadata(This,writerId,writerName,usageType,versionMajor,versionMinor,reserved,ppMetadata);
  2695. }
  2696. static FORCEINLINE HRESULT IVssExpressWriter_LoadMetadata(IVssExpressWriter* This,LPCWSTR metadata,DWORD reserved) {
  2697. return This->lpVtbl->LoadMetadata(This,metadata,reserved);
  2698. }
  2699. static FORCEINLINE HRESULT IVssExpressWriter_Register(IVssExpressWriter* This) {
  2700. return This->lpVtbl->Register(This);
  2701. }
  2702. static FORCEINLINE HRESULT IVssExpressWriter_Unregister(IVssExpressWriter* This,VSS_ID writerId) {
  2703. return This->lpVtbl->Unregister(This,writerId);
  2704. }
  2705. #endif
  2706. #endif
  2707. #endif
  2708. #endif /* __IVssExpressWriter_INTERFACE_DEFINED__ */
  2709. #endif /* WINAPI_PARTITION_DESKTOP */
  2710. /* Begin additional prototypes for all interfaces */
  2711. ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
  2712. unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
  2713. unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
  2714. void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
  2715. /* End additional prototypes */
  2716. #ifdef __cplusplus
  2717. }
  2718. #endif
  2719. #endif /* __vswriter_h__ */