#endif
};
+#ifdef NET_FW_PROFILE2_ALL
HRESULT icf_CheckAndAddPorts2(WCHAR * wServiceName, global_afs_port_t * ports, int nPorts)
{
INetFwPolicy2 *pNetFwPolicy2 = NULL;
return 0;
}
-
+#endif /* NET_FW_PROFILE2_ALL */
HRESULT icf_OpenFirewallProfile(INetFwProfile ** fwProfile)
{
// not necessarily catastrophic if the call failed. We'll try to
// continue as if it succeeded.
+#ifdef NET_FW_PROFILE2_ALL
hr = icf_CheckAndAddPorts2(wServiceName, ports, nports);
- if (FAILED(hr)) {
+ if (FAILED(hr))
+#endif
+ {
DEBUGOUT(("INetFwProfile2 failed, trying INetFwProfile\n"));
hr = icf_OpenFirewallProfile(&fwProfile);
if (FAILED(hr)) {