Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The FWPM_CONNECTION0 structure stores the state associated with a connection object.
Syntax
typedef struct FWPM_CONNECTION0_ {
  UINT64                 connectionId;
  FWP_IP_VERSION         ipVersion;
  union {
    UINT32 localV4Address;
    UINT8  localV6Address[16];
  };
  union {
    UINT32 remoteV4Address;
    UINT8  remoteV6Address[16];
  };
  GUID                   *providerKey;
  IPSEC_TRAFFIC_TYPE     ipsecTrafficModeType;
  IKEEXT_KEY_MODULE_TYPE keyModuleType;
  IKEEXT_PROPOSAL0       mmCrypto;
  IKEEXT_CREDENTIAL2     mmPeer;
  IKEEXT_CREDENTIAL2     emPeer;
  UINT64                 bytesTransferredIn;
  UINT64                 bytesTransferredOut;
  UINT64                 bytesTransferredTotal;
  FILETIME               startSysTime;
} FWPM_CONNECTION0;
Members
connectionId
Type: UINT64
The run-time identifier for the connection.
ipVersion
Type: FWP_IP_VERSION
The IP version being used.
localV4Address
Type: UINT32
The IPv4 local address.
Available when ipVersion is FWP_IP_VERSION_V4.
localV6Address[16]
Type: UINT8[16]
The IPv6 local address.
Available when ipVersion is FWP_IP_VERSION_V6.
remoteV4Address
Type: UINT32
The IPv4 remote address.
Available when ipVersion is FWP_IP_VERSION_V4.
remoteV6Address[16]
Type: UINT8[16]
The IPv6 remote address.
Available when ipVersion is FWP_IP_VERSION_V6.
providerKey
Type: GUID*
Uniquely identifies the provider associated with this connection.
ipsecTrafficModeType
Type: IPSEC_TRAFFIC_TYPE
The type of IPsec traffic.
keyModuleType
Type: IKEEXT_KEY_MODULE_TYPE
The type of keying module.
mmCrypto
Type: IKEEXT_PROPOSAL0
An IKE/AuthIP main mode proposal.
mmPeer
Type: IKEEXT_CREDENTIAL2
Main mode credential information.
emPeer
Type: IKEEXT_CREDENTIAL2
Extended mode credential information.
bytesTransferredIn
Type: UINT64
The total number of incoming bytes transferred by the connection.
bytesTransferredOut
Type: UINT64
The total number of outgoing bytes transferred by the connection.
bytesTransferredTotal
Type: UINT64
The total number of bytes (incoming and outgoing) transferred by the connection.
startSysTime
Type: FILETIME
Time that the connection was created.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] | 
| Minimum supported server | Windows Server 2012 [desktop apps only] | 
| Header | fwpmtypes.h |