if (!scm) return FALSE;
/* Open Windows Firewall service */
- svc = OpenService(scm, "SharedAccess", SERVICE_QUERY_CONFIG);
+ svc = OpenService(scm, "MpsSvc", SERVICE_QUERY_CONFIG);
+ if (!svc) {
+ afsi_log("MpsSvc Service could not be opened for query: 0x%x", GetLastError());
+ svc = OpenService(scm, "SharedAccess", SERVICE_QUERY_CONFIG);
+ if (!svc)
+ afsi_log("SharedAccess Service could not be opened for query: 0x%x", GetLastError());
+ }
if (!svc)
goto close_scm;
/* Query Windows Firewall service config, this time for real */
flag = QueryServiceConfig(svc, pConfig, BufSize, &BufSize);
- if (!flag)
+ if (!flag) {
+ afsi_log("QueryServiceConfig failed: 0x%x", GetLastError());
goto free_pConfig;
+ }
/* Is it autostart? */
+ afsi_log("AutoStart 0x%x", pConfig->dwStartType);
if (pConfig->dwStartType < SERVICE_DEMAND_START)
result = TRUE;
HMODULE hHookDll;
int configureFirewall = IsWindowsFirewallPresent();
+ if (!configureFirewall) {
+ afsi_log("No Windows Firewall detected");
+ }
+
/* ping all file servers, up or down, with unauthenticated connection,
* to find out whether we have all our callbacks from the server still.
* Also, ping down VLDBs.
default:
afsi_log("Unknown Windows Firewall Configuration error");
}
- }
+ }
/* find out what time it is */
now = osi_Time();