Cannot access Firewall functionality

From: dice (dice_at_discussions.microsoft.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 09:23:13 -0700

Im having trouble accessing the firewall API.

If I include <fwapi.h> in core.cpp I get the following errors:

C:\development\machine\core.cpp(162) : error C2065: 'IsFirewallEnabled' : undeclared identifier
C:\development\machine\core.cpp(162) : error C2065: 'AF_INET' : undeclared identifier
C:\development\machine\core.cpp(163) : error C2065: 'AF_INET6' : undeclared identifier

If I include <fwapi.h> in StdAfx.h I get the following error:

core.obj : error LNK2019: unresolved external symbol _IsFirewallEnabled referenced in function "void __cdecl initCore(void)" (?initCore@@YAXXZ)
emulatorRel/machine.exe : fatal error LNK1120: 1 unresolved externals

Can anyone tell me how I go about resolving this?



Relevant Pages

  • Re: Browsing intranet
    ... It's HOSTS, not LMHOSTS, you want to put your DNS overrides into. ... > or just the machine names themselves so resolving the address ... > machines in a large corporate environment ... > clients are experiencing trouble. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Why does Word lock the computer?
    ... Outlook run without trouble. ... reinstall all software. ... times without resolving the problem. ...
    (microsoft.public.word.application.errors)
  • Re: X11 forwarding over proxied connection.
    ... is apparently not resolving to 127.0.0.1, which is a recipe for further ... trouble. ... Christopher Mattern ...
    (comp.security.ssh)
  • Re: Soft Update - directory/file listing
    ... > I'm having trouble with slow directory/file listing, ... > resolving, sorting)on a directory that has only about 200 ... > files/subdirectories. ...
    (freebsd-performance)