| 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 |
|
| 7 |
import "oaidl.idl"; |
| 8 |
|
| 9 |
typedef enum WSC_SECURITY_PRODUCT_SUBSTATUS { |
| 10 |
WSC_SECURITY_PRODUCT_SUBSTATUS_NOT_SET = 0, |
| 11 |
WSC_SECURITY_PRODUCT_SUBSTATUS_NO_ACTION = 1, |
| 12 |
WSC_SECURITY_PRODUCT_SUBSTATUS_ACTION_RECOMMENDED = 2, |
| 13 |
WSC_SECURITY_PRODUCT_SUBSTATUS_ACTION_NEEDED = 3, |
| 14 |
} WSC_SECURITY_PRODUCT_SUBSTATUS; |
| 15 |
|
| 16 |
typedef enum WSC_SECURITY_PRODUCT_STATE { |
| 17 |
WSC_SECURITY_PRODUCT_STATE_ON = 0, |
| 18 |
WSC_SECURITY_PRODUCT_STATE_OFF = 1, |
| 19 |
WSC_SECURITY_PRODUCT_STATE_SNOOZED = 2, |
| 20 |
WSC_SECURITY_PRODUCT_STATE_EXPIRED = 3, |
| 21 |
} WSC_SECURITY_PRODUCT_STATE; |
| 22 |
|
| 23 |
typedef enum _SECURITY_PRODUCT_TYPE { |
| 24 |
SECURITY_PRODUCT_TYPE_ANTIVIRUS = 0, |
| 25 |
SECURITY_PRODUCT_TYPE_FIREWALL = 1, |
| 26 |
SECURITY_PRODUCT_TYPE_ANTISPYWARE = 2, |
| 27 |
} SECURITY_PRODUCT_TYPE; |
| 28 |
|
| 29 |
typedef enum _WSC_SECURITY_SIGNATURE_STATUS { |
| 30 |
WSC_SECURITY_PRODUCT_OUT_OF_DATE = 0, |
| 31 |
WSC_SECURITY_PRODUCT_UP_TO_DATE = 1, |
| 32 |
} WSC_SECURITY_SIGNATURE_STATUS; |
| 33 |
|
| 34 |
[ |
| 35 |
local, |
| 36 |
object, |
| 37 |
pointer_default(unique), |
| 38 |
uuid(8c38232e-3a45-4a27-92b0-1a16a975f669) |
| 39 |
] |
| 40 |
interface IWscProduct : IDispatch |
| 41 |
{ |
| 42 |
[propget] HRESULT ProductName([out, retval] BSTR *val); |
| 43 |
[propget] HRESULT ProductState([out, retval] WSC_SECURITY_PRODUCT_STATE *val); |
| 44 |
[propget] HRESULT SignatureStatus([out, retval] WSC_SECURITY_SIGNATURE_STATUS *val); |
| 45 |
[propget] HRESULT RemediationPath([out, retval] BSTR *val); |
| 46 |
[propget] HRESULT ProductStateTimestamp([out, retval] BSTR *val); |
| 47 |
[propget] HRESULT ProductGuid([out, retval] BSTR *val); |
| 48 |
[propget] HRESULT ProductIsDefault([out, retval] BOOL *val); |
| 49 |
} |
| 50 |
|
| 51 |
[ |
| 52 |
local, |
| 53 |
object, |
| 54 |
pointer_default(unique), |
| 55 |
uuid(f896ca54-fe09-4403-86d4-23cb488d81d8) |
| 56 |
] |
| 57 |
interface IWscProduct2 : IWscProduct |
| 58 |
{ |
| 59 |
[propget] HRESULT AntivirusScanSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 60 |
[propget] HRESULT AntivirusSettingsSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 61 |
[propget] HRESULT AntivirusProtectionUpdateSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 62 |
[propget] HRESULT FirewallDomainProfileSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 63 |
[propget] HRESULT FirewallPrivateProfileSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 64 |
[propget] HRESULT FirewallPublicProfileSubstatus([out, retval] WSC_SECURITY_PRODUCT_SUBSTATUS *status); |
| 65 |
} |
| 66 |
|
| 67 |
[ |
| 68 |
local, |
| 69 |
object, |
| 70 |
pointer_default(unique), |
| 71 |
uuid(55536524-d1d1-4726-8c7c-04996a1904e7) |
| 72 |
] |
| 73 |
interface IWscProduct3 : IWscProduct2 |
| 74 |
{ |
| 75 |
[propget] HRESULT AntivirusDaysUntilExpired([out, retval] DWORD *days); |
| 76 |
} |
| 77 |
|
| 78 |
[ |
| 79 |
local, |
| 80 |
object, |
| 81 |
pointer_default(unique), |
| 82 |
uuid(722a338c-6e8e-4e72-ac27-1417fb0c81c2) |
| 83 |
] |
| 84 |
interface IWSCProductList : IDispatch |
| 85 |
{ |
| 86 |
HRESULT Initialize([in] ULONG provider); |
| 87 |
[propget] HRESULT Count([out, retval] LONG *val); |
| 88 |
[propget] HRESULT Item([in] ULONG index, [out, retval] IWscProduct **val); |
| 89 |
} |
| 90 |
|
| 91 |
[ |
| 92 |
local, |
| 93 |
object, |
| 94 |
pointer_default(unique), |
| 95 |
uuid(0476d69c-f21a-11e5-9ce9-5e5517507c66) |
| 96 |
] |
| 97 |
interface IWSCDefaultProduct : IDispatch |
| 98 |
{ |
| 99 |
HRESULT SetDefaultProduct([in] SECURITY_PRODUCT_TYPE type, [in] BSTR guid); |
| 100 |
} |
| 101 |
|
| 102 |
[ |
| 103 |
uuid(b52a4496-7753-4f74-be64-c2072e308122) |
| 104 |
] |
| 105 |
library wscAPILib |
| 106 |
{ |
| 107 |
[ |
| 108 |
uuid(17072f7b-9abe-4a74-a261-1eb76b55107a) |
| 109 |
] |
| 110 |
coclass WSCProductList |
| 111 |
{ |
| 112 |
interface IWSCProductList; |
| 113 |
} |
| 114 |
|
| 115 |
[ |
| 116 |
uuid(2981a36e-f22d-11e5-9ce9-5e5517507c66) |
| 117 |
] |
| 118 |
coclass WSCDefaultProduct |
| 119 |
{ |
| 120 |
interface IWSCDefaultProduct; |
| 121 |
} |
| 122 |
} |