Compartilhar via


CM_POLICY_CONFIG_KEY (Compact 2013)

3/26/2014

This structure contains an <account, host> pair, which is the key for policy data.

Syntax

typedef struct CM_POLICY_CONFIG_KEY
{
    DWORD Version;
    CM_POLICY_TYPE Type;
    union
    {
        struct
        {
            WCHAR szAccount[CM_ACCOUNT_NAME_LENGTH];
            WCHAR szHost[CM_HOST_NAME_LENGTH];
        } ConnectionMappings;
    };
} CM_POLICY_CONFIG_KEY;

Members

  • szAccount
    Account associated with the application. An application is identified by the account under which it runs.

    The wildcard "*" matches all accounts.

  • szHost
    Destination host. The host can be either a name or an IP address. Delimit a name with quotes. For example: "www.adatum.com". Delimit an IP address with quotes and square brackets. For example: "[192.168.19.254]".

    A wildcard "*" may be used to match one or more segments in the prefix of a host name including dots (".") that separate segments. For example: "*.adatum.com" matches "www.adatum.com" and "mail.windows.adatom.com", but it will not match "adatum.com". A wildcard may appear only once as a left-most character.

    A plus character "+" may be used to match one segment in a host name once. For example, "+" will match any host on a private network. This character may appear only once in the string before any concrete segment.

    Both the wildcard and plus character can be used in a single mapping. For example, "*.+" will match any Fully Qualified Domain Name (FQDN) specified by two or more segments. A slash "/" following an IP address prefix specifies its size in bits, and thereby the network, for example: "[192.168.19.0/16]" or "[3FFE:2900:D005::/48]".

  • ConnectionMappings
    The name for this sub structure.

Remarks

Requirements

Header

cmnet.h

See Also

Reference

Connection Manager Policy Structures
CmGetPolicyConfig