zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

naptypes.h (5606B) - Raw


      1 /*** Autogenerated by WIDL 10.4 from include/naptypes.idl - Do not edit ***/
      2 
      3 #ifdef _WIN32
      4 #ifndef __REQUIRED_RPCNDR_H_VERSION__
      5 #define __REQUIRED_RPCNDR_H_VERSION__ 475
      6 #endif
      7 #include <rpc.h>
      8 #include <rpcndr.h>
      9 #endif
     10 
     11 #ifndef COM_NO_WINDOWS_H
     12 #include <windows.h>
     13 #include <ole2.h>
     14 #endif
     15 
     16 #ifndef __naptypes_h__
     17 #define __naptypes_h__
     18 
     19 /* Forward declarations */
     20 
     21 /* Headers for imported files */
     22 
     23 #include <oaidl.h>
     24 #include <ocidl.h>
     25 
     26 #ifdef __cplusplus
     27 extern "C" {
     28 #endif
     29 
     30 #include <winapifamily.h>
     31 
     32 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
     33 /*****************************************************************************
     34  * INapTypes interface (v0.0)
     35  */
     36 #ifndef __INapTypes_INTERFACE_DEFINED__
     37 #define __INapTypes_INTERFACE_DEFINED__
     38 
     39 extern RPC_IF_HANDLE INapTypes_v0_0_c_ifspec;
     40 extern RPC_IF_HANDLE INapTypes_v0_0_s_ifspec;
     41 #define freshSoHRequest (0x1)
     42 
     43 #define shaFixup (0x1)
     44 
     45 #define percentageNotSupported (101)
     46 
     47 #define maxSoHAttributeCount (100)
     48 
     49 #define maxSoHAttributeSize (4000)
     50 
     51 #define minNetworkSoHSize (12)
     52 
     53 #define maxNetworkSoHSize (4000)
     54 
     55 #define maxDwordCountPerSoHAttribute (maxSoHAttributeSize / sizeof(DWORD))
     56 
     57 #define maxIpv4CountPerSoHAttribute (maxSoHAttributeSize / 4)
     58 
     59 #define maxIpv6CountPerSoHAttribute (maxSoHAttributeSize / 16)
     60 
     61 #define maxStringLength (1024)
     62 
     63 #define maxStringLengthInBytes ((maxStringLength + 1) * sizeof(WCHAR))
     64 
     65 #define maxSystemHealthEntityCount (20)
     66 
     67 #define maxEnforcerCount (20)
     68 
     69 #define maxPrivateDataSize (200)
     70 
     71 #define maxConnectionCountPerEnforcer (20)
     72 
     73 #define maxCachedSoHCount ((maxSystemHealthEntityCount * maxEnforcerCount) * maxConnectionCountPerEnforcer)
     74 
     75 #define failureCategoryCount (5)
     76 
     77 #define ComponentTypeEnforcementClientSoH (0x1)
     78 
     79 #define ComponentTypeEnforcementClientRp (0x2)
     80 
     81 typedef enum tagIsolationState {
     82     isolationStateNotRestricted = 1,
     83     isolationStateInProbation = 2,
     84     isolationStateRestrictedAccess = 3
     85 } IsolationState;
     86 typedef enum tagExtendedIsolationState {
     87     extendedIsolationStateNoData = 0x0,
     88     extendedIsolationStateTransition = 0x1,
     89     extendedIsolationStateInfected = 0x2,
     90     extendedIsolationStateUnknown = 0x3
     91 } ExtendedIsolationState;
     92 typedef enum tagNapTracingLevel {
     93     tracingLevelUndefined = 0,
     94     tracingLevelBasic = 1,
     95     tracingLevelAdvanced = 2,
     96     tracingLevelDebug = 3
     97 } NapTracingLevel;
     98 typedef enum tagFailureCategory {
     99     failureCategoryNone = 0,
    100     failureCategoryOther = 1,
    101     failureCategoryClientComponent = 2,
    102     failureCategoryClientCommunication = 3,
    103     failureCategoryServerComponent = 4,
    104     failureCategoryServerCommunication = 5
    105 } FailureCategory;
    106 typedef enum tagFixupState {
    107     fixupStateSuccess = 0,
    108     fixupStateInProgress = 1,
    109     fixupStateCouldNotUpdate = 2
    110 } FixupState;
    111 typedef enum tagNapNotifyType {
    112     napNotifyTypeUnknown = 0,
    113     napNotifyTypeServiceState = 1,
    114     napNotifyTypeQuarState = 2
    115 } NapNotifyType;
    116 typedef enum tagRemoteConfigurationType {
    117     remoteConfigTypeMachine = 1,
    118     remoteConfigTypeConfigBlob = 2
    119 } RemoteConfigurationType;
    120 typedef FILETIME ProbationTime;
    121 typedef UINT32 MessageId;
    122 typedef UINT32 NapComponentId;
    123 typedef NapComponentId SystemHealthEntityId;
    124 typedef NapComponentId EnforcementEntityId;
    125 typedef struct tagCountedString {
    126     UINT16 length;
    127     WCHAR *string;
    128 } CountedString;
    129 typedef CountedString StringCorrelationId;
    130 typedef struct tagIsolationInfo {
    131     IsolationState isolationState;
    132     ProbationTime probEndTime;
    133     CountedString failureUrl;
    134 } IsolationInfo;
    135 typedef struct tagIsolationInfoEx {
    136     IsolationState isolationState;
    137     ExtendedIsolationState extendedIsolationState;
    138     ProbationTime probEndTime;
    139     CountedString failureUrl;
    140 } IsolationInfoEx;
    141 typedef struct tagFailureCategoryMapping {
    142     WINBOOL mappingCompliance[5];
    143 } FailureCategoryMapping;
    144 typedef UINT16 SystemHealthEntityCount;
    145 typedef UINT16 EnforcementEntityCount;
    146 typedef struct tagCorrelationId {
    147     GUID connId;
    148     FILETIME timeStamp;
    149 } CorrelationId;
    150 typedef GUID ConnectionId;
    151 typedef UINT8 Percentage;
    152 typedef struct tagResultCodes {
    153     UINT16 count;
    154     HRESULT *results;
    155 } ResultCodes;
    156 typedef struct tagIpv4Address {
    157     BYTE addr[4];
    158 } Ipv4Address;
    159 typedef struct tagIpv6Address {
    160     BYTE addr[16];
    161 } Ipv6Address;
    162 typedef struct tagFixupInfo {
    163     FixupState state;
    164     Percentage percentage;
    165     ResultCodes resultCodes;
    166     MessageId fixupMsgId;
    167 } FixupInfo;
    168 typedef struct tagSystemHealthAgentState {
    169     SystemHealthEntityId id;
    170     ResultCodes shaResultCodes;
    171     FailureCategory failureCategory;
    172     FixupInfo fixupInfo;
    173 } SystemHealthAgentState;
    174 typedef struct tagSoHAttribute {
    175     UINT16 type;
    176     UINT16 size;
    177     BYTE *value;
    178 } SoHAttribute;
    179 typedef struct tagSoH {
    180     UINT16 count;
    181     SoHAttribute *attributes;
    182 } SoH;
    183 typedef struct tagSoH SoHRequest;
    184 typedef struct tagSoH SoHResponse;
    185 typedef struct tagNetworkSoH {
    186     UINT16 size;
    187     BYTE *data;
    188 } NetworkSoH;
    189 typedef struct tagNetworkSoH NetworkSoHRequest;
    190 typedef struct tagNetworkSoH NetworkSoHResponse;
    191 typedef struct tagPrivateData {
    192     UINT16 size;
    193     BYTE *data;
    194 } PrivateData;
    195 typedef struct tagNapComponentRegistrationInfo {
    196     NapComponentId id;
    197     CountedString friendlyName;
    198     CountedString description;
    199     CountedString version;
    200     CountedString vendorName;
    201     CLSID infoClsid;
    202     CLSID configClsid;
    203     FILETIME registrationDate;
    204     UINT32 componentType;
    205 } NapComponentRegistrationInfo;
    206 
    207 #endif  /* __INapTypes_INTERFACE_DEFINED__ */
    208 
    209 #endif
    210 /* Begin additional prototypes for all interfaces */
    211 
    212 
    213 /* End additional prototypes */
    214 
    215 #ifdef __cplusplus
    216 }
    217 #endif
    218 
    219 #endif /* __naptypes_h__ */