123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991 |
- #ifndef SetupConfiguration_h
- #define SetupConfiguration_h
- #include <objbase.h>
- #ifndef E_NOTFOUND
- #define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
- #endif
- #ifndef E_FILENOTFOUND
- #define E_FILENOTFOUND HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)
- #endif
- #if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
- #ifndef _Outptr_result_maybenull_
- #define _Outptr_result_maybenull_
- #endif
- #ifndef _Out_writes_to_
- #define _Out_writes_to_(x,y)
- #endif
- #ifndef _Reserved_
- #define _Reserved_
- #endif
- #ifndef MAXUINT
- #define MAXUINT ((UINT)~((UINT)0))
- #endif
- enum InstanceState
- {
-
-
-
- eNone = 0,
-
-
-
- eLocal = 1,
-
-
-
- eRegistered = 2,
-
-
-
- eNoRebootRequired = 4,
-
-
-
- eComplete = MAXUINT,
- };
- #ifndef __ISetupInstance_FWD_DEFINED__
- #define __ISetupInstance_FWD_DEFINED__
- typedef struct ISetupInstance ISetupInstance;
- #endif
- #ifndef __ISetupInstance2_FWD_DEFINED__
- #define __ISetupInstance2_FWD_DEFINED__
- typedef struct ISetupInstance2 ISetupInstance2;
- #endif
- #ifndef __IEnumSetupInstances_FWD_DEFINED__
- #define __IEnumSetupInstances_FWD_DEFINED__
- typedef struct IEnumSetupInstances IEnumSetupInstances;
- #endif
- #ifndef __ISetupConfiguration_FWD_DEFINED__
- #define __ISetupConfiguration_FWD_DEFINED__
- typedef struct ISetupConfiguration ISetupConfiguration;
- #endif
- #ifndef __ISetupConfiguration2_FWD_DEFINED__
- #define __ISetupConfiguration2_FWD_DEFINED__
- typedef struct ISetupConfiguration2 ISetupConfiguration2;
- #endif
- #ifndef __ISetupPackageReference_FWD_DEFINED__
- #define __ISetupPackageReference_FWD_DEFINED__
- typedef struct ISetupPackageReference ISetupPackageReference;
- #endif
- #ifndef __ISetupHelper_FWD_DEFINED__
- #define __ISetupHelper_FWD_DEFINED__
- typedef struct ISetupHelper ISetupHelper;
- #endif
- #ifndef __SetupConfiguration_FWD_DEFINED__
- #define __SetupConfiguration_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class SetupConfiguration SetupConfiguration;
- #endif
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- EXTERN_C const IID IID_ISetupInstance;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("B41463C3-8866-43B5-BC33-2B0676F7F42E") DECLSPEC_NOVTABLE ISetupInstance : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(GetInstanceId)(
- _Out_ BSTR* pbstrInstanceId
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallDate)(
- _Out_ LPFILETIME pInstallDate
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationName)(
- _Out_ BSTR* pbstrInstallationName
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationPath)(
- _Out_ BSTR* pbstrInstallationPath
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationVersion)(
- _Out_ BSTR* pbstrInstallationVersion
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(GetDisplayName)(
- _In_ LCID lcid,
- _Out_ BSTR* pbstrDisplayName
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(GetDescription)(
- _In_ LCID lcid,
- _Out_ BSTR* pbstrDescription
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(ResolvePath)(
- _In_opt_z_ LPCOLESTR pwszRelativePath,
- _Out_ BSTR* pbstrAbsolutePath
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupInstance2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("89143C9A-05AF-49B0-B717-72E218A2185C") DECLSPEC_NOVTABLE ISetupInstance2 : public ISetupInstance
- {
-
-
-
-
-
- STDMETHOD(GetState)(
- _Out_ InstanceState* pState
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetPackages)(
- _Out_ LPSAFEARRAY* ppsaPackages
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetProduct)(
- _Outptr_result_maybenull_ ISetupPackageReference** ppPackage
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetProductPath)(
- _Outptr_result_maybenull_ BSTR* pbstrProductPath
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_IEnumSetupInstances;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("6380BCFF-41D3-4B2E-8B2E-BF8A6810C848") DECLSPEC_NOVTABLE IEnumSetupInstances : public IUnknown
- {
-
-
-
-
-
-
-
- STDMETHOD(Next)(
- _In_ ULONG celt,
- _Out_writes_to_(celt, *pceltFetched) ISetupInstance** rgelt,
- _Out_opt_ _Deref_out_range_(0, celt) ULONG* pceltFetched
- ) = 0;
-
-
-
-
-
- STDMETHOD(Skip)(
- _In_ ULONG celt
- ) = 0;
-
-
-
-
- STDMETHOD(Reset)(void) = 0;
-
-
-
-
-
- STDMETHOD(Clone)(
- _Deref_out_opt_ IEnumSetupInstances** ppenum
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupConfiguration;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("42843719-DB4C-46C2-8E7C-64F1816EFD5B") DECLSPEC_NOVTABLE ISetupConfiguration : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(EnumInstances)(
- _Out_ IEnumSetupInstances** ppEnumInstances
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstanceForCurrentProcess)(
- _Out_ ISetupInstance** ppInstance
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstanceForPath)(
- _In_z_ LPCWSTR wzPath,
- _Out_ ISetupInstance** ppInstance
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupConfiguration2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("26AAB78C-4A60-49D6-AF3B-3C35BC93365D") DECLSPEC_NOVTABLE ISetupConfiguration2 : public ISetupConfiguration
- {
-
-
-
-
-
- STDMETHOD(EnumAllInstances)(
- _Out_ IEnumSetupInstances** ppEnumInstances
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupPackageReference;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("da8d8a16-b2b6-4487-a2f1-594ccccd6bf5") DECLSPEC_NOVTABLE ISetupPackageReference : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(GetId)(
- _Out_ BSTR* pbstrId
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetVersion)(
- _Out_ BSTR* pbstrVersion
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetChip)(
- _Out_ BSTR* pbstrChip
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetLanguage)(
- _Out_ BSTR* pbstrLanguage
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetBranch)(
- _Out_ BSTR* pbstrBranch
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetType)(
- _Out_ BSTR* pbstrType
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetUniqueId)(
- _Out_ BSTR* pbstrUniqueId
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupHelper;
- #if defined(__cplusplus) && !defined(CINTERFACE)
- struct DECLSPEC_UUID("42b21b78-6192-463e-87bf-d577838f1d5c") DECLSPEC_NOVTABLE ISetupHelper : public IUnknown
- {
-
-
-
-
-
-
- STDMETHOD(ParseVersion)(
- _In_ LPCOLESTR pwszVersion,
- _Out_ PULONGLONG pullVersion
- ) = 0;
-
-
-
-
-
-
-
- STDMETHOD(ParseVersionRange)(
- _In_ LPCOLESTR pwszVersionRange,
- _Out_ PULONGLONG pullMinVersion,
- _Out_ PULONGLONG pullMaxVersion
- ) = 0;
- };
- #endif
- EXTERN_C const CLSID CLSID_SetupConfiguration;
- #ifdef __cplusplus
- class DECLSPEC_UUID("177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D") SetupConfiguration;
- #endif
- STDMETHODIMP GetSetupConfiguration(
- _Out_ ISetupConfiguration** ppConfiguration,
- _Reserved_ LPVOID pReserved
- );
- #ifdef __cplusplus
- }
- #endif
- #else
- #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
- #define VS_SETUP_GCC_DIAGNOSTIC_PUSHED
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
- #endif
- #ifndef MAXUINT
- #define MAXUINT ((UINT)~((UINT)0))
- #endif
- #ifndef DECLSPEC_NOVTABLE
- #if (_MSC_VER >= 1100) && defined(__cplusplus)
- #define DECLSPEC_NOVTABLE __declspec(novtable)
- #else
- #define DECLSPEC_NOVTABLE
- #endif
- #endif
- enum InstanceState
- {
-
-
-
- eNone = 0,
-
-
-
- eLocal = 1,
-
-
-
- eRegistered = 2,
-
-
-
- eNoRebootRequired = 4,
-
-
-
- eComplete = MAXUINT,
- };
- #ifndef __ISetupInstance_FWD_DEFINED__
- #define __ISetupInstance_FWD_DEFINED__
- typedef struct ISetupInstance ISetupInstance;
- #endif
- #ifndef __ISetupInstance2_FWD_DEFINED__
- #define __ISetupInstance2_FWD_DEFINED__
- typedef struct ISetupInstance2 ISetupInstance2;
- #endif
- #ifndef __IEnumSetupInstances_FWD_DEFINED__
- #define __IEnumSetupInstances_FWD_DEFINED__
- typedef struct IEnumSetupInstances IEnumSetupInstances;
- #endif
- #ifndef __ISetupConfiguration_FWD_DEFINED__
- #define __ISetupConfiguration_FWD_DEFINED__
- typedef struct ISetupConfiguration ISetupConfiguration;
- #endif
- #ifndef __ISetupConfiguration2_FWD_DEFINED__
- #define __ISetupConfiguration2_FWD_DEFINED__
- typedef struct ISetupConfiguration2 ISetupConfiguration2;
- #endif
- #ifndef __ISetupPackageReference_FWD_DEFINED__
- #define __ISetupPackageReference_FWD_DEFINED__
- typedef struct ISetupPackageReference ISetupPackageReference;
- #endif
- #ifndef __ISetupHelper_FWD_DEFINED__
- #define __ISetupHelper_FWD_DEFINED__
- typedef struct ISetupHelper ISetupHelper;
- #endif
- #ifndef __SetupConfiguration_FWD_DEFINED__
- #define __SetupConfiguration_FWD_DEFINED__
- #ifdef __cplusplus
- typedef class SetupConfiguration SetupConfiguration;
- #endif
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- EXTERN_C const IID IID_ISetupInstance;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("B41463C3-8866-43B5-BC33-2B0676F7F42E") DECLSPEC_NOVTABLE ISetupInstance : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(GetInstanceId)(
- BSTR* pbstrInstanceId
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallDate)(
- LPFILETIME pInstallDate
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationName)(
- BSTR* pbstrInstallationName
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationPath)(
- BSTR* pbstrInstallationPath
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstallationVersion)(
- BSTR* pbstrInstallationVersion
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(GetDisplayName)(
- LCID lcid,
- BSTR* pbstrDisplayName
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(GetDescription)(
- LCID lcid,
- BSTR* pbstrDescription
- ) = 0;
-
-
-
-
-
-
- STDMETHOD(ResolvePath)(
- LPCOLESTR pwszRelativePath,
- BSTR* pbstrAbsolutePath
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupInstance2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("89143C9A-05AF-49B0-B717-72E218A2185C") DECLSPEC_NOVTABLE ISetupInstance2 : public ISetupInstance
- {
-
-
-
-
-
- STDMETHOD(GetState)(
- InstanceState* pState
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetPackages)(
- LPSAFEARRAY* ppsaPackages
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetProduct)(
- ISetupPackageReference** ppPackage
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetProductPath)(
- BSTR* pbstrProductPath
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_IEnumSetupInstances;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("6380BCFF-41D3-4B2E-8B2E-BF8A6810C848") DECLSPEC_NOVTABLE IEnumSetupInstances : public IUnknown
- {
-
-
-
-
-
-
-
- STDMETHOD(Next)(
- ULONG celt,
- ISetupInstance** rgelt,
- ULONG* pceltFetched
- ) = 0;
-
-
-
-
-
- STDMETHOD(Skip)(
- ULONG celt
- ) = 0;
-
-
-
-
- STDMETHOD(Reset)(void) = 0;
-
-
-
-
-
- STDMETHOD(Clone)(
- IEnumSetupInstances** ppenum
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupConfiguration;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("42843719-DB4C-46C2-8E7C-64F1816EFD5B") DECLSPEC_NOVTABLE ISetupConfiguration : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(EnumInstances)(
- IEnumSetupInstances** ppEnumInstances
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstanceForCurrentProcess)(
- ISetupInstance** ppInstance
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetInstanceForPath)(
- LPCWSTR wzPath,
- ISetupInstance** ppInstance
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupConfiguration2;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("26AAB78C-4A60-49D6-AF3B-3C35BC93365D") DECLSPEC_NOVTABLE ISetupConfiguration2 : public ISetupConfiguration
- {
-
-
-
-
-
- STDMETHOD(EnumAllInstances)(
- IEnumSetupInstances** ppEnumInstances
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupPackageReference;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
- struct DECLSPEC_UUID("da8d8a16-b2b6-4487-a2f1-594ccccd6bf5") DECLSPEC_NOVTABLE ISetupPackageReference : public IUnknown
- {
-
-
-
-
-
- STDMETHOD(GetId)(
- BSTR* pbstrId
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetVersion)(
- BSTR* pbstrVersion
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetChip)(
- BSTR* pbstrChip
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetLanguage)(
- BSTR* pbstrLanguage
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetBranch)(
- BSTR* pbstrBranch
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetType)(
- BSTR* pbstrType
- ) = 0;
-
-
-
-
-
- STDMETHOD(GetUniqueId)(
- BSTR* pbstrUniqueId
- ) = 0;
- };
- #endif
- EXTERN_C const IID IID_ISetupHelper;
- #if defined(__cplusplus) && !defined(CINTERFACE)
-
-
-
-
-
-
- struct DECLSPEC_UUID("42b21b78-6192-463e-87bf-d577838f1d5c") DECLSPEC_NOVTABLE ISetupHelper : public IUnknown
- {
-
-
-
-
-
-
- STDMETHOD(ParseVersion)(
- LPCOLESTR pwszVersion,
- PULONGLONG pullVersion
- ) = 0;
-
-
-
-
-
-
-
- STDMETHOD(ParseVersionRange)(
- LPCOLESTR pwszVersionRange,
- PULONGLONG pullMinVersion,
- PULONGLONG pullMaxVersion
- ) = 0;
- };
- #endif
-
-
- EXTERN_C const CLSID CLSID_SetupConfiguration;
- #ifdef __cplusplus
-
-
-
- class DECLSPEC_UUID("177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D") SetupConfiguration;
- #endif
-
-
-
-
-
-
-
-
- STDMETHODIMP GetSetupConfiguration(
- ISetupConfiguration** ppConfiguration,
- LPVOID pReserved
- );
- #ifdef __cplusplus
- }
- #endif
- #ifdef VS_SETUP_GCC_DIAGNOSTIC_PUSHED
- #pragma GCC diagnostic pop
- #undef VS_SETUP_GCC_DIAGNOSTIC_PUSHED
- #endif
- #endif
- #endif
|