ShObjIdl.idl 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958
  1. //
  2. // Microsoft Windows
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // File: shobjidl.idl
  6. //
  7. // Contents: This interface definition contains shell objects that can be remoted
  8. //
  9. import "objidl.idl";
  10. import "oleidl.idl";
  11. import "oaidl.idl";
  12. import "shtypes.idl";
  13. import "servprov.idl";
  14. import "comcat.idl"; // for IEnumGUID
  15. import "propidl.idl";
  16. import "prsht.idl";
  17. import "msxml.idl";
  18. cpp_quote("#ifndef _WINRESRC_")
  19. cpp_quote("#ifndef _WIN32_IE")
  20. cpp_quote("#define _WIN32_IE 0x0501")
  21. cpp_quote("#else")
  22. cpp_quote("#if (_WIN32_IE < 0x0400) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0500)")
  23. cpp_quote("#error _WIN32_IE setting conflicts with _WIN32_WINNT setting")
  24. cpp_quote("#endif")
  25. cpp_quote("#endif")
  26. cpp_quote("#endif")
  27. // IPersistFolder
  28. [
  29. object,
  30. uuid(000214EA-0000-0000-C000-000000000046), // IID_IPersistFolder
  31. pointer_default(unique),
  32. ]
  33. interface IPersistFolder : IPersist
  34. {
  35. // IShellFolder::BindToObject when it is initializing a shell folder object.")
  36. // called when the explorer is initializing a shell folder object.
  37. // pidl -- Specifies the absolute location of the folder
  38. HRESULT Initialize([in] LPCITEMIDLIST pidl);
  39. };
  40. typedef IPersistFolder *LPPERSISTFOLDER;
  41. cpp_quote("#if (_WIN32_IE >= 0x0400)")
  42. // IPersistFolder2
  43. [
  44. object,
  45. uuid(1AC3D9F0-175C-11d1-95BE-00609797EA4F), // IID_IPersistFolder2
  46. pointer_default(unique),
  47. ]
  48. interface IPersistFolder2 : IPersistFolder
  49. {
  50. HRESULT GetCurFolder([out] LPITEMIDLIST *ppidl);
  51. };
  52. typedef IPersistFolder2 *LPPERSISTFOLDER2;
  53. cpp_quote("#endif")
  54. [
  55. object,
  56. uuid(1079acfc-29bd-11d3-8e0d-00c04f6837d5), // IID_IPersistIDList
  57. pointer_default(unique),
  58. ]
  59. interface IPersistIDList : IPersist
  60. {
  61. // sets or gets a fully qualifed idlist for an object
  62. HRESULT SetIDList([in] LPCITEMIDLIST pidl);
  63. HRESULT GetIDList([out] LPITEMIDLIST *ppidl);
  64. };
  65. [
  66. helpstring("IEnumIDList "),
  67. uuid(000214F2-0000-0000-C000-000000000046),
  68. object,
  69. pointer_default(unique)
  70. ]
  71. interface IEnumIDList : IUnknown
  72. {
  73. HRESULT Next(
  74. [in] ULONG celt,
  75. [out, size_is(celt), length_is(*pceltFetched)] LPITEMIDLIST *rgelt,
  76. [out] ULONG *pceltFetched);
  77. HRESULT Skip([in] ULONG celt);
  78. HRESULT Reset();
  79. HRESULT Clone([out] IEnumIDList **ppenum);
  80. };
  81. typedef IEnumIDList *LPENUMIDLIST;
  82. // IShellFolder::GetDisplayNameOf/SetNameOf uFlags
  83. cpp_quote("typedef enum tagSHGDN")
  84. cpp_quote("{")
  85. cpp_quote(" SHGDN_NORMAL = 0x0000, // default (display purpose)")
  86. cpp_quote(" SHGDN_INFOLDER = 0x0001, // displayed under a folder (relative)")
  87. cpp_quote(" SHGDN_FOREDITING = 0x1000, // for in-place editing")
  88. cpp_quote(" SHGDN_FORADDRESSBAR = 0x4000, // UI friendly parsing name (remove ugly stuff)")
  89. cpp_quote(" SHGDN_FORPARSING = 0x8000, // parsing name for ParseDisplayName()")
  90. cpp_quote("} SHGNO;")
  91. typedef DWORD SHGDNF;
  92. // IShellFolder::EnumObjects grfFlags bits
  93. cpp_quote("typedef enum tagSHCONTF")
  94. cpp_quote("{")
  95. cpp_quote(" SHCONTF_FOLDERS = 0x0020, // only want folders enumerated (SFGAO_FOLDER)")
  96. cpp_quote(" SHCONTF_NONFOLDERS = 0x0040, // include non folders")
  97. cpp_quote(" SHCONTF_INCLUDEHIDDEN = 0x0080, // show items normally hidden")
  98. cpp_quote(" SHCONTF_INIT_ON_FIRST_NEXT = 0x0100, // allow EnumObject() to return before validating enum")
  99. cpp_quote(" SHCONTF_NETPRINTERSRCH = 0x0200, // hint that client is looking for printers")
  100. cpp_quote(" SHCONTF_SHAREABLE = 0x0400, // hint that client is looking sharable resources (remote shares)")
  101. cpp_quote(" SHCONTF_STORAGE = 0x0800, // include all items with accessible storage and their ancestors")
  102. cpp_quote("};")
  103. typedef DWORD SHCONTF;
  104. // IShellFolder::CompareIDs lParam flags
  105. //
  106. // SHCIDS_ALLFIELDS is a mask for lParam indicating that the shell folder
  107. // should first compare on the lParam column, and if that proves equal,
  108. // then perform a full comparison on all fields. This flag is supported
  109. // if the IShellFolder supports IShellFolder2.
  110. //
  111. // SHCIDS_CANONICALONLY is a mask for lParam indicating that the shell folder
  112. // that the caller doesn't care about proper sort order -- only equality matters.
  113. // (Most CompareIDs test for equality first, and in the case of inequality do
  114. // a UI sort. This bit allows for a more efficient sort in the inequality case.)
  115. //
  116. //
  117. cpp_quote("#define SHCIDS_ALLFIELDS 0x80000000L")
  118. cpp_quote("#define SHCIDS_CANONICALONLY 0x10000000L")
  119. cpp_quote("#define SHCIDS_BITMASK 0xFFFF0000L")
  120. cpp_quote("#define SHCIDS_COLUMNMASK 0x0000FFFFL")
  121. // IShellFolder::GetAttributesOf flags
  122. // SFGAO_CANLINK: If this bit is set on an item in the shell folder, a
  123. // 'Create Shortcut' menu item will be added to the File
  124. // menu and context menus for the item. If the user selects
  125. // that command, your IContextMenu::InvokeCommand() will be called
  126. // with 'link'.
  127. // That flag will also be used to determine if 'Create Shortcut'
  128. // should be added when the item in your folder is dragged to another
  129. // folder.
  130. cpp_quote("#define SFGAO_CANCOPY DROPEFFECT_COPY // Objects can be copied (0x1)")
  131. cpp_quote("#define SFGAO_CANMOVE DROPEFFECT_MOVE // Objects can be moved (0x2)")
  132. cpp_quote("#define SFGAO_CANLINK DROPEFFECT_LINK // Objects can be linked (0x4)")
  133. cpp_quote("#define SFGAO_STORAGE 0x00000008L // supports BindToObject(IID_IStorage)")
  134. cpp_quote("#define SFGAO_CANRENAME 0x00000010L // Objects can be renamed")
  135. cpp_quote("#define SFGAO_CANDELETE 0x00000020L // Objects can be deleted")
  136. cpp_quote("#define SFGAO_HASPROPSHEET 0x00000040L // Objects have property sheets")
  137. // unused 0x00000080
  138. cpp_quote("#define SFGAO_DROPTARGET 0x00000100L // Objects are drop target")
  139. cpp_quote("#define SFGAO_CAPABILITYMASK 0x00000177L")
  140. // unused 0x00000200
  141. // unused 0x00000400
  142. // unused 0x00000800
  143. // unused 0x00001000
  144. cpp_quote("#define SFGAO_ENCRYPTED 0x00002000L // object is encrypted (use alt color)")
  145. cpp_quote("#define SFGAO_ISSLOW 0x00004000L // 'slow' object")
  146. cpp_quote("#define SFGAO_GHOSTED 0x00008000L // ghosted icon")
  147. cpp_quote("#define SFGAO_LINK 0x00010000L // Shortcut (link)")
  148. cpp_quote("#define SFGAO_SHARE 0x00020000L // shared")
  149. cpp_quote("#define SFGAO_READONLY 0x00040000L // read-only")
  150. cpp_quote("#define SFGAO_HIDDEN 0x00080000L // hidden object")
  151. cpp_quote("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")
  152. cpp_quote("#define SFGAO_FILESYSANCESTOR 0x10000000L // may contain children with SFGAO_FILESYSTEM")
  153. cpp_quote("#define SFGAO_FOLDER 0x20000000L // support BindToObject(IID_IShellFolder)")
  154. cpp_quote("#define SFGAO_FILESYSTEM 0x40000000L // is a win32 file system object (file/folder/root)")
  155. cpp_quote("#define SFGAO_HASSUBFOLDER 0x80000000L // may contain children with SFGAO_FOLDER")
  156. cpp_quote("#define SFGAO_CONTENTSMASK 0x80000000L")
  157. cpp_quote("#define SFGAO_VALIDATE 0x01000000L // invalidate cached information")
  158. cpp_quote("#define SFGAO_REMOVABLE 0x02000000L // is this removeable media?")
  159. cpp_quote("#define SFGAO_COMPRESSED 0x04000000L // Object is compressed (use alt color)")
  160. cpp_quote("#define SFGAO_BROWSABLE 0x08000000L // supports IShellFolder, but only implements CreateViewObject() (non-folder view)")
  161. cpp_quote("#define SFGAO_NONENUMERATED 0x00100000L // is a non-enumerated object")
  162. cpp_quote("#define SFGAO_NEWCONTENT 0x00200000L // should show bold in explorer tree")
  163. cpp_quote("#define SFGAO_CANMONIKER 0x00400000L // defunct")
  164. cpp_quote("#define SFGAO_HASSTORAGE 0x00400000L // defunct")
  165. cpp_quote("#define SFGAO_STREAM 0x00400000L // supports BindToObject(IID_IStream)")
  166. cpp_quote("#define SFGAO_STORAGEANCESTOR 0x00800000L // may contain children with SFGAO_STORAGE or SFGAO_STREAM")
  167. cpp_quote("#define SFGAO_STORAGECAPMASK 0x70C50008L // for determining storage capabilities, ie for open/save semantics")
  168. typedef ULONG SFGAOF;
  169. // passed to ISF::ParseDisplayName() or ISF::BindToObject() via IBindCtx::RegisterObjectParam()
  170. // * IPersist must be supported by the ObjectParam
  171. // the CLSID returned by IPersist::GetCLSID() should be skipped
  172. // in the binding process. used to avoid loops or to allow delegation to
  173. // base name space functionality. see SHSkipJunction()
  174. cpp_quote("#define STR_SKIP_BINDING_CLSID L\"Skip Binding CLSID\"")
  175. // passed to SHGetDesktopFolder()->ParseDisplayName() via IBindCtx::RegisterObjectParam()
  176. // * no interface support required on object param
  177. // instructing to prefer folder support for URLs. specifically used by the common
  178. // dialog to make it use the DAV NP when parsing http: URLs.
  179. cpp_quote("#define STR_PARSE_PREFER_FOLDER_BROWSING L\"Parse Prefer Folder Browsing\"")
  180. // passed to SHGetDesktopFolder()->ParseDisplayName() via IBindCtx::RegisterObjectParam()
  181. // instructing to fail parsing relative paths. only succeeds for fully qualified paths/urls.
  182. // * no interface support required on object param
  183. //
  184. // eg. even if "foo.txt" is a child of the desktop, it will still fail
  185. // but it will succeed for "C:\Documents and Settings\Username\Desktop\foo.txt"
  186. cpp_quote("#define STR_DONT_PARSE_RELATIVE L\"Don't Parse Relative\"")
  187. // passed to SHGetDesktopFolder()->ParseDisplayName() via IBindCtx::RegisterObjectParam()
  188. // to try translate from a full file system pidl to a alias to that pidl, if available.
  189. // * no interface support required on object param
  190. //
  191. // eg. if you pass the following path "C:\Documents and Settings\Username\Desktop\foo.txt"
  192. // if TRANSLATE is SET result is: [foo.txt] (the alias for the desktop being an empty pidl)
  193. // if TRANSLATE is NOT SET result is: [CLSID_MyComputer][c:\][Documents and Settings][Username][Desktop][foo.txt].
  194. cpp_quote("#define STR_PARSE_TRANSLATE_ALIASES L\"Parse Translate Aliases\"")
  195. // passed to SHGetDesktopFolder()->ParseDisplayName() via IBindCtx::RegisterObjectParam()
  196. // * no interface support required on object param
  197. // instructing to allow shell: parsing to non-SFGAO_FOLDER objects.
  198. // Safe to set this for strings an end-user types, but do not set this in any binding
  199. // path where untrusted callers control the contents of the string
  200. cpp_quote("#define STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS L\"Parse Shell Protocol To File Objects\"")
  201. interface IShellFolder;
  202. [
  203. helpstring("IShellFolder"),
  204. uuid(000214E6-0000-0000-C000-000000000046),
  205. object,
  206. pointer_default(unique)
  207. ]
  208. interface IShellFolder : IUnknown
  209. {
  210. HRESULT ParseDisplayName(
  211. [in] HWND hwnd,
  212. [in] LPBC pbc,
  213. [in, string] LPOLESTR pszDisplayName,
  214. [out] ULONG *pchEaten,
  215. [out] LPITEMIDLIST *ppidl,
  216. [in, out, unique] ULONG *pdwAttributes);
  217. HRESULT EnumObjects(
  218. [in] HWND hwnd,
  219. [in] SHCONTF grfFlags,
  220. [out] IEnumIDList **ppenumIDList);
  221. // returns an instance of a sub-folder which is specified by the IDList (pidl).
  222. HRESULT BindToObject(
  223. [in] LPCITEMIDLIST pidl,
  224. [in] LPBC pbc,
  225. [in] REFIID riid,
  226. [out, iid_is(riid)] void **ppv);
  227. HRESULT BindToStorage(
  228. [in] LPCITEMIDLIST pidl,
  229. [in] LPBC pbc,
  230. [in] REFIID riid,
  231. [out, iid_is(riid)] void **ppv);
  232. // compares two IDLists and returns the result. The shell
  233. // explorer always passes 0 as lParam, which indicates 'sort by name'.
  234. // It should return 0 (as CODE of the scode), if two id indicates the
  235. // same object; negative value if pidl1 should be placed before pidl2;
  236. // positive value if pidl2 should be placed before pidl1.
  237. HRESULT CompareIDs(
  238. [in] LPARAM lParam,
  239. [in] LPCITEMIDLIST pidl1,
  240. [in] LPCITEMIDLIST pidl2);
  241. // creates a view object of the folder itself. The view
  242. // object is a difference instance from the shell folder object.
  243. // 'hwndOwner' can be used as the owner window of its dialog box or
  244. // menu during the lifetime of the view object.
  245. // This member function should always create a new
  246. // instance which has only one reference count. The explorer may create
  247. // more than one instances of view object from one shell folder object
  248. // and treat them as separate instances.
  249. HRESULT CreateViewObject(
  250. [in] HWND hwndOwner,
  251. [in] REFIID riid,
  252. [out, iid_is(riid)] void **ppv);
  253. // returns the attributes of specified objects in that
  254. // folder. 'cidl' and 'apidl' specifies objects. 'apidl' contains only
  255. // simple IDLists. The explorer initializes *prgfInOut with a set of
  256. // flags to be evaluated. The shell folder may optimize the operation
  257. // by not returning unspecified flags.
  258. HRESULT GetAttributesOf(
  259. [in] UINT cidl,
  260. [in, size_is(cidl)] LPCITEMIDLIST * apidl,
  261. [in, out] SFGAOF * rgfInOut);
  262. // creates a UI object to be used for specified objects.
  263. // The shell explorer passes either IID_IDataObject (for transfer operation)
  264. // or IID_IContextMenu (for context menu operation) as riid.
  265. HRESULT GetUIObjectOf(
  266. [in] HWND hwndOwner,
  267. [in] UINT cidl,
  268. [in, size_is(cidl)] LPCITEMIDLIST * apidl,
  269. [in] REFIID riid,
  270. [in, out, unique] UINT * rgfReserved,
  271. [out, iid_is(riid)] void **ppv);
  272. // returns the display name of the specified object.
  273. // If the ID contains the display name (in the locale character set),
  274. // it returns the offset to the name. Otherwise, it returns a pointer
  275. // to the display name string (UNICODE), which is allocated by the
  276. // task allocator, or fills in a buffer.
  277. HRESULT GetDisplayNameOf(
  278. [in] LPCITEMIDLIST pidl,
  279. [in] SHGDNF uFlags,
  280. [out] STRRET *pName);
  281. // sets the display name of the specified object.
  282. // If it changes the ID as well, it returns the new ID which is
  283. // alocated by the task allocator.
  284. HRESULT SetNameOf(
  285. [in] HWND hwnd,
  286. [in] LPCITEMIDLIST pidl,
  287. [in, string] LPCOLESTR pszName,
  288. [in] SHGDNF uFlags,
  289. [out] LPITEMIDLIST *ppidlOut);
  290. };
  291. typedef IShellFolder * LPSHELLFOLDER;
  292. cpp_quote("#if (_WIN32_IE >= 0x0500)")
  293. typedef struct tagEXTRASEARCH
  294. {
  295. GUID guidSearch;
  296. WCHAR wszFriendlyName[80];
  297. WCHAR wszUrl[2084];
  298. }EXTRASEARCH, *LPEXTRASEARCH;
  299. typedef struct IEnumExtraSearch *LPENUMEXTRASEARCH;
  300. interface IShellFolder2; // forward
  301. [
  302. helpstring("IEnumExtraSearch"),
  303. uuid(0E700BE1-9DB6-11d1-A1CE-00C04FD75D13),
  304. object,
  305. pointer_default(unique)
  306. ]
  307. interface IEnumExtraSearch : IUnknown
  308. {
  309. HRESULT Next(
  310. [in] ULONG celt,
  311. [out, size_is(celt), length_is(*pceltFetched)] EXTRASEARCH *rgelt,
  312. [out] ULONG *pceltFetched);
  313. HRESULT Skip([in] ULONG celt);
  314. HRESULT Reset();
  315. HRESULT Clone([out] IEnumExtraSearch **ppenum);
  316. };
  317. // IShellFolder2::GetDefaultColumnState values
  318. typedef [v1_enum] enum {
  319. SHCOLSTATE_TYPE_STR = 0x00000001,
  320. SHCOLSTATE_TYPE_INT = 0x00000002,
  321. SHCOLSTATE_TYPE_DATE = 0x00000003,
  322. SHCOLSTATE_TYPEMASK = 0x0000000F,
  323. SHCOLSTATE_ONBYDEFAULT = 0x00000010, // should on by default in details view
  324. SHCOLSTATE_SLOW = 0x00000020, // will be slow to compute, do on a background thread
  325. SHCOLSTATE_EXTENDED = 0x00000040, // provided by a handler, not the folder
  326. SHCOLSTATE_SECONDARYUI = 0x00000080, // not displayed in context menu, but listed in the "More..." dialog
  327. SHCOLSTATE_HIDDEN = 0x00000100, // not displayed in the UI
  328. SHCOLSTATE_PREFER_VARCMP = 0x00000200, // VarCmp() (with folderness test) produces same result as CompareIDs()
  329. } SHCOLSTATE;
  330. typedef DWORD SHCOLSTATEF;
  331. typedef struct {
  332. GUID fmtid;
  333. DWORD pid;
  334. } SHCOLUMNID, *LPSHCOLUMNID;
  335. typedef const SHCOLUMNID* LPCSHCOLUMNID;
  336. [
  337. helpstring("IShellFolder2"),
  338. uuid(93F2F68C-1D1B-11d3-A30E-00C04F79ABD1),
  339. object,
  340. pointer_default(unique)
  341. ]
  342. interface IShellFolder2 : IShellFolder
  343. {
  344. // Returns the guid of the search that is to be invoked when user clicks
  345. // on the search toolbar button
  346. HRESULT GetDefaultSearchGUID([out] GUID *pguid);
  347. // gives an enumerator of the searches to be added to the search menu
  348. HRESULT EnumSearches([out] IEnumExtraSearch **ppenum);
  349. HRESULT GetDefaultColumn([in] DWORD dwRes, [out] ULONG *pSort, [out] ULONG *pDisplay);
  350. // return SHCOLSTATE_ values
  351. HRESULT GetDefaultColumnState([in] UINT iColumn, [out] SHCOLSTATEF *pcsFlags);
  352. HRESULT GetDetailsEx([in] LPCITEMIDLIST pidl, [in] const SHCOLUMNID *pscid, [out] VARIANT *pv);
  353. HRESULT GetDetailsOf([in] LPCITEMIDLIST pidl, [in]UINT iColumn, [out] SHELLDETAILS *psd);
  354. HRESULT MapColumnToSCID([in] UINT iColumn, [in] SHCOLUMNID *pscid);
  355. };
  356. cpp_quote("#endif // _WIN32_IE >= 0x0500)")
  357. //--------------------------------------------------------------------------
  358. //
  359. // FOLDERSETTINGS
  360. //
  361. // FOLDERSETTINGS is a data structure that explorer passes from one folder
  362. // view to another, when the user is browsing. It calls ISV::GetCurrentInfo
  363. // member to get the current settings and pass it to ISV::CreateViewWindow
  364. // to allow the next folder view 'inherit' it. These settings assumes a
  365. // particular UI (which the shell's folder view has), and shell extensions
  366. // may or may not use those settings.
  367. //
  368. //--------------------------------------------------------------------------
  369. typedef char * LPVIEWSETTINGS;
  370. // NB Bitfields.
  371. // FWF_DESKTOP implies FWF_TRANSPARENT/NOCLIENTEDGE/NOSCROLL
  372. typedef [v1_enum] enum
  373. {
  374. FWF_AUTOARRANGE = 0x00000001,
  375. FWF_ABBREVIATEDNAMES = 0x00000002,
  376. FWF_SNAPTOGRID = 0x00000004,
  377. FWF_OWNERDATA = 0x00000008,
  378. FWF_BESTFITWINDOW = 0x00000010,
  379. FWF_DESKTOP = 0x00000020,
  380. FWF_SINGLESEL = 0x00000040,
  381. FWF_NOSUBFOLDERS = 0x00000080,
  382. FWF_TRANSPARENT = 0x00000100,
  383. FWF_NOCLIENTEDGE = 0x00000200,
  384. FWF_NOSCROLL = 0x00000400,
  385. FWF_ALIGNLEFT = 0x00000800,
  386. FWF_NOICONS = 0x00001000,
  387. FWF_SHOWSELALWAYS = 0x00002000,
  388. FWF_NOVISIBLE = 0X00004000,
  389. FWF_SINGLECLICKACTIVATE=0x00008000, // TEMPORARY -- NO UI FOR THIS
  390. FWF_NOWEBVIEW = 0x00010000,
  391. FWF_HIDEFILENAMES = 0x00020000,
  392. FWF_CHECKSELECT = 0x00040000,
  393. } FOLDERFLAGS;
  394. typedef [v1_enum] enum
  395. {
  396. FVM_FIRST = 1,
  397. FVM_ICON = 1,
  398. FVM_SMALLICON = 2,
  399. FVM_LIST = 3,
  400. FVM_DETAILS = 4,
  401. FVM_THUMBNAIL = 5,
  402. FVM_TILE = 6,
  403. FVM_THUMBSTRIP = 7,
  404. FVM_LAST = 7,
  405. } FOLDERVIEWMODE;
  406. typedef struct
  407. {
  408. UINT ViewMode; // View mode (FOLDERVIEWMODE values)
  409. UINT fFlags; // View options (FOLDERFLAGS bits)
  410. } FOLDERSETTINGS;
  411. typedef FOLDERSETTINGS *LPFOLDERSETTINGS;
  412. typedef const FOLDERSETTINGS * LPCFOLDERSETTINGS;
  413. typedef FOLDERSETTINGS *PFOLDERSETTINGS;
  414. //==========================================================================
  415. //
  416. // Interface: IShellView
  417. //
  418. // IShellView::GetWindow(phwnd)
  419. //
  420. // Inherited from IOleWindow::GetWindow.
  421. //
  422. //
  423. // IShellView::ContextSensitiveHelp(fEnterMode)
  424. //
  425. // Inherited from IOleWindow::ContextSensitiveHelp.
  426. //
  427. //
  428. // IShellView::TranslateAccelerator(lpmsg)
  429. //
  430. // Similar to IOleInPlaceActiveObject::TranlateAccelerator. The explorer
  431. // calls this function BEFORE any other translation. Returning S_OK
  432. // indicates that the message was translated (eaten) and should not be
  433. // translated or dispatched by the explorer.
  434. //
  435. //
  436. // IShellView::EnableModeless(fEnable)
  437. // Similar to IOleInPlaceActiveObject::EnableModeless.
  438. //
  439. //
  440. // IShellView::UIActivate(uState)
  441. //
  442. // The explorer calls this member function whenever the activation
  443. // state of the view window is changed by a certain event that is
  444. // NOT caused by the shell view itself.
  445. //
  446. // SVUIA_DEACTIVATE will be passed when the explorer is about to
  447. // destroy the shell view window; the shell view is supposed to remove
  448. // all the extended UIs (typically merged menu and modeless popup windows).
  449. //
  450. // SVUIA_ACTIVATE_NOFOCUS will be passsed when the shell view is losing
  451. // the input focus or the shell view has been just created without the
  452. // input focus; the shell view is supposed to set menuitems appropriate
  453. // for non-focused state (no selection specific items should be added).
  454. //
  455. // SVUIA_ACTIVATE_FOCUS will be passed when the explorer has just
  456. // created the view window with the input focus; the shell view is
  457. // supposed to set menuitems appropriate for focused state.
  458. //
  459. // SVUIA_INPLACEACTIVATE(new) will be passed when the shell view is opened
  460. // within an ActiveX control, which is not a UI active. In this case,
  461. // the shell view should not merge menus or put toolbas. To be compatible
  462. // with Win95 client, we don't pass this value unless the view supports
  463. // IShellView2.
  464. //
  465. // The shell view should not change focus within this member function.
  466. // The shell view should not hook the WM_KILLFOCUS message to remerge
  467. // menuitems. However, the shell view typically hook the WM_SETFOCUS
  468. // message, and re-merge the menu after calling IShellBrowser::
  469. // OnViewWindowActivated.
  470. //
  471. // One of the ACTIVATE / INPLACEACTIVATE messages will be sent when
  472. // the view window becomes the currently displayed view. On Win95 systems,
  473. // this will happen immediately after the CreateViewWindow call. On IE4, Win98,
  474. // and NT5 systems this may happen when the view reports it is ready (if the
  475. // IShellView supports async creation). This can be used as a hint as to when
  476. // to make your view window visible. Note: the Win95/Win98/NT4 common dialogs
  477. // do not send either of these on creation.
  478. //
  479. //
  480. // IShellView::Refresh()
  481. //
  482. // The explorer calls this member when the view needs to refresh its
  483. // contents (such as when the user hits F5 key).
  484. //
  485. //
  486. // IShellView::CreateViewWindow
  487. //
  488. // This member creates the view window (right-pane of the explorer or the
  489. // client window of the folder window).
  490. //
  491. //
  492. // IShellView::DestroyViewWindow
  493. //
  494. // This member destroys the view window.
  495. //
  496. //
  497. // IShellView::GetCurrentInfo
  498. //
  499. // This member returns the folder settings.
  500. //
  501. //
  502. // IShellView::AddPropertySHeetPages
  503. //
  504. // The explorer calls this member when it is opening the option property
  505. // sheet. This allows the view to add additional pages to it.
  506. //
  507. //
  508. // IShellView::SaveViewState()
  509. //
  510. // The explorer calls this member when the shell view is supposed to
  511. // store its view settings. The shell view is supposed to get a view
  512. // stream by calling IShellBrowser::GetViewStateStream and store the
  513. // current view state into that stream.
  514. //
  515. //
  516. // IShellView::SelectItem(pidlItem, uFlags)
  517. //
  518. // The explorer calls this member to change the selection state of
  519. // item(s) within the shell view window. If pidlItem is NULL and uFlags
  520. // is SVSI_DESELECTOTHERS, all items should be deselected.
  521. //
  522. //-------------------------------------------------------------------------
  523. //
  524. // shellview select item flags
  525. //
  526. cpp_quote("#define SVSI_DESELECT 0x00000000")
  527. cpp_quote("#define SVSI_SELECT 0x00000001")
  528. cpp_quote("#define SVSI_EDIT 0x00000003 // includes select")
  529. cpp_quote("#define SVSI_DESELECTOTHERS 0x00000004")
  530. cpp_quote("#define SVSI_ENSUREVISIBLE 0x00000008")
  531. cpp_quote("#define SVSI_FOCUSED 0x00000010")
  532. cpp_quote("#define SVSI_TRANSLATEPT 0x00000020")
  533. cpp_quote("#define SVSI_SELECTIONMARK 0x00000040")
  534. cpp_quote("#define SVSI_POSITIONITEM 0x00000080")
  535. cpp_quote("#define SVSI_CHECK 0x00000100")
  536. cpp_quote("#define SVSI_NOSTATECHANGE 0x80000000")
  537. typedef UINT SVSIF;
  538. //
  539. // shellview get item object flags
  540. //
  541. typedef [v1_enum] enum {
  542. SVGIO_BACKGROUND = 0x00000000,
  543. SVGIO_SELECTION = 0x00000001,
  544. SVGIO_ALLVIEW = 0x00000002,
  545. SVGIO_CHECKED = 0x00000003,
  546. SVGIO_TYPE_MASK = 0x0000000F,
  547. SVGIO_FLAG_VIEWORDER = 0x80000000,
  548. } SVGIO;
  549. //
  550. // uState values for IShellView::UIActivate
  551. //
  552. typedef [v1_enum] enum {
  553. SVUIA_DEACTIVATE = 0,
  554. SVUIA_ACTIVATE_NOFOCUS = 1,
  555. SVUIA_ACTIVATE_FOCUS = 2,
  556. SVUIA_INPLACEACTIVATE = 3 // new flag for IShellView2
  557. } SVUIA_STATUS;
  558. // this is to handle name collisions
  559. cpp_quote("#ifdef _FIX_ENABLEMODELESS_CONFLICT")
  560. cpp_quote("#define EnableModeless EnableModelessSV")
  561. cpp_quote("#endif")
  562. //
  563. // this is so that all the implementations still get the function pointer.
  564. // and midl wont complain about the data type
  565. //
  566. cpp_quote("#ifdef _NEVER_")
  567. typedef LPARAM LPFNSVADDPROPSHEETPAGE;
  568. cpp_quote("#else //!_NEVER_")
  569. cpp_quote("#include <prsht.h>")
  570. cpp_quote("typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE;")
  571. cpp_quote("#endif //_NEVER_")
  572. interface IShellBrowser;
  573. [
  574. helpstring("IShellView"),
  575. uuid(000214E3-0000-0000-C000-000000000046),
  576. object,
  577. pointer_default(unique)
  578. ]
  579. interface IShellView : IOleWindow
  580. {
  581. HRESULT TranslateAccelerator([in] MSG *pmsg);
  582. HRESULT EnableModeless([in] BOOL fEnable);
  583. HRESULT UIActivate([in] UINT uState);
  584. HRESULT Refresh();
  585. HRESULT CreateViewWindow(
  586. [in] IShellView *psvPrevious,
  587. [in] LPCFOLDERSETTINGS pfs,
  588. [in] IShellBrowser *psb,
  589. [out] RECT *prcView,
  590. [out] HWND *phWnd);
  591. HRESULT DestroyViewWindow();
  592. HRESULT GetCurrentInfo([out] LPFOLDERSETTINGS pfs);
  593. [local] HRESULT AddPropertySheetPages(
  594. [in] DWORD dwReserved,
  595. [in] LPFNSVADDPROPSHEETPAGE pfn,
  596. [in] LPARAM lparam);
  597. HRESULT SaveViewState();
  598. HRESULT SelectItem(
  599. [in] LPCITEMIDLIST pidlItem,
  600. [in] SVSIF uFlags);
  601. HRESULT GetItemObject(
  602. [in] UINT uItem,
  603. [in] REFIID riid,
  604. [out, iid_is(riid)] void **ppv);
  605. typedef IShellView *LPSHELLVIEW;
  606. };
  607. [
  608. helpstring("IShellView2"),
  609. uuid(88E39E80-3578-11CF-AE69-08002B2E1262),
  610. object,
  611. pointer_default(unique)
  612. ]
  613. interface IShellView2 : IShellView
  614. {
  615. typedef GUID SHELLVIEWID;
  616. cpp_quote("#define SV2GV_CURRENTVIEW ((UINT)-1)")
  617. cpp_quote("#define SV2GV_DEFAULTVIEW ((UINT)-2)")
  618. //
  619. // NOTE if the cbSize param is ever updated,")
  620. // then there will have to be custom [wire_marshal]")
  621. // implementation to support it")
  622. //
  623. cpp_quote("#include <pshpack8.h>")
  624. typedef struct _SV2CVW2_PARAMS
  625. {
  626. DWORD cbSize;
  627. IShellView *psvPrev;
  628. LPCFOLDERSETTINGS pfs;
  629. IShellBrowser *psbOwner;
  630. RECT *prcView;
  631. SHELLVIEWID const *pvid;
  632. HWND hwndView;
  633. } SV2CVW2_PARAMS, *LPSV2CVW2_PARAMS;
  634. cpp_quote("#include <poppack.h>") // Return to byte packing
  635. HRESULT GetView(
  636. [in, out] SHELLVIEWID* pvid,
  637. [in] ULONG uView);
  638. HRESULT CreateViewWindow2(
  639. [in] LPSV2CVW2_PARAMS lpParams);
  640. HRESULT HandleRename(
  641. [in] LPCITEMIDLIST pidlNew);
  642. HRESULT SelectAndPositionItem(
  643. [in] LPCITEMIDLIST pidlItem,
  644. [in] UINT uFlags,
  645. [in] POINT *ppt);
  646. };
  647. [
  648. helpstring("IFolderView"),
  649. uuid(cde725b0-ccc9-4519-917e-325d72fab4ce),
  650. object,
  651. pointer_default(unique)
  652. ]
  653. interface IFolderView : IUnknown
  654. {
  655. HRESULT GetCurrentViewMode([in, out] UINT *pViewMode);
  656. HRESULT SetCurrentViewMode([in] UINT ViewMode);
  657. HRESULT GetFolder([in] REFIID riid, [out, iid_is(riid)] void **ppv);
  658. HRESULT Item([in] int iItemIndex, [out] LPITEMIDLIST *ppidl);
  659. HRESULT ItemCount([in] UINT uFlags,[out] int *pcItems);
  660. HRESULT Items([in] UINT uFlags,[in] REFIID riid, [out, iid_is(riid)] void **ppv);
  661. HRESULT GetSelectionMarkedItem([out] int *piItem);
  662. HRESULT GetFocusedItem([out] int *piItem);
  663. HRESULT GetItemPosition([in] LPCITEMIDLIST pidl, [out] POINT* ppt);
  664. HRESULT GetSpacing([in, out, ptr] POINT* ppt);
  665. HRESULT GetDefaultSpacing([out] POINT* ppt);
  666. HRESULT GetAutoArrange();
  667. // like IShellView::SelectItem() by index
  668. HRESULT SelectItem([in] int iItem, [in] DWORD dwFlags);
  669. HRESULT SelectAndPositionItems([in] UINT cidl, [in, size_is(cidl)] LPCITEMIDLIST* apidl, [in, ptr, size_is(cidl)] POINT* apt, [in] DWORD dwFlags);
  670. };
  671. cpp_quote("#define SID_SFolderView IID_IFolderView // folder view, usuaally IFolderView")
  672. // this is to handle name collisions
  673. cpp_quote("#ifdef _FIX_ENABLEMODELESS_CONFLICT")
  674. cpp_quote("#undef EnableModeless ")
  675. cpp_quote("#endif")
  676. [
  677. helpstring("IFolderFilterSite"),
  678. uuid(C0A651F5-B48B-11d2-B5ED-006097C686F6), // IID_IFolderFilterSite
  679. object,
  680. pointer_default(unique)
  681. ]
  682. interface IFolderFilterSite : IUnknown
  683. {
  684. HRESULT SetFilter([in]IUnknown* punk);
  685. };
  686. [
  687. helpstring("IFolderFilter"),
  688. uuid(9CC22886-DC8E-11d2-B1D0-00C04F8EEB3E), // IID_IFolderFilter
  689. object,
  690. pointer_default(unique)
  691. ]
  692. interface IFolderFilter : IUnknown
  693. {
  694. HRESULT ShouldShow([in] IShellFolder* psf, [in] LPCITEMIDLIST pidlFolder, [in] LPCITEMIDLIST pidlItem);
  695. HRESULT GetEnumFlags([in] IShellFolder* psf, [in] LPCITEMIDLIST pidlFolder, [in] HWND *phwnd, [out] DWORD *pgrfFlags);
  696. };
  697. //--------------------------------------------------------------------------
  698. //
  699. // Interface: IShellBrowser
  700. //
  701. // IShellBrowser interface is the interface that is provided by the shell
  702. // explorer/folder frame window. When it creates the 'contents pane' of
  703. // a shell folder (which provides IShellFolder interface), it calls its
  704. // CreateViewObject member function to create an IShellView object. Then,
  705. // it calls its CreateViewWindow member to create the 'contents pane'
  706. // window. The pointer to the IShellBrowser interface is passed to
  707. // the IShellView object as a parameter to this CreateViewWindow member
  708. // function call.
  709. //
  710. // +--------------------------+ <-- Explorer window
  711. // | [] Explorer |
  712. // |--------------------------+ IShellBrowser
  713. // | File Edit View .. |
  714. // |--------------------------|
  715. // | | |
  716. // | | <-------- Content pane
  717. // | | |
  718. // | | | IShellView
  719. // | | |
  720. // | | |
  721. // +--------------------------+
  722. //
  723. //
  724. //
  725. // [Member functions]
  726. //
  727. //
  728. // IShellBrowser::GetWindow(phwnd)
  729. //
  730. // Inherited from IOleWindow::GetWindow.
  731. //
  732. //
  733. // IShellBrowser::ContextSensitiveHelp(fEnterMode)
  734. //
  735. // Inherited from IOleWindow::ContextSensitiveHelp.
  736. //
  737. //
  738. // IShellBrowser::InsertMenusSB(hmenuShared, lpMenuWidths)
  739. //
  740. // Similar to the IOleInPlaceFrame::InsertMenus. The explorer will put
  741. // 'File' and 'Edit' pulldown in the File menu group, 'View' and 'Tools'
  742. // in the Container menu group and 'Help' in the Window menu group. Each
  743. // pulldown menu will have a uniqu ID, FCIDM_MENU_FILE/EDIT/VIEW/TOOLS/HELP
  744. // The view is allowed to insert menuitems into those sub-menus by those
  745. // IDs must be between FCIDM_SHVIEWFIRST and FCIDM_SHVIEWLAST.
  746. //
  747. //
  748. // IShellBrowser::SetMenuSB(hmenuShared, holemenu, hwndActiveObject)
  749. //
  750. // Similar to the IOleInPlaceFrame::SetMenu. The explorer ignores the
  751. // holemenu parameter (reserved for future enhancement) and performs
  752. // menu-dispatch based on the menuitem IDs (see the description above).
  753. // It is important to note that the explorer will add different
  754. // set of menuitems depending on whether the view has a focus or not.
  755. // Therefore, it is very important to call ISB::OnViewWindowActivate
  756. // whenever the view window (or its children) gets the focus.
  757. //
  758. //
  759. // IShellBrowser::RemoveMenusSB(hmenuShared)
  760. //
  761. // Same as the IOleInPlaceFrame::RemoveMenus.
  762. //
  763. //
  764. // IShellBrowser::SetStatusTextSB(pszStatusText)
  765. //
  766. // Same as the IOleInPlaceFrame::SetStatusText. It is also possible to
  767. // send messages directly to the status window via SendControlMsg.
  768. //
  769. //
  770. // IShellBrowser::EnableModelessSB(fEnable)
  771. //
  772. // Same as the IOleInPlaceFrame::EnableModeless.
  773. //
  774. //
  775. // IShellBrowser::TranslateAcceleratorSB(lpmsg, wID)
  776. //
  777. // Same as the IOleInPlaceFrame::TranslateAccelerator, but will be
  778. // never called because we don't support EXEs (i.e., the explorer has
  779. // the message loop). This member function is defined here for possible
  780. // future enhancement.
  781. //
  782. //
  783. // IShellBrowser::BrowseObject(pidl, wFlags)")
  784. //
  785. // The view calls this member to let shell explorer browse to another")
  786. // folder. The pidl and wFlags specifies the folder to be browsed.")
  787. //
  788. // Following three flags specifies whether it creates another window or not.
  789. // SBSP_SAMEBROWSER -- Browse to another folder with the same window.
  790. // SBSP_NEWBROWSER -- Creates another window for the specified folder.
  791. // SBSP_DEFBROWSER -- Default behavior (respects the view option).
  792. //
  793. // Following three flags specifies open, explore, or default mode. These .
  794. // are ignored if SBSP_SAMEBROWSER or (SBSP_DEFBROWSER && (single window .
  795. // browser || explorer)). .
  796. // SBSP_OPENMODE -- Use a normal folder window
  797. // SBSP_EXPLOREMODE -- Use an explorer window
  798. // SBSP_DEFMODE -- Use the same as the current window
  799. //
  800. // Following three flags specifies the pidl.
  801. // SBSP_ABSOLUTE -- pidl is an absolute pidl (relative from desktop)
  802. // SBSP_RELATIVE -- pidl is relative from the current folder.
  803. // SBSP_PARENT -- Browse the parent folder (ignores the pidl)
  804. // SBSP_NAVIGATEBACK -- Navigate back (ignores the pidl)
  805. // SBSP_NAVIGATEFORWARD -- Navigate forward (ignores the pidl)
  806. //
  807. // Following two flags control history manipulation as result of navigate
  808. // SBSP_WRITENOHISTORY -- write no history (shell folder) entry
  809. // SBSP_NOAUTOSELECT -- suppress selection in history pane
  810. //
  811. // IShellBrowser::GetViewStateStream(grfMode, ppstm)
  812. //
  813. // The browser returns an IStream interface as the storage for view
  814. // specific state information.
  815. //
  816. // grfMode -- Specifies the read/write access (STGM_READ/WRITE/READWRITE)
  817. // ppstm -- Specifies the IStream *variable to be filled.
  818. //
  819. //
  820. // IShellBrowser::GetControlWindow(id, phwnd)
  821. //
  822. // The shell view may call this member function to get the window handle
  823. // of Explorer controls (toolbar or status winodw -- FCW_TOOLBAR or
  824. // FCW_STATUS).
  825. //
  826. //
  827. // IShellBrowser::SendControlMsg(id, uMsg, wParam, lParam, pret)
  828. //
  829. // The shell view calls this member function to send control messages to
  830. // one of Explorer controls (toolbar or status window -- FCW_TOOLBAR or
  831. // FCW_STATUS).
  832. //
  833. //
  834. // IShellBrowser::QueryActiveShellView(IShellView * ppshv)
  835. //
  836. // This member returns currently activated (displayed) shellview object.
  837. // A shellview never need to call this member function.
  838. //
  839. //
  840. // IShellBrowser::OnViewWindowActive(pshv)
  841. //
  842. // The shell view window calls this member function when the view window
  843. // (or one of its children) got the focus. It MUST call this member before
  844. // calling IShellBrowser::InsertMenus, because it will insert different
  845. // set of menu items depending on whether the view has the focus or not.
  846. //
  847. //
  848. // IShellBrowser::SetToolbarItems(lpButtons, nButtons, uFlags)
  849. //
  850. // The view calls this function to add toolbar items to the exporer's
  851. // toolbar. 'lpButtons' and 'nButtons' specifies the array of toolbar
  852. // items. 'uFlags' must be one of FCT_MERGE, FCT_CONFIGABLE, FCT_ADDTOEND.
  853. //
  854. //-------------------------------------------------------------------------
  855. //
  856. // Values for wFlags parameter of ISB::BrowseObject() member.
  857. //
  858. cpp_quote("#define SBSP_DEFBROWSER 0x0000")
  859. cpp_quote("#define SBSP_SAMEBROWSER 0x0001")
  860. cpp_quote("#define SBSP_NEWBROWSER 0x0002")
  861. cpp_quote("#define SBSP_DEFMODE 0x0000")
  862. cpp_quote("#define SBSP_OPENMODE 0x0010")
  863. cpp_quote("#define SBSP_EXPLOREMODE 0x0020")
  864. cpp_quote("#define SBSP_HELPMODE 0x0040 // IEUNIX : Help window uses this.")
  865. cpp_quote("#define SBSP_NOTRANSFERHIST 0x0080")
  866. cpp_quote("#define SBSP_ABSOLUTE 0x0000")
  867. cpp_quote("#define SBSP_RELATIVE 0x1000")
  868. cpp_quote("#define SBSP_PARENT 0x2000")
  869. cpp_quote("#define SBSP_NAVIGATEBACK 0x4000")
  870. cpp_quote("#define SBSP_NAVIGATEFORWARD 0x8000")
  871. cpp_quote("#define SBSP_ALLOW_AUTONAVIGATE 0x10000")
  872. cpp_quote("#define SBSP_CALLERUNTRUSTED 0x00800000")
  873. cpp_quote("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")
  874. cpp_quote("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")
  875. cpp_quote("#define SBSP_NOAUTOSELECT 0x04000000")
  876. cpp_quote("#define SBSP_WRITENOHISTORY 0x08000000")
  877. cpp_quote("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")
  878. cpp_quote("#define SBSP_REDIRECT 0x40000000")
  879. cpp_quote("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")
  880. //
  881. // Values for id parameter of ISB::GetWindow/SendControlMsg members.
  882. //
  883. // WARNING:
  884. // Any shell extensions which sends messages to those control windows
  885. // might not work in the future version of windows. If you really need
  886. // to send messages to them, (1) don't assume that those control window
  887. // always exist (i.e. GetControlWindow may fail) and (2) verify the window
  888. // class of the window before sending any messages.
  889. //
  890. cpp_quote("#define FCW_STATUS 0x0001")
  891. cpp_quote("#define FCW_TOOLBAR 0x0002")
  892. cpp_quote("#define FCW_TREE 0x0003")
  893. cpp_quote("#define FCW_INTERNETBAR 0x0006")
  894. cpp_quote("#define FCW_PROGRESS 0x0008")
  895. //
  896. // Values for uFlags paremeter of ISB::SetToolbarItems member.
  897. //
  898. cpp_quote("#define FCT_MERGE 0x0001")
  899. cpp_quote("#define FCT_CONFIGABLE 0x0002")
  900. cpp_quote("#define FCT_ADDTOEND 0x0004")
  901. cpp_quote("#ifdef _NEVER_")
  902. typedef LPARAM LPTBBUTTONSB;
  903. cpp_quote("#else //!_NEVER_")
  904. cpp_quote("#include <commctrl.h>")
  905. cpp_quote("typedef LPTBBUTTON LPTBBUTTONSB;")
  906. cpp_quote("#endif //_NEVER_")
  907. [
  908. helpstring("IShellBrowser"),
  909. uuid(000214E2-0000-0000-C000-000000000046),
  910. object,
  911. pointer_default(unique)
  912. ]
  913. interface IShellBrowser : IOleWindow
  914. {
  915. // same as IOleInPlaceFrame
  916. HRESULT InsertMenusSB(
  917. [in] HMENU hmenuShared,
  918. [in, out] LPOLEMENUGROUPWIDTHS lpMenuWidths);
  919. HRESULT SetMenuSB(
  920. [in] HMENU hmenuShared,
  921. [in] HOLEMENU holemenuRes,
  922. [in] HWND hwndActiveObject);
  923. HRESULT RemoveMenusSB([in] HMENU hmenuShared);
  924. HRESULT SetStatusTextSB([in, unique] LPCOLESTR pszStatusText);
  925. HRESULT EnableModelessSB([in] BOOL fEnable);
  926. HRESULT TranslateAcceleratorSB([in] MSG *pmsg, [in] WORD wID);
  927. // IShellBrowser
  928. HRESULT BrowseObject(
  929. [in] LPCITEMIDLIST pidl,
  930. [in] UINT wFlags);
  931. HRESULT GetViewStateStream(
  932. [in] DWORD grfMode,
  933. [out] IStream **ppStrm);
  934. HRESULT GetControlWindow(
  935. [in] UINT id,
  936. [out] HWND * phwnd);
  937. [local] HRESULT SendControlMsg(
  938. [in] UINT id,
  939. [in] UINT uMsg,
  940. [in] WPARAM wParam,
  941. [in] LPARAM lParam,
  942. [in] LRESULT *pret);
  943. HRESULT QueryActiveShellView([out] IShellView **ppshv);
  944. HRESULT OnViewWindowActive([in] IShellView *pshv);
  945. [local] HRESULT SetToolbarItems(
  946. [in] LPTBBUTTONSB lpButtons,
  947. [in] UINT nButtons,
  948. [in] UINT uFlags);
  949. };
  950. typedef IShellBrowser * LPSHELLBROWSER;
  951. [
  952. helpstring("IProfferService"),
  953. uuid(cb728b20-f786-11ce-92ad-00aa00a74cd0), // IID_IProfferService
  954. object,
  955. pointer_default(unique)
  956. ]
  957. interface IProfferService : IUnknown
  958. {
  959. HRESULT ProfferService([in]REFGUID rguidService, [in] IServiceProvider *psp, [out] DWORD *pdwCookie);
  960. HRESULT RevokeService([in]DWORD dwCookie);
  961. }
  962. cpp_quote("#define SID_SProfferService IID_IProfferService // nearest service that you can proffer to")
  963. typedef [v1_enum] enum
  964. {
  965. PUIFNF_DEFAULT = 0x00000000,
  966. PUIFNF_MNEMONIC = 0x00000001, // include mnemonic in display name
  967. } PROPERTYUI_NAME_FLAGS;
  968. typedef [v1_enum] enum
  969. {
  970. PUIF_DEFAULT = 0x00000000,
  971. PUIF_RIGHTALIGN = 0x00000001, // this property should be right alligned
  972. PUIF_NOLABELININFOTIP = 0x00000002, // this property should not display a label in the infotip
  973. } PROPERTYUI_FLAGS;
  974. typedef [v1_enum] enum
  975. {
  976. PUIFFDF_DEFAULT = 0x00000000,
  977. PUIFFDF_RIGHTTOLEFT = 0x00000001, // BIDI support, right to left caller
  978. PUIFFDF_SHORTFORMAT = 0x00000002, // short format version of string
  979. PUIFFDF_NOTIME = 0x00000004, // truncate time to days, not hours/mins/sec
  980. PUIFFDF_FRIENDLYDATE = 0x00000008, // "Today", "Yesterday", etc
  981. PUIFFDF_NOUNITS = 0x00000010, // don't do "KB", "MB", "KHz"
  982. } PROPERTYUI_FORMAT_FLAGS;
  983. [
  984. helpstring("IPropertyUI - helper for dealing with properties ala IPropertySetStorage"),
  985. uuid(757a7d9f-919a-4118-99d7-dbb208c8cc66),
  986. object,
  987. pointer_default(unique)
  988. ]
  989. interface IPropertyUI : IUnknown
  990. {
  991. HRESULT ParsePropertyName([in] LPCWSTR pszName, [out] FMTID *pfmtid, [out] PROPID *ppid, [in, out] ULONG *pchEaten);
  992. HRESULT GetCannonicalName([in] REFFMTID fmtid, [in] PROPID pid, [out, size_is(cchText)] LPWSTR pwszText, [in] DWORD cchText);
  993. HRESULT GetDisplayName([in] REFFMTID fmtid, [in] PROPID pid, [in] PROPERTYUI_NAME_FLAGS flags, [out, size_is(cchText)] LPWSTR pwszText, [in] DWORD cchText);
  994. HRESULT GetPropertyDescription([in] REFFMTID fmtid, [in] PROPID pid, [out, size_is(cchText)] LPWSTR pwszText, [in] DWORD cchText);
  995. HRESULT GetDefaultWidth([in] REFFMTID fmtid, [in] PROPID pid, [out] ULONG *pcxChars);
  996. HRESULT GetFlags([in] REFFMTID fmtid, [in] PROPID pid, [out] PROPERTYUI_FLAGS *pFlags);
  997. HRESULT FormatForDisplay([in] REFFMTID fmtid, [in] PROPID pid, [in] const PROPVARIANT *pvar, [in] PROPERTYUI_FORMAT_FLAGS flags, [out, size_is(cchText)] LPWSTR pwszText, [in] DWORD cchText);
  998. HRESULT GetHelpInfo([in] REFFMTID fmtid, [in] PROPID pid, [out, size_is(cch)] LPWSTR pwszHelpFile, [in] DWORD cch, [out] UINT *puHelpID);
  999. };
  1000. cpp_quote("#if (_WIN32_IE >= 0x0500)")
  1001. // Folder Category Support
  1002. [
  1003. helpstring("ICategoryProvider - Provides a list of catagorizers registered on an IShellFolder"),
  1004. uuid(9af64809-5864-4c26-a720-c1f78c086ee3),
  1005. object,
  1006. pointer_default(unique)
  1007. ]
  1008. interface ICategoryProvider : IUnknown
  1009. {
  1010. [helpstring("Returns S_OK if the view should display this column in category selection UI, or S_FALSE to remove it.")]
  1011. HRESULT CanCategorizeOnSCID(SHCOLUMNID* pscid);
  1012. [helpstring("Returns either a GUID to create in CreateCategory, or a SHCOLUNNID that is used by the default categorizer. Return S_FALSE if you do not support a default group. GUID_NULL returned in pguid indicates to the client to use pscid as the default category.")]
  1013. HRESULT GetDefaultCategory(GUID* pguid, SHCOLUMNID* pscid);
  1014. [helpstring("Returns either a GUID that represents the categoizer to use for the specified SHCOLUMNID.")]
  1015. HRESULT GetCategoryForSCID(SHCOLUMNID* pscid, GUID* pguid);
  1016. [helpstring("Returns an IEnumGUID that has a list of GUIDs that represent categories.")]
  1017. HRESULT EnumCategories(IEnumGUID** penum);
  1018. [helpstring("Returns the name of the given category.")]
  1019. HRESULT GetCategoryName(GUID* pguid, LPWSTR pszName, UINT cch);
  1020. [helpstring("Creates the category.")]
  1021. HRESULT CreateCategory(GUID* pguid, REFIID riid, [iid_is(riid)]void** ppv);
  1022. }
  1023. typedef [v1_enum] enum
  1024. {
  1025. CATINFO_NORMAL = 0x00000000, // Apply default properties to this category
  1026. CATINFO_COLLAPSED = 0x00000001, // This category should appear collapsed. useful for the "None" category.
  1027. CATINFO_HIDDEN = 0x00000002, // This category should follow the "Hidden" files setting for being displayed
  1028. } CATEGORYINFO_FLAGS;
  1029. typedef [v1_enum] enum
  1030. {
  1031. CATSORT_DEFAULT = 0x00000000, // Default Sort order
  1032. CATSORT_NAME = 0x00000001, // Sort by name
  1033. } CATSORT_FLAGS;
  1034. typedef struct
  1035. {
  1036. CATEGORYINFO_FLAGS cif;
  1037. WCHAR wszName[260];
  1038. } CATEGORY_INFO;
  1039. [
  1040. helpstring("ICategorizer - Categorizes pidls"),
  1041. uuid(a3b14589-9174-49a8-89a3-06a1ae2b9ba7),
  1042. object,
  1043. pointer_default(unique)
  1044. ]
  1045. interface ICategorizer : IUnknown
  1046. {
  1047. [helpstring("Returns the description of this category that will be displayed in the UI")]
  1048. HRESULT GetDescription(LPWSTR pszDesc, UINT cch);
  1049. [helpstring("Returns a list of categories associated with a list of ID Lists. NOTE: -1 is an invalid Category ID, and they cannot be persisted")]
  1050. HRESULT GetCategory([in] UINT cidl,
  1051. [in, size_is(cidl)] LPCITEMIDLIST * apidl,
  1052. [in, out, size_is(cidl)] DWORD* rgCategoryIds);
  1053. [helpstring("Returns information about the category, such as default display and the text to display in the UI")]
  1054. HRESULT GetCategoryInfo(DWORD dwCategoryId, CATEGORY_INFO* pci);
  1055. [helpstring("Returns HRESULTFromShort. -1, 0, 1 indicate the comparison of the IDs. Used for sorting categories in the UI")]
  1056. HRESULT CompareCategory(CATSORT_FLAGS csfFlags, DWORD dwCategoryId1, DWORD dwCategoryId2);
  1057. };
  1058. cpp_quote("#endif // (_WIN32_IE >= 0x0500)")
  1059. cpp_quote("#ifdef UNICODE")
  1060. cpp_quote("#define IShellLink IShellLinkW")
  1061. cpp_quote("#else")
  1062. cpp_quote("#define IShellLink IShellLinkA")
  1063. cpp_quote("#endif")
  1064. // IShellLink::Resolve fFlags
  1065. typedef enum
  1066. {
  1067. SLR_NO_UI = 0x0001, // don't post any UI durring the resolve operation, not msgs are pumped
  1068. SLR_ANY_MATCH = 0x0002, // no longer used
  1069. SLR_UPDATE = 0x0004, // save the link back to it's file if the track made it dirty
  1070. SLR_NOUPDATE = 0x0008,
  1071. SLR_NOSEARCH = 0x0010, // don't execute the search heuristics
  1072. SLR_NOTRACK = 0x0020, // don't use NT5 object ID to track the link
  1073. SLR_NOLINKINFO = 0x0040, // don't use the net and volume relative info
  1074. SLR_INVOKE_MSI = 0x0080, // if we have a darwin link, then call msi to fault in the applicaion
  1075. SLR_NO_UI_WITH_MSG_PUMP = 0x0101, // SLR_NO_UI + requires an enable modeless site or HWND
  1076. } SLR_FLAGS;
  1077. // IShellLink::GetPath fFlags
  1078. typedef enum
  1079. {
  1080. SLGP_SHORTPATH = 0x0001,
  1081. SLGP_UNCPRIORITY = 0x0002,
  1082. SLGP_RAWPATH = 0x0004,
  1083. } SLGP_FLAGS;
  1084. [
  1085. uuid(000214EE-0000-0000-C000-000000000046),
  1086. object,
  1087. pointer_default(unique)
  1088. ]
  1089. interface IShellLinkA : IUnknown
  1090. {
  1091. HRESULT GetPath([out, size_is(cch)] LPSTR pszFile, [in] int cch, [in, out, ptr] WIN32_FIND_DATAA *pfd, [in] DWORD fFlags);
  1092. HRESULT GetIDList([out] LPITEMIDLIST * ppidl);
  1093. HRESULT SetIDList([in] LPCITEMIDLIST pidl);
  1094. HRESULT GetDescription([out, size_is(cch)] LPSTR pszName, [in] int cch);
  1095. HRESULT SetDescription([in] LPCSTR pszName);
  1096. HRESULT GetWorkingDirectory([out, size_is(cch)] LPSTR pszDir, [in] int cch);
  1097. HRESULT SetWorkingDirectory([in] LPCSTR pszDir);
  1098. HRESULT GetArguments([out, size_is(cch)] LPSTR pszArgs, [in] int cch);
  1099. HRESULT SetArguments([in] LPCSTR pszArgs);
  1100. HRESULT GetHotkey([out] WORD *pwHotkey);
  1101. HRESULT SetHotkey([in] WORD wHotkey);
  1102. HRESULT GetShowCmd([out] int *piShowCmd);
  1103. HRESULT SetShowCmd([in] int iShowCmd);
  1104. HRESULT GetIconLocation([out, size_is(cch)] LPSTR pszIconPath, [in] int cch, [out] int *piIcon);
  1105. HRESULT SetIconLocation([in] LPCSTR pszIconPath, [in] int iIcon);
  1106. HRESULT SetRelativePath([in] LPCSTR pszPathRel, [in] DWORD dwReserved);
  1107. HRESULT Resolve([in] HWND hwnd, [in] DWORD fFlags);
  1108. HRESULT SetPath([in] LPCSTR pszFile);
  1109. };
  1110. [
  1111. uuid(000214F9-0000-0000-C000-000000000046),
  1112. object,
  1113. pointer_default(unique)
  1114. ]
  1115. interface IShellLinkW : IUnknown
  1116. {
  1117. HRESULT GetPath([out, size_is(cch)] LPWSTR pszFile, [in] int cch, [in, out, ptr] WIN32_FIND_DATAW *pfd, [in] DWORD fFlags);
  1118. HRESULT GetIDList([out] LPITEMIDLIST * ppidl);
  1119. HRESULT SetIDList([in] LPCITEMIDLIST pidl);
  1120. HRESULT GetDescription([out, size_is(cch)] LPWSTR pszName, int cch);
  1121. HRESULT SetDescription([in] LPCWSTR pszName);
  1122. HRESULT GetWorkingDirectory([out, size_is(cch)] LPWSTR pszDir, int cch);
  1123. HRESULT SetWorkingDirectory([in] LPCWSTR pszDir);
  1124. HRESULT GetArguments([out, size_is(cch)] LPWSTR pszArgs, int cch);
  1125. HRESULT SetArguments([in] LPCWSTR pszArgs);
  1126. HRESULT GetHotkey([out] WORD *pwHotkey);
  1127. HRESULT SetHotkey([in] WORD wHotkey);
  1128. HRESULT GetShowCmd([out] int *piShowCmd);
  1129. HRESULT SetShowCmd([in] int iShowCmd);
  1130. HRESULT GetIconLocation([out, size_is(cch)] LPWSTR pszIconPath, [in] int cch, [out] int *piIcon);
  1131. HRESULT SetIconLocation([in] LPCWSTR pszIconPath, [in] int iIcon);
  1132. HRESULT SetRelativePath([in] LPCWSTR pszPathRel, [in] DWORD dwReserved);
  1133. HRESULT Resolve([in] HWND hwnd, [in] DWORD fFlags);
  1134. HRESULT SetPath([in] LPCWSTR pszFile);
  1135. };
  1136. [
  1137. object,
  1138. uuid(49ff1172-eadc-446d-9285-156453a6431c),
  1139. helpstring("IActionProgressDialog Interface"),
  1140. pointer_default(unique)
  1141. ]
  1142. interface IActionProgressDialog : IUnknown
  1143. {
  1144. [v1_enum] enum {
  1145. SPINITF_NORMAL = 0x00000000, // default normal progress behavior
  1146. SPINITF_MODAL = 0x00000001, // call punkSite->EnableModeless() or EnableWindow()
  1147. SPINITF_NOMINIMIZE = 0x00000008, // Do not have a minimize button in the caption bar.
  1148. };
  1149. typedef DWORD SPINITF;
  1150. HRESULT Initialize(
  1151. [in] SPINITF flags,
  1152. [in, string] LPCWSTR pszTitle,
  1153. [in, string] LPCWSTR pszCancel);
  1154. HRESULT Stop();
  1155. };
  1156. [
  1157. object,
  1158. uuid(C1FB73D0-EC3A-4ba2-B512-8CDB9187B6D1),
  1159. helpstring("HW Event Handler Interface"),
  1160. pointer_default(unique)
  1161. ]
  1162. interface IHWEventHandler : IUnknown
  1163. {
  1164. HRESULT Initialize([in, string] LPCWSTR pszParams);
  1165. HRESULT HandleEvent([in, string] LPCWSTR pszDeviceID,
  1166. [in, string] LPCWSTR pszAltDeviceID,
  1167. [in, string] LPCWSTR pszEventType);
  1168. HRESULT HandleEventWithContent([in, string] LPCWSTR pszDeviceID,
  1169. [in, string] LPCWSTR pszAltDeviceID,
  1170. [in, string] LPCWSTR pszEventType,
  1171. [in, string] LPCWSTR pszContentTypeHandler,
  1172. [in] IDataObject* pdataobject);
  1173. };
  1174. cpp_quote("#define ARCONTENT_AUTORUNINF 0x00000002") // That's the one we have today, and always had
  1175. cpp_quote("#define ARCONTENT_AUDIOCD 0x00000004") // Audio CD (not MP3 and the like, the stuff you buy at the store)
  1176. cpp_quote("#define ARCONTENT_DVDMOVIE 0x00000008") // DVD Movie (not MPEGs, the stuff you buy at the store)
  1177. cpp_quote("#define ARCONTENT_BLANKCD 0x00000010") // Blank CD-R/CD-RW
  1178. cpp_quote("#define ARCONTENT_BLANKDVD 0x00000020") // Blank DVD-R/DVD-RW
  1179. cpp_quote("#define ARCONTENT_UNKNOWNCONTENT 0x00000040") // Whatever files. Mean that it's formatted.
  1180. cpp_quote("#define ARCONTENT_AUTOPLAYPIX 0x00000080") // Whatever files. Mean that it's formatted.
  1181. cpp_quote("#define ARCONTENT_AUTOPLAYMUSIC 0x00000100") // Whatever files. Mean that it's formatted.
  1182. cpp_quote("#define ARCONTENT_AUTOPLAYVIDEO 0x00000200") // Whatever files. Mean that it's formatted.
  1183. [
  1184. object,
  1185. uuid(DDEFE873-6997-4e68-BE26-39B633ADBE12),
  1186. helpstring("HW Event Handler Interface"),
  1187. pointer_default(unique)
  1188. ]
  1189. interface IQueryCancelAutoPlay : IUnknown
  1190. {
  1191. HRESULT AllowAutoPlay([in, string]LPCWSTR pszPath, [in]DWORD dwContentType,
  1192. [in, string]LPCWSTR pszLabel, [in] DWORD dwSerialNumber);
  1193. };
  1194. [
  1195. object,
  1196. uuid(49ff1173-eadc-446d-9285-156453a6431c),
  1197. helpstring("IActionProgress Interface"),
  1198. pointer_default(unique)
  1199. ]
  1200. interface IActionProgress : IUnknown
  1201. {
  1202. [v1_enum] enum {
  1203. SPBEGINF_NORMAL = 0x00000000, // default normal progress behavior
  1204. SPBEGINF_AUTOTIME = 0x00000002, // automatically updates the "time remaining" text
  1205. SPBEGINF_NOPROGRESSBAR = 0x00000010, // Don't display the progress bar (SetProgress() wont be called)
  1206. SPBEGINF_MARQUEEPROGRESS = 0x00000020, // use marquee progress (comctl32 v6 required)
  1207. };
  1208. typedef DWORD SPBEGINF;
  1209. typedef [v1_enum] enum _SPACTION {
  1210. SPACTION_NONE = 0,
  1211. SPACTION_MOVING,
  1212. SPACTION_COPYING,
  1213. SPACTION_RECYCLING,
  1214. SPACTION_APPLYINGATTRIBS,
  1215. SPACTION_DOWNLOADING,
  1216. SPACTION_SEARCHING_INTERNET,
  1217. SPACTION_CALCULATING,
  1218. SPACTION_UPLOADING,
  1219. SPACTION_SEARCHING_FILES,
  1220. } SPACTION;
  1221. HRESULT Begin(
  1222. [in] SPACTION action,
  1223. [in] SPBEGINF flags);
  1224. HRESULT UpdateProgress(
  1225. [in] ULONGLONG ulCompleted,
  1226. [in] ULONGLONG ulTotal);
  1227. typedef [v1_enum] enum _SPTEXT
  1228. {
  1229. SPTEXT_ACTIONDESCRIPTION = 1,
  1230. SPTEXT_ACTIONDETAIL,
  1231. } SPTEXT;
  1232. HRESULT UpdateText(
  1233. [in] SPTEXT sptext,
  1234. [in, string] LPCWSTR pszText,
  1235. [in] BOOL fMayCompact);
  1236. HRESULT QueryCancel([out] BOOL * pfCancelled);
  1237. HRESULT ResetCancel();
  1238. HRESULT End();
  1239. };
  1240. // The IShellExtInit interface is used by the explorer to initialize shell
  1241. // extension objects. The explorer (1) calls CoCreateInstance (or equivalent)
  1242. // with the registered CLSID and IID_IShellExtInit, (2) calls its Initialize
  1243. // member, then (3) calls its QueryInterface to a particular interface (such
  1244. // as IContextMenu or IPropSheetExt and (4) performs the rest of operation.
  1245. //
  1246. // IShellExtInit::Initialize
  1247. //
  1248. // This member function is called when the explorer is initializing either
  1249. // context menu extension, property sheet extension or non-default drag-drop
  1250. // extension.
  1251. //
  1252. // Parameters: (context menu or property sheet extension)
  1253. // pidlFolder -- Specifies the parent folder
  1254. // lpdobj -- Spefifies the set of items selected in that folder.
  1255. // hkeyProgID -- Specifies the type of the focused item in the selection.
  1256. //
  1257. // Parameters: (non-default drag-and-drop extension)
  1258. // pidlFolder -- Specifies the target (destination) folder
  1259. // lpdobj -- Specifies the items that are dropped (see the description
  1260. // about shell's clipboard below for clipboard formats).
  1261. // hkeyProgID -- Specifies the folder type.
  1262. [
  1263. uuid(000214E8-0000-0000-C000-000000000046),
  1264. object,
  1265. local,
  1266. pointer_default(unique)
  1267. ]
  1268. interface IShellExtInit : IUnknown
  1269. {
  1270. HRESULT Initialize([in] LPCITEMIDLIST pidlFolder, [in] IDataObject *pdtobj, [in] HKEY hkeyProgID);
  1271. }
  1272. typedef IShellExtInit * LPSHELLEXTINIT;
  1273. // The explorer uses the IShellPropSheetExt to allow property sheet
  1274. // extensions or control panel extensions to add additional property
  1275. // sheet pages.
  1276. //
  1277. // IShellPropSheetExt::AddPages
  1278. //
  1279. // The explorer calls this member function when it finds a registered
  1280. // property sheet extension for a particular type of object. For each
  1281. // additional page, the extension creates a page object by calling
  1282. // CreatePropertySheetPage API and calls lpfnAddPage.
  1283. //
  1284. // Parameters:
  1285. // lpfnAddPage -- Specifies the callback function.
  1286. // lParam -- Specifies the opaque handle to be passed to the callback function.
  1287. //
  1288. //
  1289. // IShellPropSheetExt::ReplacePage
  1290. //
  1291. // The explorer never calls this member of property sheet extensions. The
  1292. // explorer calls this member of control panel extensions, so that they
  1293. // can replace some of default control panel pages (such as a page of
  1294. // mouse control panel).
  1295. //
  1296. // Parameters:
  1297. // uPageID -- Specifies the page to be replaced.
  1298. // lpfnReplace Specifies the callback function.
  1299. // lParam -- Specifies the opaque handle to be passed to the callback function.
  1300. //
  1301. [
  1302. uuid(000214E9-0000-0000-C000-000000000046),
  1303. object,
  1304. local,
  1305. pointer_default(unique)
  1306. ]
  1307. interface IShellPropSheetExt : IUnknown
  1308. {
  1309. HRESULT AddPages([in] LPFNSVADDPROPSHEETPAGE pfnAddPage, [in] LPARAM lParam);
  1310. enum
  1311. {
  1312. EXPPS_FILETYPES = 0x00000001,
  1313. };
  1314. typedef UINT EXPPS;
  1315. HRESULT ReplacePage([in] EXPPS uPageID, [in] LPFNSVADDPROPSHEETPAGE pfnReplaceWith, [in] LPARAM lParam);
  1316. }
  1317. typedef IShellPropSheetExt * LPSHELLPROPSHEETEXT;
  1318. [
  1319. helpstring("used to initialize an object on a remote computer (server)"),
  1320. uuid(000214FE-0000-0000-C000-000000000046),
  1321. object,
  1322. pointer_default(unique)
  1323. ]
  1324. interface IRemoteComputer : IUnknown
  1325. {
  1326. // function is called when the explorer is initializing or
  1327. // enumerating the name space extension. If failure is returned during
  1328. // enumeration, the extension won't appear for this computer. Otherwise,
  1329. // the extension will appear, and should target the given machine.
  1330. //
  1331. // pszMachine Specifies the name of the machine to target. (\\server)
  1332. // bEnumerationg test to see if this object should be enumerated
  1333. // on this server
  1334. HRESULT Initialize([in] LPCWSTR pszMachine, [in] BOOL bEnumerating);
  1335. };
  1336. [
  1337. uuid(7307055c-b24a-486b-9f25-163e597a28a9), object, pointer_default(unique)
  1338. ]
  1339. interface IQueryContinue : IUnknown
  1340. {
  1341. HRESULT QueryContinue(); // S_OK -> Continue, other
  1342. };
  1343. [
  1344. uuid(ba9711ba-5893-4787-a7e1-41277151550b), object, pointer_default(unique)
  1345. ]
  1346. interface IUserNotification : IUnknown
  1347. {
  1348. HRESULT SetBalloonInfo([in, string] LPCWSTR pszTitle, [in, string] LPCWSTR pszText, [in] DWORD dwInfoFlags);
  1349. // times in msec
  1350. HRESULT SetBalloonRetry([in] DWORD dwShowTime, [in] DWORD dwInterval, [in] UINT cRetryCount);
  1351. HRESULT SetIconInfo([in] HICON hIcon, [in, string] LPCWSTR pszToolTip);
  1352. HRESULT Show([in] IQueryContinue *pqc, [in] DWORD dwContinuePollInterval);
  1353. HRESULT PlaySound([in, string] LPCWSTR pszSoundName);
  1354. };
  1355. // interface for describing the limits placed on a name, used for validation
  1356. // parsing and translation.
  1357. [
  1358. uuid(1df0d7f1-b267-4d28-8b10-12e23202a5c4)
  1359. ]
  1360. interface IItemNameLimits : IUnknown
  1361. {
  1362. HRESULT GetValidCharacters([out] LPWSTR *ppwszValidChars, [out] LPWSTR *ppwszInvalidChars);
  1363. HRESULT GetMaxLength([in] LPCWSTR pszName, [out] int *piMaxNameLen);
  1364. };
  1365. // INetCrawler interface
  1366. //
  1367. // [Member functions]
  1368. //
  1369. // INetCrawler::Update
  1370. // Causes an enumeration of the local workgroup and subsequent addition
  1371. // of folder shortcut and printer objects. As is a blocking call
  1372. // which will potentially take a long time (seconds) it should be called
  1373. // on a seperate thread
  1374. cpp_quote("#define SNCF_REFRESHLIST 0x00000001 // refresh the list (eg. from F5 or opening a folder)")
  1375. [
  1376. helpstring("INetCrawler"),
  1377. uuid(49c929ee-a1b7-4c58-b539-e63be392b6f3),
  1378. object,
  1379. pointer_default(unique)
  1380. ]
  1381. interface INetCrawler : IUnknown
  1382. {
  1383. HRESULT Update([in] DWORD dwFlags);
  1384. }
  1385. cpp_quote("#if (_WIN32_IE >= 0x0400)")
  1386. // --- IExtractImage
  1387. // this interface is provided for objects to provide a thumbnail image.
  1388. // IExtractImage::GetLocation()
  1389. // Gets a path description of the image that is to be extracted. This is used to
  1390. // identify the image in the view so that multiple instances of the same image can reuse the
  1391. // original image. If *pdwFlags == IEIFLAG_ASYNC and the result is E_PENDING, then *pdwPriority
  1392. // is used to return the priority of the item, this is usually a measure of how long it will take
  1393. // to perform the extraction. *pdwFlags can return IEIFLAG_CACHE if the view should cache a copy
  1394. // of the image for future reference and faster access. This flag is used to tell the difference
  1395. // between file formats that cache a thumbnail image such as Flashpix or Office documents, and those
  1396. // that don't cache one.
  1397. // IExtractImage::Extract()
  1398. // Extract the thumbnail of the specified size. If GetLocation() returned the values indicating
  1399. // it is free-threaded and can be placed on a background thread. If the object
  1400. // supports IRunnableTask as well, then long extractions can be started and paused as appropriate.
  1401. // At this point it is asssumed the object is free-threaded.
  1402. // If dwRecClrDepth contains a recommended Colour depth
  1403. // If *phBmpthumbnail is non NULL, then it contains the destination bitmap that should be used.
  1404. cpp_quote("#define IEI_PRIORITY_MAX ITSAT_MAX_PRIORITY")
  1405. cpp_quote("#define IEI_PRIORITY_MIN ITSAT_MIN_PRIORITY")
  1406. cpp_quote("#define IEIT_PRIORITY_NORMAL ITSAT_DEFAULT_PRIORITY")
  1407. cpp_quote("#define IEIFLAG_ASYNC 0x0001 // ask the extractor if it supports ASYNC extract (free threaded)")
  1408. cpp_quote("#define IEIFLAG_CACHE 0x0002 // returned from the extractor if it does NOT cache the thumbnail")
  1409. cpp_quote("#define IEIFLAG_ASPECT 0x0004 // passed to the extractor to beg it to render to the aspect ratio of the supplied rect")
  1410. cpp_quote("#define IEIFLAG_OFFLINE 0x0008 // if the extractor shouldn't hit the net to get any content neede for the rendering")
  1411. cpp_quote("#define IEIFLAG_GLEAM 0x0010 // does the image have a gleam ? this will be returned if it does")
  1412. cpp_quote("#define IEIFLAG_SCREEN 0x0020 // render as if for the screen (this is exlusive with IEIFLAG_ASPECT )")
  1413. cpp_quote("#define IEIFLAG_ORIGSIZE 0x0040 // render to the approx size passed, but crop if neccessary")
  1414. cpp_quote("#define IEIFLAG_NOSTAMP 0x0080 // returned from the extractor if it does NOT want an icon stamp on the thumbnail")
  1415. cpp_quote("#define IEIFLAG_NOBORDER 0x0100 // returned from the extractor if it does NOT want an a border around the thumbnail")
  1416. cpp_quote("#define IEIFLAG_QUALITY 0x0200 // passed to the Extract method to indicate that a slower, higher quality image is desired, re-compute the thumbnail")
  1417. cpp_quote("#define IEIFLAG_REFRESH 0x0400 // returned from the extractor if it would like to have Refresh Thumbnail available")
  1418. [
  1419. helpstring("IExtractImage"),
  1420. uuid(BB2E617C-0920-11d1-9A0B-00C04FC2D6C1),
  1421. object,
  1422. pointer_default(unique)
  1423. ]
  1424. interface IExtractImage : IUnknown
  1425. {
  1426. HRESULT GetLocation([out, size_is(cch)] LPWSTR pszPathBuffer,
  1427. [in] DWORD cch,
  1428. [in, out, unique] DWORD *pdwPriority,
  1429. [in] const SIZE * prgSize,
  1430. [in] DWORD dwRecClrDepth,
  1431. [in, out] DWORD *pdwFlags);
  1432. HRESULT Extract([out] HBITMAP *phBmpThumbnail);
  1433. }
  1434. typedef IExtractImage * LPEXTRACTIMAGE;
  1435. cpp_quote("#endif")
  1436. cpp_quote("#if (_WIN32_IE >= 0x0500)")
  1437. // GetDateStamp : returns the date stamp associated with the image. If this image is already cached,
  1438. // then it is easy to find out if the image is out of date.
  1439. [
  1440. helpstring("IExtractImage2"),
  1441. uuid(953BB1EE-93B4-11d1-98A3-00C04FB687DA),
  1442. object,
  1443. pointer_default(unique)
  1444. ]
  1445. interface IExtractImage2 : IExtractImage
  1446. {
  1447. HRESULT GetDateStamp([out] FILETIME *pDateStamp);
  1448. }
  1449. typedef IExtractImage2 * LPEXTRACTIMAGE2;
  1450. cpp_quote("#endif")
  1451. //-------------------------------------------------------------------------
  1452. //
  1453. // IUserEventTimerCallback interface
  1454. //
  1455. //-------------------------------------------------------------------------
  1456. interface IUserEventTimerCallback;
  1457. [
  1458. helpstring("IUserEventTimerCallback "),
  1459. uuid(e9ead8e6-2a25-410e-9b58-a9fbef1dd1a2), // IID_IUserEventTimerCallback
  1460. object,
  1461. pointer_default(unique)
  1462. ]
  1463. interface IUserEventTimerCallback : IUnknown
  1464. {
  1465. HRESULT UserEventTimerProc(
  1466. [in] ULONG uUserEventTimerID,
  1467. [in] UINT uTimerElapse);
  1468. };
  1469. //-------------------------------------------------------------------------
  1470. //
  1471. // IUserEventTimer interface
  1472. //
  1473. // Timer to keep track of user presence at the machine
  1474. //
  1475. //-------------------------------------------------------------------------
  1476. interface IUserEventTimer;
  1477. [
  1478. helpstring("IUserEventTimer "),
  1479. uuid(0F504B94-6E42-42E6-99E0-E20FAFE52AB4), // IID_IUserEventTimer
  1480. object,
  1481. pointer_default(unique)
  1482. ]
  1483. interface IUserEventTimer : IUnknown
  1484. {
  1485. HRESULT SetUserEventTimer
  1486. (
  1487. [in] HWND hWnd,
  1488. [in] UINT uCallbackMessage,
  1489. [in] UINT uTimerElapse,
  1490. [in] IUserEventTimerCallback * pUserEventTimerCallback,
  1491. [in, out] ULONG * puUserEventTimerID
  1492. );
  1493. HRESULT KillUserEventTimer
  1494. (
  1495. [in] HWND hWnd,
  1496. [in] ULONG uUserEventTimerID
  1497. );
  1498. HRESULT GetUserEventTimerElapsed
  1499. (
  1500. [in] HWND hWnd,
  1501. [in] ULONG uUserEventTimerID,
  1502. [out] UINT * puTimerElapsed
  1503. );
  1504. HRESULT InitTimerTickInterval
  1505. (
  1506. [in] UINT uTimerTickIntervalMs
  1507. );
  1508. };
  1509. //-------------------------------------------------------------------------
  1510. //
  1511. // IDockingWindow interface
  1512. //
  1513. // An object (docking window) implements this interface so the site can
  1514. // communicate with it. An example of a docking window is a toolbar.
  1515. //
  1516. // [Member functions]
  1517. //
  1518. // IDockingWindow::ShowDW(fShow)
  1519. // Shows or hides the docking window.
  1520. //
  1521. // IDockingWindow::CloseDW(dwReserved)
  1522. // Closes the docking window. dwReserved must be 0.
  1523. //
  1524. // IDockingWindow::ResizeBorderDW(prcBorder, punkToolbarSite, fReserved)
  1525. // Resizes the docking window's border to *prcBorder. fReserved must
  1526. // be 0.
  1527. //
  1528. // IObjectWithSite::SetSite(punkSite)
  1529. // IDockingWindow usually paired with IObjectWithSite.
  1530. // Provides the IUnknown pointer of the site to the docking window.
  1531. //
  1532. //-------------------------------------------------------------------------
  1533. [
  1534. uuid(012dd920-7b26-11d0-8ca9-00a0c92dbfe8),
  1535. object
  1536. ]
  1537. interface IDockingWindow : IOleWindow
  1538. {
  1539. HRESULT ShowDW([in] BOOL fShow);
  1540. HRESULT CloseDW([in] DWORD dwReserved);
  1541. HRESULT ResizeBorderDW([in] LPCRECT prcBorder, [in] IUnknown* punkToolbarSite, [in] BOOL fReserved);
  1542. };
  1543. //-------------------------------------------------------------------------
  1544. //
  1545. // IDeskBand interface
  1546. //
  1547. //
  1548. // [Member functions]
  1549. //
  1550. // IDeskBand::GetBandInfo(dwBandID, dwViewMode, pdbi)
  1551. // Returns info on the given band in *pdbi, according to the mask
  1552. // field in the DESKBANDINFO structure and the given viewmode.
  1553. //
  1554. //-------------------------------------------------------------------------
  1555. // Mask values for DESKBANDINFO
  1556. cpp_quote("#define DBIM_MINSIZE 0x0001")
  1557. cpp_quote("#define DBIM_MAXSIZE 0x0002")
  1558. cpp_quote("#define DBIM_INTEGRAL 0x0004")
  1559. cpp_quote("#define DBIM_ACTUAL 0x0008")
  1560. cpp_quote("#define DBIM_TITLE 0x0010")
  1561. cpp_quote("#define DBIM_MODEFLAGS 0x0020")
  1562. cpp_quote("#define DBIM_BKCOLOR 0x0040")
  1563. cpp_quote("#include <pshpack8.h>")
  1564. typedef struct {
  1565. DWORD dwMask;
  1566. POINTL ptMinSize;
  1567. POINTL ptMaxSize;
  1568. POINTL ptIntegral;
  1569. POINTL ptActual;
  1570. WCHAR wszTitle[256];
  1571. DWORD dwModeFlags;
  1572. COLORREF crBkgnd;
  1573. } DESKBANDINFO;
  1574. cpp_quote("#include <poppack.h>") // Return to byte packing
  1575. // DESKBANDINFO dwModeFlags values
  1576. cpp_quote("#define DBIMF_NORMAL 0x0000")
  1577. cpp_quote("#define DBIMF_FIXED 0x0001")
  1578. cpp_quote("#define DBIMF_FIXEDBMP 0x0004 // a fixed background bitmap (if supported)")
  1579. cpp_quote("#define DBIMF_VARIABLEHEIGHT 0x0008")
  1580. cpp_quote("#define DBIMF_UNDELETEABLE 0x0010")
  1581. cpp_quote("#define DBIMF_DEBOSSED 0x0020")
  1582. cpp_quote("#define DBIMF_BKCOLOR 0x0040")
  1583. cpp_quote("#define DBIMF_USECHEVRON 0x0080")
  1584. cpp_quote("#define DBIMF_BREAK 0x0100")
  1585. cpp_quote("#define DBIMF_ADDTOFRONT 0x0200")
  1586. cpp_quote("#define DBIMF_TOPALIGN 0x0400")
  1587. // GetBandInfo view mode values
  1588. cpp_quote("#define DBIF_VIEWMODE_NORMAL 0x0000")
  1589. cpp_quote("#define DBIF_VIEWMODE_VERTICAL 0x0001")
  1590. cpp_quote("#define DBIF_VIEWMODE_FLOATING 0x0002")
  1591. cpp_quote("#define DBIF_VIEWMODE_TRANSPARENT 0x0004")
  1592. // Command Target IDs
  1593. enum {
  1594. DBID_BANDINFOCHANGED = 0,
  1595. DBID_SHOWONLY = 1,
  1596. DBID_MAXIMIZEBAND = 2, // Maximize the specified band (VT_UI4 == dwID)
  1597. DBID_PUSHCHEVRON = 3,
  1598. DBID_DELAYINIT = 4, // Note: _bandsite_ calls _band_ with this code
  1599. DBID_FINISHINIT = 5, // Note: _bandsite_ calls _band_ with this code
  1600. DBID_SETWINDOWTHEME = 6, // Note: _bandsite_ calls _band_ with this code
  1601. DBID_PERMITAUTOHIDE = 7,
  1602. };
  1603. cpp_quote("#define DBPC_SELECTFIRST (DWORD)-1")
  1604. cpp_quote("#define DBPC_SELECTLAST (DWORD)-2")
  1605. cpp_quote("#define CGID_DeskBand IID_IDeskBand")
  1606. [
  1607. uuid(EB0FE172-1A3A-11D0-89B3-00A0C90A90AC),
  1608. object,
  1609. ]
  1610. interface IDeskBand : IDockingWindow
  1611. {
  1612. HRESULT GetBandInfo([in] DWORD dwBandID, [in] DWORD dwViewMode, [in, out] DESKBANDINFO* pdbi);
  1613. };
  1614. //-------------------------------------------------------------------------
  1615. //
  1616. // ITaskbarList interface
  1617. //
  1618. //
  1619. // [Member functions]
  1620. //
  1621. // ITaskbarList::HrInit()
  1622. // This function must be called first to validate use of other members.
  1623. //
  1624. // ITaskbarList::AddTab(hwnd)
  1625. // This function adds a tab for hwnd to the taskbar.
  1626. //
  1627. // ITaskbarList::DeleteTab(hwnd)
  1628. // This function deletes a tab for hwnd from the taskbar.
  1629. //
  1630. // ITaskbarList::ActivateTab(hwnd)
  1631. // This function activates the tab associated with hwnd on the taskbar.
  1632. //
  1633. // ITaskbarList::SetActivateAlt(hwnd)
  1634. // This function marks hwnd in the taskbar as the active tab
  1635. //
  1636. //-------------------------------------------------------------------------
  1637. [
  1638. uuid(56FDF342-FD6D-11d0-958A-006097C9A090),
  1639. object,
  1640. ]
  1641. interface ITaskbarList : IUnknown
  1642. {
  1643. HRESULT HrInit();
  1644. HRESULT AddTab([in] HWND hwnd);
  1645. HRESULT DeleteTab([in] HWND hwnd);
  1646. HRESULT ActivateTab([in] HWND hwnd);
  1647. HRESULT SetActiveAlt([in] HWND hwnd);
  1648. };
  1649. [
  1650. uuid(602D4995-B13A-429b-A66E-1935E44F4317),
  1651. object,
  1652. ]
  1653. interface ITaskbarList2 : ITaskbarList
  1654. {
  1655. HRESULT MarkFullscreenWindow([in] HWND hwnd, [in] BOOL fFullscreen);
  1656. };
  1657. [
  1658. object,
  1659. uuid(3d73a659-e5d0-4d42-afc0-5121ba425c8d), // IID_ICDBurn
  1660. pointer_default(unique)
  1661. ]
  1662. interface ICDBurn : IUnknown
  1663. {
  1664. HRESULT GetRecorderDriveLetter([out, size_is(cch)] LPWSTR pszDrive, [in] UINT cch);
  1665. HRESULT Burn([in] HWND hwnd);
  1666. HRESULT HasRecordableDrive([out] BOOL *pfHasRecorder);
  1667. };
  1668. // Wizard Extension objects. These interfaces defined methods for extending
  1669. // Win32 wizard in a progromatic way.
  1670. // Range of ID's that extensions can used, these mustn't clash with
  1671. // the existing wizards dialog IDS. (That enables them to still
  1672. // do PropSheet_SetCurSelByID).
  1673. cpp_quote("#define IDD_WIZEXTN_FIRST 0x5000")
  1674. cpp_quote("#define IDD_WIZEXTN_LAST 0x5100")
  1675. // This site object is requested via a QueryService of the objects site,
  1676. // it allows the extension to navigate in/out out itself, eg. when the
  1677. // extension has shown all of its pages and wants to navigate to the
  1678. // next page it would call GetNextPage and select the specified HPAGE.
  1679. [
  1680. uuid(88960f5b-422f-4e7b-8013-73415381c3c3),
  1681. helpstring("Wizard Extension Site"),
  1682. local
  1683. ]
  1684. interface IWizardSite : IUnknown
  1685. {
  1686. HRESULT GetPreviousPage([out] HPROPSHEETPAGE *phpage);
  1687. HRESULT GetNextPage([out] HPROPSHEETPAGE *phpage);
  1688. HRESULT GetCancelledPage([out] HPROPSHEETPAGE *phpage);
  1689. };
  1690. // A wizard extension is implemented using this object, the extension will declare the
  1691. // pages that it supports using the AddPages method, and then when its host needs to navigate
  1692. // into the extenion it will do so via GetFirstPage and selecting that.
  1693. [
  1694. uuid(c02ea696-86cc-491e-9b23-74394a0444a8),
  1695. helpstring("Wizard Extension"),
  1696. local
  1697. ]
  1698. interface IWizardExtension : IUnknown
  1699. {
  1700. HRESULT AddPages([in, out] HPROPSHEETPAGE* aPages, [in] UINT cPages, [out] UINT *pnPagesAdded);
  1701. HRESULT GetFirstPage([out] HPROPSHEETPAGE *phpage);
  1702. HRESULT GetLastPage([out] HPROPSHEETPAGE *phpage);
  1703. };
  1704. // The Web Wizard is a HTML host for wizard pages, it allows you
  1705. // create a HTML wizard starting at the URL defined via SetInitialURL.
  1706. [
  1707. helpstring("Web Wizard Page Extension"),
  1708. uuid(0e6b3f66-98d1-48c0-a222-fbde74e2fbc5),
  1709. object,
  1710. pointer_default(unique)
  1711. ]
  1712. interface IWebWizardExtension : IWizardExtension
  1713. {
  1714. HRESULT SetInitialURL([in, string] LPCWSTR pszURL);
  1715. HRESULT SetErrorURL([in, string] LPCWSTR pszErrorURL);
  1716. };
  1717. cpp_quote("#define SID_WebWizardHost IID_IWebWizardExtension")
  1718. // flags for the host to control the publishing wizard
  1719. cpp_quote ("#define SHPWHF_NORECOMPRESS 0x00000001 // don't allow/prompt for recompress of streams")
  1720. cpp_quote ("#define SHPWHF_NONETPLACECREATE 0x00000002 // don't create a network place when transfer is complete")
  1721. cpp_quote ("#define SHPWHF_NOFILESELECTOR 0x00000004 // don't show the file selector")
  1722. cpp_quote ("#define SHPWHF_VALIDATEVIAWEBFOLDERS 0x00010000 // enable web folders to validate network places (ANP support)")
  1723. [
  1724. helpstring("Web Publishing Wizard"),
  1725. uuid(aa9198bb-ccec-472d-beed-19a4f6733f7a),
  1726. object,
  1727. pointer_default(unique)
  1728. ]
  1729. interface IPublishingWizard : IWizardExtension
  1730. {
  1731. HRESULT Initialize([in] IDataObject *pdo, [in] DWORD dwOptions, [in, string] LPCWSTR pszServiceProvider);
  1732. HRESULT GetTransferManifest([out] HRESULT *phrFromTransfer, [out] IXMLDOMDocument **pdocManifest);
  1733. }
  1734. // Object to host an IFolderView in a window. This is used to build check mark selection
  1735. // UI for files.
  1736. [
  1737. uuid(1ea58f02-d55a-411d-b09e-9e65ac21605b),
  1738. helpstring("Shell Folder Host"),
  1739. local,
  1740. ]
  1741. interface IFolderViewHost : IUnknown
  1742. {
  1743. HRESULT Initialize([in] HWND hwndParent, [in] IDataObject *pdo, [in] RECT *prc);
  1744. };
  1745. //
  1746. // Flags for IAutoCompleteDropDown::GetDropDownStatus
  1747. //
  1748. cpp_quote("#define ACDD_VISIBLE 0x0001")
  1749. [
  1750. uuid(3CD141F4-3C6A-11d2-BCAA-00C04FD929DB),
  1751. object,
  1752. pointer_default(unique)
  1753. ]
  1754. interface IAutoCompleteDropDown : IUnknown
  1755. {
  1756. HRESULT GetDropDownStatus([out] DWORD *pdwFlags, [out, string] LPWSTR *ppwszString);
  1757. HRESULT ResetEnumerator();
  1758. };
  1759. cpp_quote("#define PPW_LAUNCHEDBYUSER 0x00000001 // The wizard was launch explicitly by the user, not on demand by the key manager")
  1760. [
  1761. helpstring("Passport Wizard"),
  1762. uuid(a09db586-9180-41ac-9114-460a7f362b76),
  1763. object,
  1764. pointer_default(unique)
  1765. ]
  1766. interface IPassportWizard : IModalWindow
  1767. {
  1768. HRESULT SetOptions([in] DWORD dwOptions);
  1769. };
  1770. // the cd burning wizard extension sets return codes through a property bag
  1771. // to tell the main wizard whether it should stop or keep going
  1772. cpp_quote("#define PROPSTR_EXTENSIONCOMPLETIONSTATE L\"ExtensionCompletionState\"")
  1773. enum
  1774. {
  1775. CDBE_RET_DEFAULT = 0x00000000,
  1776. CDBE_RET_DONTRUNOTHEREXTS = 0x00000001,
  1777. CDBE_RET_STOPWIZARD = 0x00000002,
  1778. };
  1779. cpp_quote("#define SID_CDWizardHost IID_ICDBurnExt")
  1780. [
  1781. uuid(2271dcca-74fc-4414-8fb7-c56b05ace2d7),
  1782. helpstring("add-ons for cd burning"),
  1783. ]
  1784. interface ICDBurnExt : IUnknown
  1785. {
  1786. enum
  1787. {
  1788. CDBE_TYPE_MUSIC = 0x00000001,
  1789. CDBE_TYPE_DATA = 0x00000002,
  1790. CDBE_TYPE_ALL = 0xFFFFFFFF
  1791. };
  1792. HRESULT GetSupportedActionTypes([out] DWORD *pdwActions);
  1793. }
  1794. typedef void (*PFDVENUMREADYBALLBACK)(LPVOID pvData);
  1795. //
  1796. // interface for communication between the view and the Explorer band treeview control
  1797. //
  1798. [
  1799. uuid(70F55181-5FEA-4900-B6B8-7343CB0A348C),
  1800. helpstring("Private interface between CDefView and Explorer band"),
  1801. local
  1802. ]
  1803. interface IDVGetEnum : IUnknown
  1804. {
  1805. HRESULT SetEnumReadyCallback([in] PFDVENUMREADYBALLBACK pfn, [in] LPVOID pvData);
  1806. HRESULT CreateEnumIDListFromContents([in] LPCITEMIDLIST pidlFolder, [in] DWORD dwEnumFlags, [out] IEnumIDList **ppEnumIDList);
  1807. };
  1808. [
  1809. helpstring("Interface to allow items to be inserted in FolderItems"),
  1810. uuid(D2B57227-3D23-4b95-93C0-492BD454C356),
  1811. object,
  1812. local
  1813. ]
  1814. interface IInsertItem : IUnknown
  1815. {
  1816. HRESULT InsertItem([in] LPCITEMIDLIST pidl);
  1817. }
  1818. ///// IDeskBar
  1819. [
  1820. uuid(EB0FE173-1A3A-11D0-89B3-00A0C90A90AC),
  1821. object,
  1822. pointer_default(unique),
  1823. local
  1824. ]
  1825. interface IDeskBar : IOleWindow
  1826. {
  1827. HRESULT SetClient([in] IUnknown* punkClient);
  1828. HRESULT GetClient([out] IUnknown** ppunkClient);
  1829. HRESULT OnPosRectChangeDB([in] LPRECT prc);
  1830. };
  1831. //-------------------------------------------------------------------------
  1832. //
  1833. // IMenuBand interface
  1834. //
  1835. // This interface provides methods the menuband (CLSID_MenuBand)
  1836. // to receive pertinent messages.
  1837. //
  1838. // [Member functions]
  1839. //
  1840. // IMenuBand::IsMenuMessage(pmsg)
  1841. // A message pump calls this function to see if any messages need
  1842. // to be redirected to this object. If this returns S_OK, the
  1843. // message loop should not call TranslateMessage or DispatchMessage.
  1844. // If this returns E_FAIL, the menu has exited menu mode and is ready
  1845. // to be destroyed.
  1846. //
  1847. // IMenuBand::TranslateMenuMessage(pmsg, plRet)
  1848. // Offers the object an opportunity to translate messages. The
  1849. // parent window proc must call this method for every message (not
  1850. // the message pump). The message, wParam, and lParam should be
  1851. // delivered to this method in *pmsg. This method may change the
  1852. // values of pmsg->wParam or pmsg->lParam, in which case these changes
  1853. // should be forwarded on.
  1854. //
  1855. // This method is required because some modal message pumps (like the one
  1856. // in TrackPopupMenu) do not give an opportunity to call a custom
  1857. // TranslateAccelerator method like IInputObject::TranslateAcceleratorIO.
  1858. //
  1859. // TranslateMenuMessage returns S_OK if the message was handled and
  1860. // should be eaten. *plRet is not touched if this returns S_FALSE.
  1861. //
  1862. //
  1863. //-------------------------------------------------------------------------
  1864. [
  1865. uuid(568804CD-CBD7-11d0-9816-00C04FD91972),
  1866. object,
  1867. pointer_default(unique),
  1868. local
  1869. ]
  1870. interface IMenuBand : IUnknown
  1871. {
  1872. // CmdIDs for the IOleCommandTarget Group: CGID_MenuBandHandler (defined in shguidp.h)
  1873. enum {
  1874. MBHANDCID_PIDLSELECT = 0, // A PIDL from a menuband was selected
  1875. };
  1876. HRESULT IsMenuMessage([in] MSG * pmsg);
  1877. HRESULT TranslateMenuMessage([in,out] MSG * pmsg, [out] LRESULT * plRet);
  1878. };
  1879. [
  1880. object,
  1881. uuid(47c01f95-e185-412c-b5c5-4f27df965aea), // IID_IFolderBandPriv
  1882. pointer_default(unique)
  1883. ]
  1884. interface IFolderBandPriv : IUnknown
  1885. {
  1886. HRESULT SetCascade([in] BOOL f);
  1887. HRESULT SetAccelerators([in] BOOL f);
  1888. HRESULT SetNoIcons([in] BOOL f);
  1889. HRESULT SetNoText([in] BOOL f);
  1890. };
  1891. cpp_quote("#if _WIN32_IE >= 0x0400")
  1892. //-------------------------------------------------------------------------
  1893. //
  1894. // IBandSite interface
  1895. //
  1896. // This interface provides methods to get or set bandsite information.
  1897. //
  1898. // [Member functions]
  1899. //
  1900. // IBandSite::AddBand(punk)
  1901. // Add a band to the bandsite. Returns the band ID in ShortFromResult(hres).
  1902. //
  1903. // IBandSite::EnumBands(uBand, *pdwBandID)
  1904. // Enumerate the bands. If uBand is -1, pdwBandID is ignored and this
  1905. // method returns the count of bands in the bandsite. Call this method
  1906. // with uBand starting at 0 to begin enumerating. Returns S_OK and the
  1907. // band ID in *pdwBandID of the next band.
  1908. //
  1909. // IBandSite::QueryBand(dwBandID, ppstb, pdwState, pszName, cchName)
  1910. // Get info about a band.
  1911. //
  1912. // IBandSite::SetBandState(dwBandID, dwState)
  1913. // Set the band's state.
  1914. //
  1915. // IBandSite::RemoveBand(dwBandID)
  1916. // Remove the band.
  1917. //
  1918. // IBandSite::GetBandObject(dwBandID, riid, ppv)
  1919. // Get an object that support riid for the band.
  1920. //
  1921. // IBandSite::GetBandSiteInfo(pbsinfo)
  1922. // Get info about the bandsite.
  1923. //
  1924. // IBandSite::SetBandSiteInfo(pbsinfo)
  1925. // Set info about the bandsite.
  1926. //
  1927. //-------------------------------------------------------------------------
  1928. cpp_quote("#include <pshpack8.h>")
  1929. typedef struct tagBANDSITEINFO {
  1930. DWORD dwMask; // BSIM_* flags
  1931. DWORD dwState; // BSSF_* flags
  1932. DWORD dwStyle; // BSIS_* flags
  1933. } BANDSITEINFO;
  1934. cpp_quote("#include <poppack.h>") // Return to byte packing
  1935. enum {
  1936. BSID_BANDADDED,
  1937. BSID_BANDREMOVED,
  1938. };
  1939. // Field mask
  1940. cpp_quote("#define BSIM_STATE 0x00000001")
  1941. cpp_quote("#define BSIM_STYLE 0x00000002")
  1942. // State flags
  1943. cpp_quote("#define BSSF_VISIBLE 0x00000001")
  1944. cpp_quote("#define BSSF_NOTITLE 0x00000002")
  1945. cpp_quote("#define BSSF_UNDELETEABLE 0x00001000")
  1946. // Style flags
  1947. cpp_quote("#define BSIS_AUTOGRIPPER 0x00000000")
  1948. cpp_quote("#define BSIS_NOGRIPPER 0x00000001")
  1949. cpp_quote("#define BSIS_ALWAYSGRIPPER 0x00000002")
  1950. cpp_quote("#define BSIS_LEFTALIGN 0x00000004")
  1951. cpp_quote("#define BSIS_SINGLECLICK 0x00000008")
  1952. cpp_quote("#define BSIS_NOCONTEXTMENU 0x00000010")
  1953. cpp_quote("#define BSIS_NODROPTARGET 0x00000020")
  1954. cpp_quote("#define BSIS_NOCAPTION 0x00000040")
  1955. cpp_quote("#define BSIS_PREFERNOLINEBREAK 0x00000080")
  1956. cpp_quote("#define BSIS_LOCKED 0x00000100")
  1957. cpp_quote("#define SID_SBandSite IID_IBandSite")
  1958. cpp_quote("#define CGID_BandSite IID_IBandSite")
  1959. [
  1960. object,
  1961. uuid(4CF504B0-DE96-11D0-8B3F-00A0C911E8E5)
  1962. ]
  1963. interface IBandSite : IUnknown
  1964. {
  1965. HRESULT AddBand([in] IUnknown* punk);
  1966. HRESULT EnumBands([in] UINT uBand, [out] DWORD* pdwBandID);
  1967. HRESULT QueryBand([in] DWORD dwBandID, [out] IDeskBand** ppstb, [out] DWORD* pdwState, [out, size_is(cchName)] LPWSTR pszName, [in] int cchName);
  1968. HRESULT SetBandState([in] DWORD dwBandID, [in] DWORD dwMask, [in] DWORD dwState);
  1969. HRESULT RemoveBand([in] DWORD dwBandID);
  1970. HRESULT GetBandObject([in] DWORD dwBandID, [in] REFIID riid, [out, iid_is(riid)] void **ppv);
  1971. HRESULT SetBandSiteInfo([in] const BANDSITEINFO *pbsinfo);
  1972. HRESULT GetBandSiteInfo([in, out] BANDSITEINFO *pbsinfo);
  1973. };
  1974. cpp_quote("#endif // _WIN32_IE >= 0x0400")
  1975. [
  1976. uuid(d92995f8-cf5e-4a76-bf59-ead39ea2b97e),
  1977. helpstring("shell name space walking callback interface"),
  1978. ]
  1979. interface INamespaceWalkCB : IUnknown
  1980. {
  1981. HRESULT FoundItem([in] IShellFolder *psf, [in] LPCITEMIDLIST pidl);
  1982. HRESULT EnterFolder([in] IShellFolder *psf, [in] LPCITEMIDLIST pidl);
  1983. HRESULT LeaveFolder([in] IShellFolder *psf, [in] LPCITEMIDLIST pidl);
  1984. HRESULT InitializeProgressDialog([out, string] LPWSTR *ppszTitle, [out, string] LPWSTR *ppszCancel);
  1985. };
  1986. [
  1987. uuid(57ced8a7-3f4a-432c-9350-30f24483f74f),
  1988. helpstring("shell name space walk, used to expand data objects, views or recurse folders"),
  1989. ]
  1990. interface INamespaceWalk : IUnknown
  1991. {
  1992. enum
  1993. {
  1994. NSWF_NONE_IMPLIES_ALL = 0x00000001,
  1995. NSWF_ONE_IMPLIES_ALL = 0x00000002,
  1996. NSWF_DONT_TRAVERSE_LINKS = 0x00000004,
  1997. NSWF_DONT_ACCUMULATE_RESULT = 0x00000008,
  1998. NSWF_TRAVERSE_STREAM_JUNCTIONS = 0x00000010,
  1999. NSWF_FILESYSTEM_ONLY = 0x00000020,
  2000. NSWF_SHOW_PROGRESS = 0x00000040,
  2001. NSWF_FLAG_VIEWORDER = 0x00000080,
  2002. NSWF_IGNORE_AUTOPLAY_HIDA = 0x00000100,
  2003. };
  2004. // punkToWalk can be an IShellView site, IShellFolder or IDataObject
  2005. HRESULT Walk([in] IUnknown *punkToWalk, [in] DWORD dwFlags, [in] int cDepth, [in] INamespaceWalkCB *pnswcb);
  2006. HRESULT GetIDArrayResult([out] UINT *pcItems, [out, size_is(sizeof(LPITEMIDLIST *)), length_is(*pcItems)] LPITEMIDLIST **pppidl);
  2007. };
  2008. [
  2009. uuid(A9521922-0812-4d44-9EC3-7FD38C726F3D),
  2010. helpstring("callback objects for CRegTreeOptions items"),
  2011. local
  2012. ]
  2013. interface IRegTreeItem : IUnknown
  2014. {
  2015. HRESULT GetCheckState([out] BOOL *pbCheck);
  2016. HRESULT SetCheckState([in] BOOL bCheck);
  2017. };
  2018. //-------------------------------------------------------------------------
  2019. //
  2020. // IMenuPopup interface
  2021. //
  2022. // This interface provides methods to navigate thru a menu.
  2023. //
  2024. // [Member functions]
  2025. //
  2026. // IMenuPopup::Popup(ppt, prcExclude, dwFlags)
  2027. // Invoke the menu, located at the point *ppt (in screen coordinates).
  2028. // The optional prcExclude points to the rectangle to exclude when
  2029. // positioning the menu, otherwise it should be NULL. dwFlags may be:
  2030. //
  2031. // MDBPU_SETFOCUS: the menu can take the focus.
  2032. //
  2033. // Returns S_OK if the object implements the popup menu as a modeless
  2034. // menu. Otherwise it returns S_FALSE, and the menu is finished.
  2035. //
  2036. // IMenuPopup::OnSelect(dwSelectType)
  2037. // This method handles selection notifications.
  2038. //
  2039. // IMenuPopup::SetSubMenu(pmp, fSet)
  2040. // Sets the given menu bar interface to be the submenu of this
  2041. // object's interface. Set fSet == FALSE to remove the submenu.
  2042. //
  2043. //-------------------------------------------------------------------------
  2044. // Type values for IMenuPopup::OnSelect
  2045. enum
  2046. {
  2047. MPOS_EXECUTE = 0, // Execute the selected menu item
  2048. MPOS_FULLCANCEL, // Cancel the entire menu
  2049. MPOS_CANCELLEVEL, // Cancel the current cascaded menu
  2050. MPOS_SELECTLEFT, // select one to the left of the cur selection
  2051. MPOS_SELECTRIGHT, // select one to the right of the cur selection
  2052. MPOS_CHILDTRACKING // the child got a tracking select (mouse moved over)
  2053. };
  2054. // Flags for IMenuPopup::Popup
  2055. enum
  2056. {
  2057. MPPF_SETFOCUS = 0x00000001, // Menu can take the focus
  2058. MPPF_INITIALSELECT = 0x00000002, // Select the first item
  2059. MPPF_NOANIMATE = 0x00000004, // Do not animate this show
  2060. MPPF_KEYBOARD = 0x00000010, // The menu is activated by keyboard
  2061. MPPF_REPOSITION = 0x00000020, // Resposition the displayed bar.
  2062. MPPF_FORCEZORDER = 0x00000040, // internal: Tells menubar to ignore Submenu positions
  2063. MPPF_FINALSELECT = 0x00000080, // Select the last item
  2064. MPPF_TOP = 0x20000000, // Popup menu up from point
  2065. MPPF_LEFT = 0x40000000, // Popup menu left from point
  2066. MPPF_RIGHT = 0x60000000, // Popup menu right from point
  2067. MPPF_BOTTOM = 0x80000000, // Popup menu below point
  2068. MPPF_POS_MASK = 0xE0000000 // Menu Position Mask
  2069. };
  2070. [
  2071. uuid(D1E7AFEB-6A2E-11d0-8C78-00C04FD918B4),
  2072. object,
  2073. pointer_default(unique),
  2074. local
  2075. ]
  2076. interface IMenuPopup : IDeskBar
  2077. {
  2078. HRESULT Popup([in] POINTL *ppt, [in] RECTL *prcExclude, DWORD dwFlags);
  2079. HRESULT OnSelect(DWORD dwSelectType);
  2080. HRESULT SetSubMenu([in] IMenuPopup* pmp, BOOL fSet);
  2081. };
  2082. // BindHandler GUIDs for IShellItem::BindToHandler (defined in shlguid.h)")
  2083. // BHID_SFObject restricts usage to IShellFolder::BindToObject()")
  2084. // BHID_SFUIObject restricts usage to IShellFolder::GetUIObjectOf()")
  2085. // BHID_SFViewObject restricts usage to IShellFolder::CreateViewObject()")
  2086. // BHID_LocalCopyHelper creates and initializes CLSID_LocalCopyHelper")
  2087. // BHID_LinkTargetItem CLSID_ShellItem initialized with the target this item (SFGAO_LINK only)")
  2088. // BHID_Storage attempts to get the stg/stm riid from BTO, but defaults to shell implementations on failure")
  2089. [
  2090. helpstring("Shell Namespace helper"),
  2091. uuid(43826d1e-e718-42ee-bc55-a1e261c37bfe),
  2092. object,
  2093. pointer_default(unique)
  2094. ]
  2095. interface IShellItem : IUnknown
  2096. {
  2097. HRESULT BindToHandler(
  2098. [in] IBindCtx *pbc,
  2099. [in] REFGUID rbhid,
  2100. [in] REFIID riid,
  2101. [out, iid_is(riid)] void **ppvOut);
  2102. HRESULT GetParent([out] IShellItem **ppsi);
  2103. typedef [v1_enum] enum
  2104. {
  2105. SIGDN_NORMALDISPLAY = 0x00000000,
  2106. SIGDN_PARENTRELATIVEPARSING = 0x80018001,
  2107. SIGDN_PARENTRELATIVEFORADDRESSBAR = 0x8001c001,
  2108. SIGDN_DESKTOPABSOLUTEPARSING = 0x80028000,
  2109. SIGDN_PARENTRELATIVEEDITING = 0x80031001,
  2110. SIGDN_DESKTOPABSOLUTEEDITING = 0x8004c000,
  2111. SIGDN_FILESYSPATH = 0x80058000,
  2112. SIGDN_URL = 0x80068000,
  2113. } SIGDN;
  2114. HRESULT GetDisplayName(
  2115. [in] SIGDN sigdnName,
  2116. [out, string] LPOLESTR *ppszName);
  2117. HRESULT GetAttributes(
  2118. [in] SFGAOF sfgaoMask,
  2119. [out] SFGAOF *psfgaoAttribs);
  2120. // SICHINT_DISPLAY iOrder based on display in a folder view
  2121. // SICHINT_ALLFIELDS exact instance compare
  2122. // SICHINT_CANONICAL iOrder based on canonical name (better performance)
  2123. [v1_enum] enum
  2124. {
  2125. SICHINT_DISPLAY = 0x00000000,
  2126. SICHINT_ALLFIELDS = 0x80000000,
  2127. SICHINT_CANONICAL = 0x10000000,
  2128. };
  2129. typedef DWORD SICHINTF;
  2130. HRESULT Compare(
  2131. [in] IShellItem *psi,
  2132. [in] SICHINTF hint,
  2133. [out] int *piOrder);
  2134. };
  2135. // image recompression object, given the cx, cy and a quality that we need go through the steps
  2136. // of creating a stream that we can give to somebody containing an image that size. if the
  2137. // image is < that size then return S_FALSE.
  2138. [
  2139. uuid(505f1513-6b3e-4892-a272-59f8889a4d3e),
  2140. helpstring("Image Recompression Object"),
  2141. pointer_default(unique),
  2142. object
  2143. ]
  2144. interface IImageRecompress : IUnknown
  2145. {
  2146. HRESULT RecompressImage(IShellItem *psi, int cx, int cy, int iQuality, IStorage *pstg, IStream **ppstrmOut);
  2147. }
  2148. [
  2149. helpstring("IDefViewSafety"),
  2150. uuid(9A93B3FB-4E75-4c74-871A-2CDA667F39A5),
  2151. object,
  2152. pointer_default(unique)
  2153. ]
  2154. interface IDefViewSafety : IUnknown
  2155. {
  2156. HRESULT IsSafePage();
  2157. };
  2158. [
  2159. uuid(0811AEBE-0B87-4C54-9E72-548CF649016B),
  2160. object,
  2161. pointer_default(unique)
  2162. ]
  2163. interface IContextMenuSite : IUnknown
  2164. {
  2165. HRESULT DoContextMenuPopup([in] IUnknown* punkContextMenu, [in] UINT fFlags, [in] POINT pt);
  2166. };
  2167. [
  2168. helpstring("Modal Window"),
  2169. uuid(b4db1657-70d7-485e-8e3e-6fcb5a5c1802),
  2170. object,
  2171. pointer_default(unique)
  2172. ]
  2173. interface IModalWindow : IUnknown
  2174. {
  2175. HRESULT Show([in] HWND hwndParent);
  2176. };
  2177. //
  2178. // Delegate Item IDs are in a partially known format so the delegate (inner) and
  2179. // delgating (outer) folders share the pidl contents. the inner folder allocates
  2180. // its pidls using the IMalloc provided by the outer folder via SetItemAlloc()
  2181. // that pidl must conform to the delegate item format.
  2182. //
  2183. cpp_quote("#include <pshpack1.h>")
  2184. typedef struct tagDELEGATEITEMID
  2185. {
  2186. WORD cbSize; // size of entire item ID (points to the NULL or next item)
  2187. WORD wOuter; // Private data owned by the outer folder
  2188. WORD cbInner; // Size of delegate's data
  2189. BYTE rgb[1]; // Inner folder's data (opaque to outer folder)
  2190. // followed by outer folder's data.
  2191. } DELEGATEITEMID;
  2192. cpp_quote("#include <poppack.h>")
  2193. cpp_quote("typedef const UNALIGNED DELEGATEITEMID *PCDELEGATEITEMID;")
  2194. cpp_quote("typedef UNALIGNED DELEGATEITEMID *PDELEGATEITEMID;")
  2195. [
  2196. helpstring("shell name space delegate folder interface"),
  2197. uuid(ADD8BA80-002B-11D0-8F0F-00C04FD7D062),
  2198. object,
  2199. pointer_default(unique)
  2200. ]
  2201. interface IDelegateFolder : IUnknown
  2202. {
  2203. // use to give the delegate folder the IMalloc interface that it
  2204. // needs to use to alloc and free item IDs.
  2205. // These IDs are in the form of DELEGATEITEMIDs
  2206. // and it is the delegates job to pack its data into the pidl
  2207. // in the delegate format
  2208. HRESULT SetItemAlloc([in] IMalloc *pmalloc);
  2209. };
  2210. cpp_quote("// INTERFACE: IBrowserFrameOptions")
  2211. cpp_quote("//")
  2212. cpp_quote("// This interface was implemented so a browser or host can ask a ShellView/ShelNameSpace what")
  2213. cpp_quote("// kind of 'Behavior' is appropriate for that view.")
  2214. cpp_quote("//")
  2215. cpp_quote("// IBrowserFrameOptions::GetBrowserOptions()")
  2216. cpp_quote("// dwMask is the logical OR of bits to look for. pdwOptions is not optional and")
  2217. cpp_quote("// it's return value will always equal or will be a subset of dwMask.")
  2218. cpp_quote("// If the function succeeds, the return value must be S_OK and pdwOptions needs to be filled in.")
  2219. cpp_quote("// If the function fails, pdwOptions needs to be filled in with BFO_NONE.")
  2220. cpp_quote("//")
  2221. [
  2222. uuid(10DF43C8-1DBE-11d3-8B34-006097DF5BD4),
  2223. object,
  2224. local
  2225. ]
  2226. interface IBrowserFrameOptions : IUnknown
  2227. {
  2228. typedef [unique] IBrowserFrameOptions * LPBROWSERFRAMEOPTIONS;
  2229. enum
  2230. {
  2231. BFO_NONE = 0x00000000, // Do nothing.
  2232. BFO_BROWSER_PERSIST_SETTINGS = 0x00000001, // Does this item want the browser stream? (Same window position as IE browser windows?)
  2233. BFO_RENAME_FOLDER_OPTIONS_TOINTERNET = 0x00000002, // Rename "Folder Options" to "Internet Options" in the Tools or View menu?
  2234. BFO_BOTH_OPTIONS = 0x00000004, // Keep both "Folder Options" and "Internet Options" in the Tools or View menu?
  2235. BIF_PREFER_INTERNET_SHORTCUT = 0x00000008, // NSE would prefer a .url shortcut over a .lnk shortcut
  2236. BFO_BROWSE_NO_IN_NEW_PROCESS = 0x00000010, // Specify this flag if you don't want the "Browse in New Process" via invoking a shortcut.
  2237. BFO_ENABLE_HYPERLINK_TRACKING = 0x00000020, // Does this NSE want it's display name tracked to determine when hyperlinks should be tagged as previously used?
  2238. BFO_USE_IE_OFFLINE_SUPPORT = 0x00000040, // Use "Internet Explorer"'s offline support?
  2239. BFO_SUBSTITUE_INTERNET_START_PAGE = 0x00000080, // Does this NSE want to use the Start Page support?
  2240. BFO_USE_IE_LOGOBANDING = 0x00000100, // Use the Brand block in the Toolbar. (Spinning globe or whatever it is this year)
  2241. BFO_ADD_IE_TOCAPTIONBAR = 0x00000200, // Should " - Internet Explorer" be appended to display name in the Captionbar
  2242. BFO_USE_DIALUP_REF = 0x00000400, // Should the DialUp ref count get a ref while the browse is navigated to this location? This will also enable the ICW and Software update.
  2243. BFO_USE_IE_TOOLBAR = 0x00000800, // Should the IE toolbar be used?
  2244. BFO_NO_PARENT_FOLDER_SUPPORT = 0x00001000, // Can you NOT navigate to a parent folder? Used for Backspace button to parent folder or the View.GoTo.ParentFolder feature.
  2245. BFO_NO_REOPEN_NEXT_RESTART = 0x00002000, // Browser windows are NOT reopened the next time the shell boots if the windows were left open on the previous logoff. Does this NSE want the same feature?
  2246. BFO_GO_HOME_PAGE = 0x00004000, // Add "Home Page" to menu (Go).
  2247. BFO_PREFER_IEPROCESS = 0x00008000, // prefers to use IEXPLORE.EXE over EXPLORER.EXE
  2248. BFO_SHOW_NAVIGATION_CANCELLED = 0x00010000, // If navigation is aborted, show the "Action Cancelled" HTML page.
  2249. BFO_USE_IE_STATUSBAR = 0x00020000, // Use the persisted IE status bar settings
  2250. BFO_QUERY_ALL = 0xFFFFFFFF, // Return all values set.
  2251. };
  2252. typedef DWORD BROWSERFRAMEOPTIONS;
  2253. HRESULT GetFrameOptions([in] BROWSERFRAMEOPTIONS dwMask, [out] BROWSERFRAMEOPTIONS * pdwOptions);
  2254. }
  2255. typedef enum tagNWMF
  2256. {
  2257. NWMF_UNLOADING = 0x0001, // The query is occuring during onBeforeUnload or onUnload
  2258. NWMF_USERINITED = 0x0002, // The query is occuring in the context of what trident considers to be a user initiated action
  2259. NWMF_FIRST = 0x0004, // This is the first query since the begining of the last user initiated action
  2260. NWMF_OVERRIDEKEY = 0x0008, // The override key was pressed at the time the query was made
  2261. NWMF_SHOWHELP = 0x0010, // New window is an HTML help window
  2262. NWMF_HTMLDIALOG = 0x0020, // New window is an HTML dialog
  2263. NWMF_FROMDIALOGCHILD = 0x0040, // Called from an HTML dialog - do not show UI in parent window
  2264. NWMF_USERREQUESTED = 0x0080, // There is no doubt the user requested this window (from RClick->Open in New Window, or Shift+Clicked a link)
  2265. NWMF_USERALLOWED = 0x0100, // This popup is the result of the user requesting a replay that resulted in a refresh
  2266. } NWMF;
  2267. // Popup manager interface for WebOC hosts and Trident.
  2268. cpp_quote("#define SID_SNewWindowManager IID_INewWindowManager")
  2269. [
  2270. uuid(D2BC4C84-3F72-4a52-A604-7BCBF3982CBB),
  2271. object,
  2272. pointer_default(unique)
  2273. ]
  2274. interface INewWindowManager : IUnknown
  2275. {
  2276. HRESULT EvaluateNewWindow([in] LPCWSTR pszUrl, [in] LPCWSTR pszName,
  2277. [in] LPCWSTR pszUrlContext, [in] LPCWSTR pszFeatures,
  2278. [in] BOOL fReplace, [in] DWORD dwFlags, [in] DWORD dwUserActionTime);
  2279. }
  2280. cpp_quote("#include <pshpack8.h>")
  2281. typedef struct tagSMDATA
  2282. {
  2283. DWORD dwMask; // SMDM_* values
  2284. DWORD dwFlags; // Not used
  2285. HMENU hmenu; // Static HMENU portion.
  2286. HWND hwnd; // HWND owning the HMENU
  2287. UINT uId; // Id of the item in the menu (-1 for menu itself)
  2288. UINT uIdParent; // Id of the item spawning this menu
  2289. UINT uIdAncestor; // Id of the very top item in the chain of ShellFolders
  2290. IUnknown* punk; // IUnkown of the menuband
  2291. LPITEMIDLIST pidlFolder; // pidl of the ShellFolder portion
  2292. LPITEMIDLIST pidlItem; // pidl of the item in the ShellFolder portion
  2293. IShellFolder* psf; // IShellFolder for the shell folder portion
  2294. void* pvUserData; // User defined Data associated with a pane.
  2295. } SMDATA, *LPSMDATA;
  2296. cpp_quote("// Mask")
  2297. cpp_quote("#define SMDM_SHELLFOLDER 0x00000001 // This is for an item in the band")
  2298. cpp_quote("#define SMDM_HMENU 0x00000002 // This is for the Band itself")
  2299. cpp_quote("#define SMDM_TOOLBAR 0x00000004 // Plain toolbar, not associated with a shell folder or hmenu")
  2300. cpp_quote("// Flags (bitmask)")
  2301. typedef struct tagSMINFO
  2302. {
  2303. DWORD dwMask; // SMIM_*
  2304. DWORD dwType; // SMIT_*
  2305. DWORD dwFlags; // SMIF_*
  2306. int iIcon;
  2307. } SMINFO, * PSMINFO;
  2308. typedef struct tagSHCSCHANGENOTIFYSTRUCT
  2309. {
  2310. LONG lEvent; // Change notify Event
  2311. LPCITEMIDLIST pidl1; // Pidl 1 Passed in from the Change notify
  2312. LPCITEMIDLIST pidl2; // Pidl 2 Passed in from the Change notify
  2313. } SMCSHCHANGENOTIFYSTRUCT, *PSMCSHCHANGENOTIFYSTRUCT;
  2314. cpp_quote("#include <poppack.h>") /* Return to byte packing */
  2315. // Mask flags
  2316. enum
  2317. {
  2318. SMIM_TYPE = 0x00000001,
  2319. SMIM_FLAGS = 0x00000002,
  2320. SMIM_ICON = 0x00000004
  2321. };
  2322. // Types for mbiinfo.dwType
  2323. enum
  2324. {
  2325. SMIT_SEPARATOR = 0x00000001,
  2326. SMIT_STRING = 0x00000002
  2327. };
  2328. // Flags for mbiinfo.dwFlags
  2329. enum
  2330. {
  2331. SMIF_ICON = 0x00000001, // Show an icon
  2332. SMIF_ACCELERATOR = 0x00000002, // Underline the character marked w/ '&'
  2333. SMIF_DROPTARGET = 0x00000004, // Item is a drop target
  2334. SMIF_SUBMENU = 0x00000008, // Item has a submenu
  2335. SMIF_CHECKED = 0x00000020, // Item has a Checkmark
  2336. SMIF_DROPCASCADE = 0x00000040, // Item can cascade out during drag/drop
  2337. SMIF_HIDDEN = 0x00000080, // Don't display item
  2338. SMIF_DISABLED = 0x00000100, // Should be unselectable. Gray.
  2339. SMIF_TRACKPOPUP = 0x00000200, // Should be unselectable. Gray.
  2340. SMIF_DEMOTED = 0x00000400, // Display item in "Demoted" state.
  2341. SMIF_ALTSTATE = 0x00000800, // Displayed in "Altered State"
  2342. SMIF_DRAGNDROP = 0x00001000, // If item that is being dragged hovers over an item for long enough then it SMC_EXECs that item
  2343. SMIF_NEW = 0x00002000, // Item is newly-installed or otherwise attractive (XP)
  2344. };
  2345. cpp_quote("#define SMC_INITMENU 0x00000001 // The callback is called to init a menuband")
  2346. cpp_quote("#define SMC_CREATE 0x00000002")
  2347. cpp_quote("#define SMC_EXITMENU 0x00000003 // The callback is called when menu is collapsing")
  2348. cpp_quote("#define SMC_GETINFO 0x00000005 // The callback is called to return DWORD values")
  2349. cpp_quote("#define SMC_GETSFINFO 0x00000006 // The callback is called to return DWORD values")
  2350. cpp_quote("#define SMC_GETOBJECT 0x00000007 // The callback is called to get some object")
  2351. cpp_quote("#define SMC_GETSFOBJECT 0x00000008 // The callback is called to get some object")
  2352. cpp_quote("#define SMC_SFEXEC 0x00000009 // The callback is called to execute an shell folder item")
  2353. cpp_quote("#define SMC_SFSELECTITEM 0x0000000A // The callback is called when an item is selected")
  2354. cpp_quote("#define SMC_REFRESH 0x00000010 // Menus have completely refreshed. Reset your state.")
  2355. cpp_quote("#define SMC_DEMOTE 0x00000011 // Demote an item")
  2356. cpp_quote("#define SMC_PROMOTE 0x00000012 // Promote an item, wParam = SMINV_* flag")
  2357. cpp_quote("#define SMC_DEFAULTICON 0x00000016 // Returns Default icon location in wParam, index in lParam")
  2358. cpp_quote("#define SMC_NEWITEM 0x00000017 // Notifies item is not in the order stream.")
  2359. cpp_quote("#define SMC_CHEVRONEXPAND 0x00000019 // Notifies of a expansion via the chevron")
  2360. cpp_quote("#define SMC_DISPLAYCHEVRONTIP 0x0000002A // S_OK display, S_FALSE not.")
  2361. cpp_quote("#define SMC_SETSFOBJECT 0x0000002D // Called to save the passed object")
  2362. cpp_quote("#define SMC_SHCHANGENOTIFY 0x0000002E // Called when a Change notify is received. lParam points to SMCSHCHANGENOTIFYSTRUCT")
  2363. cpp_quote("#define SMC_CHEVRONGETTIP 0x0000002F // Called to get the chevron tip text. wParam = Tip title, Lparam = TipText Both MAX_PATH")
  2364. cpp_quote("#define SMC_SFDDRESTRICTED 0x00000030 // Called requesting if it's ok to drop. wParam = IDropTarget.")
  2365. [
  2366. uuid(4CA300A1-9B8D-11d1-8B22-00C04FD918D0),
  2367. object,
  2368. pointer_default(unique),
  2369. local // cannot marshal because method has polymorphic parameters
  2370. ]
  2371. interface IShellMenuCallback : IUnknown
  2372. {
  2373. // psmd is [in,out] because SMC_MAPACCELERATOR returns a value in uId
  2374. HRESULT CallbackSM([in,out] LPSMDATA psmd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  2375. };
  2376. //-------------------------------------------------------------------------
  2377. // IAttachmentExecute
  2378. [
  2379. object,
  2380. uuid(73db1241-1e85-4581-8e4f-a81e1d0f8c57), // IID_IAttachmentExecute
  2381. local,
  2382. pointer_default(unique),
  2383. ]
  2384. interface IAttachmentExecute : IUnknown
  2385. {
  2386. //
  2387. // IAttachmentExecute - COM object designed to help client applications
  2388. // safely manage saving and opening attachments for users.
  2389. // clients are assumed to have some policy/settings already
  2390. // to determine the support and behavior for attachments.
  2391. // this API assumes that the client is interactive with the user
  2392. //
  2393. // ClientTitle - (optional) caller specific title for the prompt
  2394. // if unset, the prompts come with a default title of "File Download"
  2395. HRESULT SetClientTitle([in, string] LPCWSTR pszTitle);
  2396. // ClientGuid - (optional) for storing user specific settings
  2397. // someprompts are allowed to be avoided in the future if the user
  2398. // chooses. that choice is stored on per-client basis indexed by the ClientGuid
  2399. //
  2400. // Specific Example: In the User Trust Prompt there is a check box that is checked
  2401. // by default, but may be unchecked by the user. this option is stored under the ClientGuid
  2402. // based on the file type.
  2403. //
  2404. // ClearClientState() will reset any user options stored on the clients behalf.
  2405. HRESULT SetClientGuid([in] REFGUID guid);
  2406. // EVIDENCE properties
  2407. // LocalPath - (REQUIRED) path that would be passed to ShellExecute()
  2408. // if FileName was already used for the Check() and Prompt() calls,
  2409. // and the LocalPath points to a different handler than predicted,
  2410. // previous trust may be revoked, and the Policy and User trust re-verified.
  2411. HRESULT SetLocalPath([in, string] LPCWSTR pszLocalPath);
  2412. // FileName - (optional) proposed name (not path) to be used to construct LocalPath
  2413. // optionally use this if the caller wants to perform Check() before copying
  2414. // the file to the LocalPath. (eg, Check() proposed download)
  2415. HRESULT SetFileName([in, string] LPCWSTR pszFileName);
  2416. // Source - (optional) alternate identity path or URL for a file transfer
  2417. // used as the primary Zone determinant. if this is NULL default to the Restricted Zone.
  2418. // may also be used in the Prompt() UI for the "From" field
  2419. // may also be sent to handlers that can process URLs
  2420. HRESULT SetSource([in, string] LPCWSTR pszSource);
  2421. // Referrer - (optional) Zone determinant for container or link types
  2422. // only used for Zone/Policy
  2423. // container formats like ZIP and OLE packager use the Referrer to
  2424. // indicate indirect inheritance and avoid Zone elevation.
  2425. // Shortcuts can also use it to limit elevation based on parameters
  2426. HRESULT SetReferrer([in, string] LPCWSTR pszReferrer);
  2427. // CheckPolicy() - examines available evidence and checks the resultant policy
  2428. // * requires FileName or LocalPath
  2429. //
  2430. // Returns S_OK for enable
  2431. // S_FALSE for prompt
  2432. // FAILURE for disable
  2433. //
  2434. HRESULT CheckPolicy();
  2435. typedef enum tagATTACHMENT_PROMPT
  2436. {
  2437. ATTACHMENT_PROMPT_NONE = 0x0000,
  2438. ATTACHMENT_PROMPT_SAVE = 0x0001,
  2439. ATTACHMENT_PROMPT_EXEC = 0x0002,
  2440. ATTACHMENT_PROMPT_EXEC_OR_SAVE = 0x0003,
  2441. }ATTACHMENT_PROMPT;
  2442. typedef enum tagATTACHMENT_ACTION
  2443. {
  2444. ATTACHMENT_ACTION_CANCEL = 0x0000,
  2445. ATTACHMENT_ACTION_SAVE = 0x0001,
  2446. ATTACHMENT_ACTION_EXEC = 0x0002,
  2447. }ATTACHMENT_ACTION;
  2448. // Prompt() - application can force UI at an earlier point,
  2449. // even before the file has been copied to disk
  2450. // * requires FileName or LocalPath
  2451. HRESULT Prompt([in] HWND hwnd, [in] ATTACHMENT_PROMPT prompt, [out] ATTACHMENT_ACTION *paction);
  2452. // Save() - should always be called if LocalPath is in not in a temp dir
  2453. // * requires valid LocalPath
  2454. // * called after the file has been copied to LocalPath
  2455. // * may run virus scanners or other trust services to validate the file.
  2456. // these services may delete or alter the file
  2457. // * may attach evidence to the LocalPath
  2458. HRESULT Save();
  2459. // Execute() - will call Prompt() if necessary, with the EXEC action
  2460. // * requires valid LocalPath
  2461. // * called after the file has been copied to LocalPath
  2462. // * may run virus scanners or other trust services to validate the file.
  2463. // these services may delete or alter the file
  2464. // * may attach evidence to the LocalPath
  2465. //
  2466. // phProcess - if non-NULL Execute() will be synchronous and return an HPROCESS if available
  2467. // if null Execute() will be async, implies that you have a message pump and a long lived window
  2468. //
  2469. HRESULT Execute([in] HWND hwnd, [in, string] LPCWSTR pszVerb, HANDLE *phProcess);
  2470. // SaveWithUI() - superset of Save() that can show modal error UI, but still does not call Prompt()
  2471. // * requires valid LocalPath
  2472. // * called after the file has been copied to LocalPath
  2473. // * may run virus scanners or other trust services to validate the file.
  2474. // these services may delete or alter the file
  2475. // * may attach evidence to the LocalPath
  2476. HRESULT SaveWithUI(HWND hwnd);
  2477. // ClearClientState() - removes any state that is stored based on the ClientGuid
  2478. // * requires SetClientGuid() to be called first
  2479. HRESULT ClearClientState();
  2480. };
  2481. //
  2482. // IShellMenu interface
  2483. //
  2484. //-------------------------------------------------------------------------
  2485. cpp_quote("#define SMINIT_DEFAULT 0x00000000 // No Options")
  2486. cpp_quote("#define SMINIT_RESTRICT_DRAGDROP 0x00000002 // Don't allow Drag and Drop")
  2487. cpp_quote("#define SMINIT_TOPLEVEL 0x00000004 // This is the top band.")
  2488. cpp_quote("#define SMINIT_CACHED 0x00000010")
  2489. // These are mutually Exclusive
  2490. cpp_quote("#define SMINIT_VERTICAL 0x10000000 // This is a vertical menu")
  2491. cpp_quote("#define SMINIT_HORIZONTAL 0x20000000 // This is a horizontal menu (does not inherit)")
  2492. cpp_quote("#define ANCESTORDEFAULT (UINT)-1")
  2493. cpp_quote("#define SMSET_TOP 0x10000000 // Bias this namespace to the top of the menu")
  2494. cpp_quote("#define SMSET_BOTTOM 0x20000000 // Bias this namespace to the bottom of the menu")
  2495. cpp_quote("#define SMSET_DONTOWN 0x00000001 // The Menuband doesn't own the non-ref counted object")
  2496. // and should not destroy it.
  2497. cpp_quote("#define SMINV_REFRESH 0x00000001")
  2498. cpp_quote("#define SMINV_ID 0x00000008")
  2499. [
  2500. uuid(EE1F7637-E138-11d1-8379-00C04FD918D0),
  2501. object,
  2502. pointer_default(unique), /* some of our pointers can be NULL (as noted) */
  2503. local
  2504. ]
  2505. interface IShellMenu : IUnknown
  2506. {
  2507. HRESULT Initialize([in] IShellMenuCallback* psmc, UINT uId, UINT uIdAncestor, DWORD dwFlags);
  2508. HRESULT GetMenuInfo([out] IShellMenuCallback** ppsmc, [out] UINT* puId, [out] UINT* puIdAncestor, [out] DWORD* pdwFlags);
  2509. HRESULT SetShellFolder(IShellFolder* psf, [in] LPCITEMIDLIST pidlFolder, HKEY hKey, DWORD dwFlags);
  2510. HRESULT GetShellFolder([out] DWORD* pdwFlags, [out] LPITEMIDLIST* ppidl, [in] REFIID riid, [out, iid_is(riid)] void** ppv);
  2511. HRESULT SetMenu([in] HMENU hmenu, [in] HWND hwnd, DWORD dwFlags);
  2512. HRESULT GetMenu([out /* can be null */] HMENU* phmenu, [out /* can be null */] HWND* phwnd, [out /* can be null */] DWORD* pdwFlags);
  2513. HRESULT InvalidateItem([in /* can be null */] LPSMDATA psmd, DWORD dwFlags);
  2514. HRESULT GetState([out] LPSMDATA psmd);
  2515. HRESULT SetMenuToolbar([in] IUnknown* punk, DWORD dwFlags);
  2516. };
  2517. //
  2518. // NOTE - this typelib is never registered anywhere
  2519. // objects that want their typelibs to be registered
  2520. // in shell32 should add their coclass to shldisp.idl
  2521. //
  2522. [
  2523. uuid(50a7e9b1-70ef-11d1-b75a-00a0c90564fe), // LIBID_ShellObjects
  2524. helpstring("Microsoft Shell Objects"),
  2525. lcid(0x0000),
  2526. version(1.0)
  2527. ]
  2528. library ShellObjects
  2529. {
  2530. // CLSID_QueryCancelAutoPlay
  2531. [ uuid(331F1768-05A9-4ddd-B86E-DAE34DDC998A) ] coclass QueryCancelAutoPlay { interface IQueryCancelAutoPlay; }
  2532. // CLSID_DriveSizeCategorizer
  2533. [ uuid(94357B53-CA29-4b78-83AE-E8FE7409134F) ] coclass DriveSizeCategorizer { interface ICategorizer; }
  2534. // CLSID_DriveTypeCategorizer
  2535. [ uuid(B0A8F3CF-4333-4bab-8873-1CCB1CADA48B) ] coclass DriveTypeCategorizer { interface ICategorizer; }
  2536. // CLSID_FreeSpaceCategorizer
  2537. [ uuid(B5607793-24AC-44c7-82E2-831726AA6CB7) ] coclass FreeSpaceCategorizer { interface ICategorizer; }
  2538. // CLSID_TimeCategorizer
  2539. [ uuid(3bb4118f-ddfd-4d30-a348-9fb5d6bf1afe) ] coclass TimeCategorizer { interface ICategorizer; }
  2540. // CLSID_SizeCategorizer
  2541. [ uuid(55d7b852-f6d1-42f2-aa75-8728a1b2d264) ] coclass SizeCategorizer { interface ICategorizer; }
  2542. // CLSID_AlphabeticalCategorizer
  2543. [ uuid(3c2654c6-7372-4f6b-b310-55d6128f49d2) ] coclass AlphabeticalCategorizer { interface ICategorizer; }
  2544. // CLSID_MergedCategorizer
  2545. [ uuid(8e827c11-33e7-4bc1-b242-8cd9a1c2b304) ] coclass MergedCategorizer { interface ICategorizer; }
  2546. // CLSID_ImageProperties
  2547. [ uuid(7ab770c7-0e23-4d7a-8aa2-19bfad479829) ] coclass ImageProperties { interface IPersistFile; }
  2548. // CLSID_ImageProperties
  2549. [ uuid(d912f8cf-0396-4915-884e-fb425d32943b) ] coclass PropertiesUI { interface IPropertyUI; }
  2550. // CLSID_UserNotification
  2551. [ uuid(0010890e-8789-413c-adbc-48f5b511b3af) ] coclass UserNotification { interface IUserNotification; }
  2552. // CLSID_UserEventTimerCallback
  2553. [ uuid(15fffd13-5140-41b8-b89a-c8d5759cd2b2) ] coclass UserEventTimerCallback { interface IUserEventTimerCallback; }
  2554. // CLSID_UserEventTimer
  2555. [ uuid(864A1288-354C-4D19-9D68-C2742BB14997) ] coclass UserEventTimer { interface IUserEventTimer; }
  2556. // CLSID_NetCrawler
  2557. [ uuid(601ac3dc-786a-4eb0-bf40-ee3521e70bfb) ] coclass NetCrawler { interface INetCrawler; }
  2558. // CLSID_CDBurn
  2559. [ uuid(fbeb8a05-beee-4442-804e-409d6c4515e9) ] coclass CDBurn { interface ICDBurn; }
  2560. // CLSID_TaskbarList
  2561. [ uuid(56FDF344-FD6D-11d0-958A-006097C9A090) ] coclass TaskbarList { interface ITaskbarList; }
  2562. // For supporting HTML wizard extensions we provide this object, it implements the IWizardExtenion
  2563. // and allows the site to specific via an IPropertyBag an URL which should be displayed. The property
  2564. // bag is requested from the SID_WebWizardHost, and it used inturn to return parameter information
  2565. // back to the site (eg. any information that the displayed HTML would like to communicate).
  2566. // CLSID_WebWizardHost
  2567. [ uuid(c827f149-55c1-4d28-935e-57e47caed973) ] coclass WebWizardHost { interface IWebWizardExtension; }
  2568. // CLSID_PublishDropTarget
  2569. [ uuid(CC6EEFFB-43F6-46c5-9619-51D571967F7D) ] coclass PublishDropTarget { interface IDropTarget; }
  2570. // CLSID_PublishingWizard
  2571. [ uuid(6b33163c-76a5-4b6c-bf21-45de9cd503a1) ] coclass PublishingWizard { interface IPublishingWizard; }
  2572. cpp_quote("#define SID_PublishingWizard CLSID_PublishingWizard")
  2573. // CLSID_InternetPrintOrdering
  2574. [ uuid(add36aa8-751a-4579-a266-d66f5202ccbb) ] coclass InternetPrintOrdering { interface IDropTarget; }
  2575. // CLSID_FolderViewHost
  2576. [ uuid(20b1cb23-6968-4eb9-b7d4-a66d00d07cee) ] coclass FolderViewHost { interface IFolderViewHost; }
  2577. // CLSID_NamespaceWalker
  2578. [ uuid(72eb61e0-8672-4303-9175-f2e4c68b2e7c) ] coclass NamespaceWalker { interface INamespaceWalk; }
  2579. // CLSID_ImageRecompress
  2580. [ uuid(6e33091c-d2f8-4740-b55e-2e11d1477a2c) ] coclass ImageRecompress { interface IImageRecompress; }
  2581. // CLSID_TrayBandSiteService
  2582. [ uuid(F60AD0A0-E5E1-45cb-B51A-E15B9F8B2934) ] coclass TrayBandSiteService { interface IBandSite; }
  2583. // CLSID_PassportWizard
  2584. [ uuid(58f1f272-9240-4f51-b6d4-fd63d1618591) ] coclass PassportWizard { interface IPassportWizard; }
  2585. // CLSID_AttachmentServices
  2586. [ uuid(4125dd96-e03a-4103-8f70-e0597d803b9c) ] coclass AttachmentServices { interface IAttachmentExecute; }
  2587. };