shappmgr.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __shappmgr_h__
  19. #define __shappmgr_h__
  20. #ifndef __IShellApp_FWD_DEFINED__
  21. #define __IShellApp_FWD_DEFINED__
  22. typedef struct IShellApp IShellApp;
  23. #endif
  24. #ifndef __IPublishedApp_FWD_DEFINED__
  25. #define __IPublishedApp_FWD_DEFINED__
  26. typedef struct IPublishedApp IPublishedApp;
  27. #endif
  28. #ifndef __IEnumPublishedApps_FWD_DEFINED__
  29. #define __IEnumPublishedApps_FWD_DEFINED__
  30. typedef struct IEnumPublishedApps IEnumPublishedApps;
  31. #endif
  32. #ifndef __IAppPublisher_FWD_DEFINED__
  33. #define __IAppPublisher_FWD_DEFINED__
  34. typedef struct IAppPublisher IAppPublisher;
  35. #endif
  36. #include "oaidl.h"
  37. #include "ocidl.h"
  38. #include "appmgmt.h"
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. #ifndef __MIDL_user_allocate_free_DEFINED__
  43. #define __MIDL_user_allocate_free_DEFINED__
  44. void *__RPC_API MIDL_user_allocate(size_t);
  45. void __RPC_API MIDL_user_free(void *);
  46. #endif
  47. #ifndef _SHAPPMGR_H_
  48. #define _SHAPPMGR_H_
  49. extern RPC_IF_HANDLE __MIDL_itf_shappmgr_0000_v0_0_c_ifspec;
  50. extern RPC_IF_HANDLE __MIDL_itf_shappmgr_0000_v0_0_s_ifspec;
  51. #ifndef __IShellApp_INTERFACE_DEFINED__
  52. #define __IShellApp_INTERFACE_DEFINED__
  53. typedef enum _tagAppInfoFlags {
  54. AIM_DISPLAYNAME = 0x1,AIM_VERSION = 0x2,AIM_PUBLISHER = 0x4,AIM_PRODUCTID = 0x8,AIM_REGISTEREDOWNER = 0x10,AIM_REGISTEREDCOMPANY = 0x20,
  55. AIM_LANGUAGE = 0x40,AIM_SUPPORTURL = 0x80,AIM_SUPPORTTELEPHONE = 0x100,AIM_HELPLINK = 0x200,AIM_INSTALLLOCATION = 0x400,AIM_INSTALLSOURCE = 0x800,
  56. AIM_INSTALLDATE = 0x1000,AIM_CONTACT = 0x4000,AIM_COMMENTS = 0x8000,AIM_IMAGE = 0x20000,AIM_READMEURL = 0x40000,AIM_UPDATEINFOURL = 0x80000
  57. } APPINFODATAFLAGS;
  58. typedef struct _AppInfoData {
  59. DWORD cbSize;
  60. DWORD dwMask;
  61. LPWSTR pszDisplayName;
  62. LPWSTR pszVersion;
  63. LPWSTR pszPublisher;
  64. LPWSTR pszProductID;
  65. LPWSTR pszRegisteredOwner;
  66. LPWSTR pszRegisteredCompany;
  67. LPWSTR pszLanguage;
  68. LPWSTR pszSupportUrl;
  69. LPWSTR pszSupportTelephone;
  70. LPWSTR pszHelpLink;
  71. LPWSTR pszInstallLocation;
  72. LPWSTR pszInstallSource;
  73. LPWSTR pszInstallDate;
  74. LPWSTR pszContact;
  75. LPWSTR pszComments;
  76. LPWSTR pszImage;
  77. LPWSTR pszReadmeUrl;
  78. LPWSTR pszUpdateInfoUrl;
  79. } APPINFODATA;
  80. typedef struct _AppInfoData *PAPPINFODATA;
  81. typedef enum _tagAppActionFlags {
  82. APPACTION_INSTALL = 0x1,APPACTION_UNINSTALL = 0x2,APPACTION_MODIFY = 0x4,APPACTION_REPAIR = 0x8,APPACTION_UPGRADE = 0x10,
  83. APPACTION_CANGETSIZE = 0x20,APPACTION_MODIFYREMOVE = 0x80,APPACTION_ADDLATER = 0x100,APPACTION_UNSCHEDULE = 0x200
  84. } APPACTIONFLAGS;
  85. typedef struct _tagSlowAppInfo {
  86. ULONGLONG ullSize;
  87. FILETIME ftLastUsed;
  88. int iTimesUsed;
  89. LPWSTR pszImage;
  90. } SLOWAPPINFO;
  91. typedef struct _tagSlowAppInfo *PSLOWAPPINFO;
  92. EXTERN_C const IID IID_IShellApp;
  93. #if defined(__cplusplus) && !defined(CINTERFACE)
  94. struct IShellApp : public IUnknown {
  95. public:
  96. virtual HRESULT WINAPI GetAppInfo(PAPPINFODATA pai) = 0;
  97. virtual HRESULT WINAPI GetPossibleActions(DWORD *pdwActions) = 0;
  98. virtual HRESULT WINAPI GetSlowAppInfo(PSLOWAPPINFO psaid) = 0;
  99. virtual HRESULT WINAPI GetCachedSlowAppInfo(PSLOWAPPINFO psaid) = 0;
  100. virtual HRESULT WINAPI IsInstalled(void) = 0;
  101. };
  102. #else
  103. typedef struct IShellAppVtbl {
  104. BEGIN_INTERFACE
  105. HRESULT (WINAPI *QueryInterface)(IShellApp *This,REFIID riid,void **ppvObject);
  106. ULONG (WINAPI *AddRef)(IShellApp *This);
  107. ULONG (WINAPI *Release)(IShellApp *This);
  108. HRESULT (WINAPI *GetAppInfo)(IShellApp *This,PAPPINFODATA pai);
  109. HRESULT (WINAPI *GetPossibleActions)(IShellApp *This,DWORD *pdwActions);
  110. HRESULT (WINAPI *GetSlowAppInfo)(IShellApp *This,PSLOWAPPINFO psaid);
  111. HRESULT (WINAPI *GetCachedSlowAppInfo)(IShellApp *This,PSLOWAPPINFO psaid);
  112. HRESULT (WINAPI *IsInstalled)(IShellApp *This);
  113. END_INTERFACE
  114. } IShellAppVtbl;
  115. struct IShellApp {
  116. CONST_VTBL struct IShellAppVtbl *lpVtbl;
  117. };
  118. #ifdef COBJMACROS
  119. #define IShellApp_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  120. #define IShellApp_AddRef(This) (This)->lpVtbl->AddRef(This)
  121. #define IShellApp_Release(This) (This)->lpVtbl->Release(This)
  122. #define IShellApp_GetAppInfo(This,pai) (This)->lpVtbl->GetAppInfo(This,pai)
  123. #define IShellApp_GetPossibleActions(This,pdwActions) (This)->lpVtbl->GetPossibleActions(This,pdwActions)
  124. #define IShellApp_GetSlowAppInfo(This,psaid) (This)->lpVtbl->GetSlowAppInfo(This,psaid)
  125. #define IShellApp_GetCachedSlowAppInfo(This,psaid) (This)->lpVtbl->GetCachedSlowAppInfo(This,psaid)
  126. #define IShellApp_IsInstalled(This) (This)->lpVtbl->IsInstalled(This)
  127. #endif
  128. #endif
  129. HRESULT WINAPI IShellApp_GetAppInfo_Proxy(IShellApp *This,PAPPINFODATA pai);
  130. void __RPC_STUB IShellApp_GetAppInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  131. HRESULT WINAPI IShellApp_GetPossibleActions_Proxy(IShellApp *This,DWORD *pdwActions);
  132. void __RPC_STUB IShellApp_GetPossibleActions_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  133. HRESULT WINAPI IShellApp_GetSlowAppInfo_Proxy(IShellApp *This,PSLOWAPPINFO psaid);
  134. void __RPC_STUB IShellApp_GetSlowAppInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  135. HRESULT WINAPI IShellApp_GetCachedSlowAppInfo_Proxy(IShellApp *This,PSLOWAPPINFO psaid);
  136. void __RPC_STUB IShellApp_GetCachedSlowAppInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  137. HRESULT WINAPI IShellApp_IsInstalled_Proxy(IShellApp *This);
  138. void __RPC_STUB IShellApp_IsInstalled_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  139. #endif
  140. #ifndef __IPublishedApp_INTERFACE_DEFINED__
  141. #define __IPublishedApp_INTERFACE_DEFINED__
  142. typedef enum _tagPublishedAppInfoFlags {
  143. PAI_SOURCE = 0x1,PAI_ASSIGNEDTIME = 0x2,PAI_PUBLISHEDTIME = 0x4,PAI_SCHEDULEDTIME = 0x8,PAI_EXPIRETIME = 0x10
  144. } PUBAPPINFOFLAGS;
  145. typedef struct _PubAppInfo {
  146. DWORD cbSize;
  147. DWORD dwMask;
  148. LPWSTR pszSource;
  149. SYSTEMTIME stAssigned;
  150. SYSTEMTIME stPublished;
  151. SYSTEMTIME stScheduled;
  152. SYSTEMTIME stExpire;
  153. } PUBAPPINFO;
  154. typedef struct _PubAppInfo *PPUBAPPINFO;
  155. EXTERN_C const IID IID_IPublishedApp;
  156. #if defined(__cplusplus) && !defined(CINTERFACE)
  157. struct IPublishedApp : public IShellApp {
  158. public:
  159. virtual HRESULT WINAPI Install(LPSYSTEMTIME pstInstall) = 0;
  160. virtual HRESULT WINAPI GetPublishedAppInfo(PPUBAPPINFO ppai) = 0;
  161. virtual HRESULT WINAPI Unschedule(void) = 0;
  162. };
  163. #else
  164. typedef struct IPublishedAppVtbl {
  165. BEGIN_INTERFACE
  166. HRESULT (WINAPI *QueryInterface)(IPublishedApp *This,REFIID riid,void **ppvObject);
  167. ULONG (WINAPI *AddRef)(IPublishedApp *This);
  168. ULONG (WINAPI *Release)(IPublishedApp *This);
  169. HRESULT (WINAPI *GetAppInfo)(IPublishedApp *This,PAPPINFODATA pai);
  170. HRESULT (WINAPI *GetPossibleActions)(IPublishedApp *This,DWORD *pdwActions);
  171. HRESULT (WINAPI *GetSlowAppInfo)(IPublishedApp *This,PSLOWAPPINFO psaid);
  172. HRESULT (WINAPI *GetCachedSlowAppInfo)(IPublishedApp *This,PSLOWAPPINFO psaid);
  173. HRESULT (WINAPI *IsInstalled)(IPublishedApp *This);
  174. HRESULT (WINAPI *Install)(IPublishedApp *This,LPSYSTEMTIME pstInstall);
  175. HRESULT (WINAPI *GetPublishedAppInfo)(IPublishedApp *This,PPUBAPPINFO ppai);
  176. HRESULT (WINAPI *Unschedule)(IPublishedApp *This);
  177. END_INTERFACE
  178. } IPublishedAppVtbl;
  179. struct IPublishedApp {
  180. CONST_VTBL struct IPublishedAppVtbl *lpVtbl;
  181. };
  182. #ifdef COBJMACROS
  183. #define IPublishedApp_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  184. #define IPublishedApp_AddRef(This) (This)->lpVtbl->AddRef(This)
  185. #define IPublishedApp_Release(This) (This)->lpVtbl->Release(This)
  186. #define IPublishedApp_GetAppInfo(This,pai) (This)->lpVtbl->GetAppInfo(This,pai)
  187. #define IPublishedApp_GetPossibleActions(This,pdwActions) (This)->lpVtbl->GetPossibleActions(This,pdwActions)
  188. #define IPublishedApp_GetSlowAppInfo(This,psaid) (This)->lpVtbl->GetSlowAppInfo(This,psaid)
  189. #define IPublishedApp_GetCachedSlowAppInfo(This,psaid) (This)->lpVtbl->GetCachedSlowAppInfo(This,psaid)
  190. #define IPublishedApp_IsInstalled(This) (This)->lpVtbl->IsInstalled(This)
  191. #define IPublishedApp_Install(This,pstInstall) (This)->lpVtbl->Install(This,pstInstall)
  192. #define IPublishedApp_GetPublishedAppInfo(This,ppai) (This)->lpVtbl->GetPublishedAppInfo(This,ppai)
  193. #define IPublishedApp_Unschedule(This) (This)->lpVtbl->Unschedule(This)
  194. #endif
  195. #endif
  196. HRESULT WINAPI IPublishedApp_Install_Proxy(IPublishedApp *This,LPSYSTEMTIME pstInstall);
  197. void __RPC_STUB IPublishedApp_Install_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  198. HRESULT WINAPI IPublishedApp_GetPublishedAppInfo_Proxy(IPublishedApp *This,PPUBAPPINFO ppai);
  199. void __RPC_STUB IPublishedApp_GetPublishedAppInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  200. HRESULT WINAPI IPublishedApp_Unschedule_Proxy(IPublishedApp *This);
  201. void __RPC_STUB IPublishedApp_Unschedule_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  202. #endif
  203. #ifndef __IEnumPublishedApps_INTERFACE_DEFINED__
  204. #define __IEnumPublishedApps_INTERFACE_DEFINED__
  205. EXTERN_C const IID IID_IEnumPublishedApps;
  206. #if defined(__cplusplus) && !defined(CINTERFACE)
  207. struct IEnumPublishedApps : public IUnknown {
  208. public:
  209. virtual HRESULT WINAPI Next(IPublishedApp **pia) = 0;
  210. virtual HRESULT WINAPI Reset(void) = 0;
  211. };
  212. #else
  213. typedef struct IEnumPublishedAppsVtbl {
  214. BEGIN_INTERFACE
  215. HRESULT (WINAPI *QueryInterface)(IEnumPublishedApps *This,REFIID riid,void **ppvObject);
  216. ULONG (WINAPI *AddRef)(IEnumPublishedApps *This);
  217. ULONG (WINAPI *Release)(IEnumPublishedApps *This);
  218. HRESULT (WINAPI *Next)(IEnumPublishedApps *This,IPublishedApp **pia);
  219. HRESULT (WINAPI *Reset)(IEnumPublishedApps *This);
  220. END_INTERFACE
  221. } IEnumPublishedAppsVtbl;
  222. struct IEnumPublishedApps {
  223. CONST_VTBL struct IEnumPublishedAppsVtbl *lpVtbl;
  224. };
  225. #ifdef COBJMACROS
  226. #define IEnumPublishedApps_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  227. #define IEnumPublishedApps_AddRef(This) (This)->lpVtbl->AddRef(This)
  228. #define IEnumPublishedApps_Release(This) (This)->lpVtbl->Release(This)
  229. #define IEnumPublishedApps_Next(This,pia) (This)->lpVtbl->Next(This,pia)
  230. #define IEnumPublishedApps_Reset(This) (This)->lpVtbl->Reset(This)
  231. #endif
  232. #endif
  233. HRESULT WINAPI IEnumPublishedApps_Next_Proxy(IEnumPublishedApps *This,IPublishedApp **pia);
  234. void __RPC_STUB IEnumPublishedApps_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  235. HRESULT WINAPI IEnumPublishedApps_Reset_Proxy(IEnumPublishedApps *This);
  236. void __RPC_STUB IEnumPublishedApps_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  237. #endif
  238. #ifndef __IAppPublisher_INTERFACE_DEFINED__
  239. #define __IAppPublisher_INTERFACE_DEFINED__
  240. EXTERN_C const IID IID_IAppPublisher;
  241. #if defined(__cplusplus) && !defined(CINTERFACE)
  242. struct IAppPublisher : public IUnknown {
  243. public:
  244. virtual HRESULT WINAPI GetNumberOfCategories(DWORD *pdwCat) = 0;
  245. virtual HRESULT WINAPI GetCategories(APPCATEGORYINFOLIST *pAppCategoryList) = 0;
  246. virtual HRESULT WINAPI GetNumberOfApps(DWORD *pdwApps) = 0;
  247. virtual HRESULT WINAPI EnumApps(GUID *pAppCategoryId,IEnumPublishedApps **ppepa) = 0;
  248. };
  249. #else
  250. typedef struct IAppPublisherVtbl {
  251. BEGIN_INTERFACE
  252. HRESULT (WINAPI *QueryInterface)(IAppPublisher *This,REFIID riid,void **ppvObject);
  253. ULONG (WINAPI *AddRef)(IAppPublisher *This);
  254. ULONG (WINAPI *Release)(IAppPublisher *This);
  255. HRESULT (WINAPI *GetNumberOfCategories)(IAppPublisher *This,DWORD *pdwCat);
  256. HRESULT (WINAPI *GetCategories)(IAppPublisher *This,APPCATEGORYINFOLIST *pAppCategoryList);
  257. HRESULT (WINAPI *GetNumberOfApps)(IAppPublisher *This,DWORD *pdwApps);
  258. HRESULT (WINAPI *EnumApps)(IAppPublisher *This,GUID *pAppCategoryId,IEnumPublishedApps **ppepa);
  259. END_INTERFACE
  260. } IAppPublisherVtbl;
  261. struct IAppPublisher {
  262. CONST_VTBL struct IAppPublisherVtbl *lpVtbl;
  263. };
  264. #ifdef COBJMACROS
  265. #define IAppPublisher_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  266. #define IAppPublisher_AddRef(This) (This)->lpVtbl->AddRef(This)
  267. #define IAppPublisher_Release(This) (This)->lpVtbl->Release(This)
  268. #define IAppPublisher_GetNumberOfCategories(This,pdwCat) (This)->lpVtbl->GetNumberOfCategories(This,pdwCat)
  269. #define IAppPublisher_GetCategories(This,pAppCategoryList) (This)->lpVtbl->GetCategories(This,pAppCategoryList)
  270. #define IAppPublisher_GetNumberOfApps(This,pdwApps) (This)->lpVtbl->GetNumberOfApps(This,pdwApps)
  271. #define IAppPublisher_EnumApps(This,pAppCategoryId,ppepa) (This)->lpVtbl->EnumApps(This,pAppCategoryId,ppepa)
  272. #endif
  273. #endif
  274. HRESULT WINAPI IAppPublisher_GetNumberOfCategories_Proxy(IAppPublisher *This,DWORD *pdwCat);
  275. void __RPC_STUB IAppPublisher_GetNumberOfCategories_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  276. HRESULT WINAPI IAppPublisher_GetCategories_Proxy(IAppPublisher *This,APPCATEGORYINFOLIST *pAppCategoryList);
  277. void __RPC_STUB IAppPublisher_GetCategories_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  278. HRESULT WINAPI IAppPublisher_GetNumberOfApps_Proxy(IAppPublisher *This,DWORD *pdwApps);
  279. void __RPC_STUB IAppPublisher_GetNumberOfApps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  280. HRESULT WINAPI IAppPublisher_EnumApps_Proxy(IAppPublisher *This,GUID *pAppCategoryId,IEnumPublishedApps **ppepa);
  281. void __RPC_STUB IAppPublisher_EnumApps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  282. #endif
  283. #endif
  284. extern RPC_IF_HANDLE __MIDL_itf_shappmgr_0266_v0_0_c_ifspec;
  285. extern RPC_IF_HANDLE __MIDL_itf_shappmgr_0266_v0_0_s_ifspec;
  286. #ifdef __cplusplus
  287. }
  288. #endif
  289. #endif