2.2.4 W32TIME_NTP_PROVIDER_DATA

The W32TIME_NTP_PROVIDER_DATA structure defines the state of an NTP time provider.

 typedef struct {
   unsigned __int32 ulSize;
   unsigned __int32 ulError;
   unsigned __int32 ulErrorMsgId;
   unsigned __int32 cPeerInfo;
   [size_is(cPeerInfo)] PW32TIME_NTP_PEER_INFO pPeerInfo;
 } W32TIME_NTP_PROVIDER_DATA,
  *PW32TIME_NTP_PROVIDER_DATA;

ulSize: The size, in bytes, of this structure.

ulError: The LastError element value (see section 3.2.1.2). Because the values transmitted in this field are implementation-specific, all nonzero values MUST be treated as equivalent for protocol purposes.<6>

ulErrorMsgId: The LastErrorMessageId element value (see section 3.2.1.2). The values in this field are implementation-specific. If an implementation receives a value it does not understand, the implementation MUST ignore the value.<7>

cPeerInfo: The number of active time peers that synchronize with this NTP time provider. This value also indicates the number of structures in pPeerInfo.

pPeerInfo: The PeerList element value (see section 3.2.1.2). A pointer to W32TIME_NTP_PEER_INFO structures representing the time peers with which this time provider is currently synchronizing.