The RPC_FAX_OUTBOUND_ROUTING_RULEW data type is used as an input argument for FAX_SetOutboundRule (section 3.1.4.1.86). The information contained in this structure describes one routing rule in the Configuration of the Routing Rules (section 3.1.1).
For reference, the data type definition is as follows.
typedefstruct{
DWORD dwSizeOfStruct;
DWORD dwAreaCode;
DWORD dwCountryCode;
[string] LPWSTR lpwstrCountryName;
[switch_is(bUseGroup)] FAX_RULE_DESTINATION Destination;
BOOL bUseGroup;
}RPC_FAX_OUTBOUND_ROUTING_RULEW,
*RPC_PFAX_OUTBOUND_ROUTING_RULEW;
dwSizeOfStruct: A DWORD ([MS-DTYP] section 2.2.9) value that holds the total size of the structure, in bytes. This value MUST be 24 or 40 bytes. When filled in on a 32-bit implementation, this value SHOULD be 24 bytes. When filled in on a 64-bit implementation this value SHOULD be 40 bytes.
dwAreaCode: A DWORD that contains the area code of the rule. A value of zero indicates the special any-area value ROUTING_RULE_AREA_CODE_ANY. The dwAreaCode and dwCountryCode members MUST form a unique key. This value is unrestricted.
dwCountryCode: A DWORD that contains the country/region code of the rule. A value of zero indicates the special any-country, any-region value ROUTING_RULE_COUNTRY_CODE_ANY. The dwAreaCode and dwCountryCode numeric values MUST form a unique key. Clients can obtain valid values with the FAX_GetCountryList (section 3.1.4.1.37) method.
lpwstrCountryName: A pointer to a null-terminated string that contains the country/region name indicated by the dwCountryCode parameter if known; otherwise, a NULL pointer. If dwCountryCode is zero, this pointer MUST be NULL.
Destination: A FAX_RULE_DESTINATION (section 2.2.81) union that contains the destination of the rule. When bUseGroup is FALSE, this union value MUST hold a device identifier; otherwise, this union value MUST represent the name of an outbound routing group of devices.
bUseGroup: A Boolean value that indicates whether the group is used in the destination. If TRUE, the group MUST be used as the rule's destination. If FALSE, the device MUST be used as the rule's destination.