naptypes.h 5.5 KB

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