Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/uso_trigger/MiniUsoClient.h
Views: 11766
#pragma once12#include <comdef.h>3#pragma comment(lib, "rpcrt4.lib")45typedef enum UsoAction {6USO_STARTSCAN,7USO_STARTDOWNLOAD,8USO_STARTINSTALL,9USO_REFRESHSETTINGS,10USO_STARTINTERACTIVESCAN,11USO_RESTARTDEVICE,12USO_SCANINSTALLWAIT,13USO_RESUMEUPDATE14} UsoAction;1516class MiniUsoClient17{18private:19bool _ready = false;20void ThrowOnError(HRESULT hResult);2122public:23MiniUsoClient();24~MiniUsoClient();2526public:27bool Run(UsoAction action);28};2930struct Struct_5 {31int Member0;32int Member4;33};3435struct Struct_23 {36GUID Member0;37int Member10;38};3940struct Struct_24 {41int Member0;42int Member4;43int Member8;44};4546struct Struct_25 {47int Member0;48int Member4;49};5051struct Struct_26 {52int Member0;53int Member4;54struct Struct_5 Member8;55struct Struct_25 Member10;56};5758struct Struct_33 {59int Member0;60int Member4;61};6263struct Struct_49 {64short Member0;65short Member2;66short Member4;67short Member6;68short Member8;69short MemberA;70short MemberC;71short MemberE;72};7374class __declspec(uuid("d960b85b-11b6-4442-a45c-771283ed293a")) IUsoUpdate : public IUnknown {75public:76virtual HRESULT __stdcall Proc3(struct Struct_26* p0) = 0;77virtual HRESULT __stdcall Proc4(int* p0) = 0;78virtual HRESULT __stdcall Proc5(int* p0) = 0;79virtual HRESULT __stdcall Proc6(BSTR* p0) = 0;80virtual HRESULT __stdcall Proc7(BSTR* p0) = 0;81virtual HRESULT __stdcall Proc8(short* p0) = 0;82virtual HRESULT __stdcall Proc9(struct Struct_23* p0) = 0;83virtual HRESULT __stdcall Proc10(BSTR* p0, int* p1) = 0; // HRESULT Proc10(/* Stack Offset: 8 */ [Out] /* C:(FC_TOP_LEVEL_CONFORMANCE)(16)(FC_DEREFERENCE)(FC_LONG)(0) */ BSTR[]* p0, /* Stack Offset: 16 */ [Out] int* p1);84virtual HRESULT __stdcall Proc11(BSTR* p0) = 0;85virtual HRESULT __stdcall Proc12(double* p0) = 0;86virtual HRESULT __stdcall Proc13(VARIANT* p0) = 0;87virtual HRESULT __stdcall Proc14(BSTR* p0) = 0;88virtual HRESULT __stdcall Proc15(long* p0) = 0;89virtual HRESULT __stdcall Proc16(long* p0) = 0;90virtual HRESULT __stdcall Proc17(long* p0) = 0;91virtual HRESULT __stdcall Proc18() = 0;92virtual HRESULT __stdcall Proc19(BSTR p0, VARIANT* p1) = 0;93virtual HRESULT __stdcall Proc20(BSTR p0, VARIANT* p1) = 0;94virtual HRESULT __stdcall Proc21(int p0, VARIANT* p1) = 0;95virtual HRESULT __stdcall Proc22() = 0;96};9798_COM_SMARTPTR_TYPEDEF(IUsoUpdate, __uuidof(IUsoUpdate));99100101class __declspec(uuid("a1e78367-46b7-4ac8-affa-d9f55645223b")) IUsoUpdateCollection : public IUnknown {102public:103virtual HRESULT __stdcall Proc3(int p0, IUsoUpdate** p1) = 0;104virtual HRESULT __stdcall Proc4(IUnknown** p0) = 0;105virtual HRESULT __stdcall Proc5(int* p0) = 0;106virtual HRESULT __stdcall Proc6() = 0;107virtual HRESULT __stdcall Proc7(int p0) = 0;108};109110_COM_SMARTPTR_TYPEDEF(IUsoUpdateCollection, __uuidof(IUsoUpdateCollection));111112113class __declspec(uuid("580cf13a-20a4-4adc-9322-6dcb8f5c0d0c")) IUsoUpdateHistoryEntry : public IUnknown {114public:115virtual HRESULT __stdcall Proc3(struct Struct_23* p0) = 0;116virtual HRESULT __stdcall Proc4(int* p0) = 0;117virtual HRESULT __stdcall Proc5(int* p0) = 0;118virtual HRESULT __stdcall Proc6(int* p0) = 0;119virtual HRESULT __stdcall Proc7(double* p0) = 0;120virtual HRESULT __stdcall Proc8(BSTR* p0) = 0;121virtual HRESULT __stdcall Proc9(BSTR* p0) = 0;122virtual HRESULT __stdcall Proc10(BSTR* p0) = 0;123virtual HRESULT __stdcall Proc11(int* p0) = 0;124virtual HRESULT __stdcall Proc12(BSTR* p0, int* p1) = 0; // HRESULT Proc12(/* Stack Offset: 8 */ [Out] /* C:(FC_TOP_LEVEL_CONFORMANCE)(16)(FC_DEREFERENCE)(FC_LONG)(0) */ BSTR[]* p0, /* Stack Offset: 16 */ [Out] int* p1);125virtual HRESULT __stdcall Proc13(int* p0) = 0;126virtual HRESULT __stdcall Proc14(BSTR* p0) = 0;127};128129_COM_SMARTPTR_TYPEDEF(IUsoUpdateHistoryEntry, __uuidof(IUsoUpdateHistoryEntry));130131132class __declspec(uuid("7b51947d-62f0-4e71-af2d-c337dff99e57")) IUsoUpdateHistoryEntryCollection : public IUnknown {133public:134virtual HRESULT __stdcall Proc3(int* p0) = 0;135virtual HRESULT __stdcall Proc4(int p0, IUsoUpdateHistoryEntry** p1) = 0;136};137138_COM_SMARTPTR_TYPEDEF(IUsoUpdateHistoryEntryCollection, __uuidof(IUsoUpdateHistoryEntryCollection));139140141class __declspec(uuid("b357f841-2130-454e-802c-5c398b549f8e")) IUsoSession : public IUnknown {142public:143virtual HRESULT __stdcall Proc3(GUID* p0) = 0;144virtual HRESULT __stdcall Proc4(int* p0) = 0;145virtual HRESULT __stdcall Proc5(struct Struct_24* p0) = 0;146virtual HRESULT __stdcall Proc6(struct Struct_25* p0) = 0;147virtual HRESULT __stdcall Proc7(int p0, IUsoUpdateCollection** p1) = 0;148virtual HRESULT __stdcall Proc8(int* p0) = 0;149virtual HRESULT __stdcall Proc9(struct Struct_5* p0) = 0;150virtual HRESULT __stdcall Proc10(struct Struct_5* p0) = 0;151virtual HRESULT __stdcall Proc11(struct Struct_5* p0) = 0;152virtual HRESULT __stdcall Proc12(int* p0) = 0;153virtual HRESULT __stdcall Proc13(int* p0) = 0;154virtual HRESULT __stdcall Proc14(short* p0) = 0;155virtual HRESULT __stdcall Proc15(BSTR* p0) = 0;156virtual HRESULT __stdcall Proc16(BSTR* p0) = 0;157virtual HRESULT __stdcall Proc17(int* p0) = 0;158virtual HRESULT __stdcall Proc18() = 0;159virtual HRESULT __stdcall Proc19() = 0;160virtual HRESULT __stdcall Proc20(int p0, int p1, int* p2, short p3, short p4, int p5) = 0;161virtual HRESULT __stdcall Proc21(short p0, short p1, const wchar_t* p2) = 0; // Proc21(short p0, short p1, wchar_t* p2) = 0;162virtual HRESULT __stdcall Proc22(short p0) = 0;163virtual HRESULT __stdcall Proc23(short p0) = 0;164virtual HRESULT __stdcall Proc24() = 0;165virtual HRESULT __stdcall Proc25(int p0, int p1, IUsoUpdateHistoryEntryCollection** p2) = 0;166virtual HRESULT __stdcall Proc26(int* p0) = 0;167virtual HRESULT __stdcall Proc27(int* p0) = 0;168virtual HRESULT __stdcall Proc28(wchar_t* p0, int p1, wchar_t* p2) = 0; // HRESULT Proc28(/* Stack Offset: 8 */ [In] /* C:(FC_TOP_LEVEL_CONFORMANCE)(16)(FC_ZERO)(FC_ULONG)(0) */ /* unique */wchar_t*[]* p0, /* Stack Offset: 16 */ [In] int p1, /* Stack Offset: 24 */ [In] wchar_t* p2);169virtual HRESULT __stdcall Proc29(int p0, wchar_t* p1, int p2) = 0; // HRESULT Proc29(/* Stack Offset: 8 */ [In] int p0, /* Stack Offset: 16 */ [Out] /* (FC_TOP_LEVEL_CONFORMANCE)(24)(FC_ZERO)(FC_ULONG)(0) */wchar_t[1]* p1, /* Stack Offset: 24 */ [In] int p2);170virtual HRESULT __stdcall Proc30() = 0;171virtual HRESULT __stdcall Proc31(int p0) = 0;172};173174_COM_SMARTPTR_TYPEDEF(IUsoSession, __uuidof(IUsoSession));175176class IUsoSettingObject;177class __declspec(uuid("da4baa07-66c8-499a-828d-ba8ff181717c")) IUsoSettingArray : public IUnknown {178public:179virtual HRESULT __stdcall Proc3(int p0, VARIANT* p1) = 0;180virtual HRESULT __stdcall Proc4(int* p0) = 0;181virtual HRESULT __stdcall Proc5(int p0, IUsoSettingObject** p1) = 0;182virtual HRESULT __stdcall Proc6(int p0, IUsoSettingArray** p1) = 0;183};184185_COM_SMARTPTR_TYPEDEF(IUsoSettingArray, __uuidof(IUsoSettingArray));186187188class __declspec(uuid("edb89974-450a-4370-be41-70132df7119e")) IUsoSettingObject : public IUnknown {189public:190virtual HRESULT __stdcall Proc3(wchar_t* p0, VARIANT* p1) = 0;191virtual HRESULT __stdcall Proc4(wchar_t* p0, IUsoSettingObject** p1) = 0;192virtual HRESULT __stdcall Proc5(wchar_t* p0, IUsoSettingArray** p1) = 0;193};194195_COM_SMARTPTR_TYPEDEF(IUsoSettingObject, __uuidof(IUsoSettingObject));196197198class __declspec(uuid("fccc288d-b47e-41fa-970c-935ec952f4a4")) IUsoSessionCommon : public IUsoSession {199public:200virtual HRESULT __stdcall Proc32(IUsoUpdateCollection** p0) = 0;201virtual HRESULT __stdcall Proc33(short* p0) = 0;202virtual HRESULT __stdcall Proc34(short* p0) = 0;203virtual HRESULT __stdcall Proc35(short p0) = 0;204virtual HRESULT __stdcall Proc36(int p0) = 0;205virtual HRESULT __stdcall Proc37(int* p0) = 0;206virtual HRESULT __stdcall Proc38(wchar_t* p0, VARIANT* p1) = 0;207virtual HRESULT __stdcall Proc39(wchar_t* p0, VARIANT* p1) = 0;208virtual HRESULT __stdcall Proc40(int p0, VARIANT* p1) = 0;209virtual HRESULT __stdcall Proc41(int p0, VARIANT* p1) = 0;210virtual HRESULT __stdcall Proc42(wchar_t* p0, wchar_t* p1, wchar_t* p2) = 0;211virtual HRESULT __stdcall Proc43(wchar_t* p0, wchar_t* p1, wchar_t* p2) = 0;212virtual HRESULT __stdcall Proc44(int p0, VARIANT* p1, int* p2) = 0;213virtual HRESULT __stdcall Proc45(int p0, long* p1, long* p2) = 0;214virtual HRESULT __stdcall Proc46() = 0;215virtual HRESULT __stdcall Proc47(int p0, short p1, VARIANT* p2) = 0;216virtual HRESULT __stdcall Proc48(int p0, int p1, int p2, int* p3) = 0;217virtual HRESULT __stdcall Proc49(int p0, VARIANT* p1, int* p2) = 0;218virtual HRESULT __stdcall Proc50(int* p0) = 0;219virtual HRESULT __stdcall Proc51(wchar_t* p0, VARIANT* p1) = 0;220virtual HRESULT __stdcall Proc52() = 0;221virtual HRESULT __stdcall Proc53(wchar_t* p0, VARIANT* p1) = 0;222virtual HRESULT __stdcall Proc54(int* p0) = 0;223virtual HRESULT __stdcall Proc55() = 0;224virtual HRESULT __stdcall Proc56(wchar_t* p0, VARIANT* p1) = 0;225virtual HRESULT __stdcall Proc57(int p0, VARIANT* p1, int* p2, int* p3) = 0;226virtual HRESULT __stdcall Proc58(int p0, VARIANT* p1, int* p2, int* p3) = 0;227virtual HRESULT __stdcall Proc59(int p0, IUsoSettingObject** p1) = 0;228virtual HRESULT __stdcall Proc60(int p0, IUsoSettingArray** p1) = 0;229virtual HRESULT __stdcall Proc61() = 0;230virtual HRESULT __stdcall Proc62() = 0;231virtual HRESULT __stdcall Proc63() = 0;232virtual HRESULT __stdcall Proc64(int p0, int* p1) = 0;233virtual HRESULT __stdcall Proc65(int* p0, int* p1, struct Struct_33* p2) = 0;234virtual HRESULT __stdcall Proc66(IUsoUpdateCollection** p0) = 0;235virtual HRESULT __stdcall Proc67() = 0;236virtual HRESULT __stdcall Proc68() = 0;237};238239_COM_SMARTPTR_TYPEDEF(IUsoSessionCommon, __uuidof(IUsoSessionCommon));240241242class __declspec(uuid("a244654f-a777-4739-a8e2-5fd4abbd6799")) IUsoSessionCollection : public IUnknown {243public:244virtual HRESULT __stdcall Proc3(int* p0) = 0;245virtual HRESULT __stdcall Proc4(int p0, IUsoSession** p1) = 0;246};247248_COM_SMARTPTR_TYPEDEF(IUsoSessionCollection, __uuidof(IUsoSessionCollection));249250251class __declspec(uuid("833ee9a0-2999-432c-8ef2-87a8ec2d748d")) IUxUpdateManager : public IUnknown {252public:253virtual HRESULT __stdcall Proc3(int p0, int* p1, int* p2) = 0;254virtual HRESULT __stdcall Proc4(int p0, int* p1, int* p2) = 0;255virtual HRESULT __stdcall Proc5(int p0, struct Struct_49* p1, int* p2) = 0;256virtual HRESULT __stdcall Proc6(int p0, int p1) = 0;257virtual HRESULT __stdcall Proc7(int p0, int p1) = 0;258virtual HRESULT __stdcall Proc8(int p0, struct Struct_49* p1) = 0;259virtual HRESULT __stdcall Proc9(int p0) = 0;260virtual HRESULT __stdcall Proc10(int* p0, struct Struct_49* p1) = 0;261virtual HRESULT __stdcall Proc11(wchar_t* p0, struct Struct_49* p1) = 0;262virtual HRESULT __stdcall Proc12() = 0;263virtual HRESULT __stdcall Proc13() = 0;264virtual HRESULT __stdcall Proc14() = 0;265virtual HRESULT __stdcall Proc15(struct Struct_49* p0) = 0;266virtual HRESULT __stdcall Proc16() = 0;267virtual HRESULT __stdcall Proc17(int* p0) = 0;268virtual HRESULT __stdcall Proc18() = 0;269virtual HRESULT __stdcall Proc19() = 0;270virtual HRESULT __stdcall Proc20() = 0;271virtual HRESULT __stdcall Proc21() = 0;272virtual HRESULT __stdcall Proc22() = 0;273virtual HRESULT __stdcall Proc23() = 0;274virtual HRESULT __stdcall Proc24(int p0, int p1, int* p2, short p3, short p4, int p5) = 0;275virtual HRESULT __stdcall Proc25(int p0, int p1, int p2, int* p3) = 0;276virtual HRESULT __stdcall Proc26(int p0, int p1, int* p2) = 0;277virtual HRESULT __stdcall Proc27(int p0, VARIANT* p1, int* p2, int* p3) = 0;278virtual HRESULT __stdcall Proc28(int p0, VARIANT* p1, int* p2, int* p3) = 0;279virtual HRESULT __stdcall Proc29(int p0, short p1, VARIANT* p2) = 0;280virtual HRESULT __stdcall Proc30(int* p0) = 0;281virtual HRESULT __stdcall Proc31(int p0) = 0;282virtual HRESULT __stdcall Proc32(int p0, int* p1) = 0;283virtual HRESULT __stdcall Proc33(int* p0) = 0;284};285286_COM_SMARTPTR_TYPEDEF(IUxUpdateManager, __uuidof(IUxUpdateManager));287288289class __declspec(uuid("c53f3549-0dbf-429a-8297-c812ba00742d")) IUniversalOrchestrator : public IUnknown {290public:291virtual HRESULT __stdcall Proc3(wchar_t* p0, int* p1) = 0;292virtual HRESULT __stdcall Proc4(wchar_t* p0, wchar_t* p1, wchar_t* p2, wchar_t* p3) = 0;293virtual HRESULT __stdcall Proc5(wchar_t* p0, int p1) = 0;294};295296_COM_SMARTPTR_TYPEDEF(IUniversalOrchestrator, __uuidof(IUniversalOrchestrator));297298299class __declspec(uuid("07f3afac-7c8a-4ce7-a5e0-3d24ee8a77e0")) IUpdateSessionOrchestrator : public IUnknown {300public:301virtual HRESULT __stdcall CreateUpdateSession(int param_1, GUID* param_2, IUsoSessionCommon** param_3) = 0;302virtual HRESULT __stdcall GetCurrentActiveUpdateSessions(IUsoSessionCollection** param_1) = 0;303virtual HRESULT __stdcall LogTaskRunning(const wchar_t* param_1) = 0;304virtual HRESULT __stdcall CreateUxUpdateManager(IUxUpdateManager** param_1) = 0;305virtual HRESULT __stdcall CreateUniversalOrchestrator(IUniversalOrchestrator** param_1) = 0;306};307308_COM_SMARTPTR_TYPEDEF(IUpdateSessionOrchestrator, __uuidof(IUpdateSessionOrchestrator));309310311312