1

I am doing a firewall application. For that I tried some codes from codeproject HERE

But the problem is the code is not compiling, giving linking error. I am using SDK 2008. Can anyone please tell me what .lib file should I use for WFP and where can I find it ?

Thanks.

Steve Townsend
  • 53,498
  • 9
  • 91
  • 140
Barun
  • 1,885
  • 3
  • 27
  • 47

2 Answers2

4

Fwpuclnt.lib is the one you need - check out the reference for the functions you are using on MSDN, they tell you in the 'Requirements' section what lib exports a given API.

You need the correct SDK to use this.

Steve Townsend
  • 53,498
  • 9
  • 91
  • 140
  • Hi, thank you very much. But I have another problem as I am not a c++ programmer I dont know how to add it to my project. Would you please help me out on that. Thanks again. – Barun Nov 08 '10 at 18:26
  • See here http://stackoverflow.com/questions/1114914/add-library-to-visual-studio-2008-c-project – Steve Townsend Nov 08 '10 at 18:28
1

MSDN tells you on the bottom of every page describing a function which lib file is required. In the case of those firewall related functions it's fwpuclnt.lib.

If that still doesn't help, it'd be easier to help if you include the actual error messages.

kichik
  • 33,220
  • 7
  • 94
  • 114
  • Error 1 error LNK2019: unresolved external symbol _FwpmEngineOpen0@20 referenced in function "private: unsigned long __thiscall PacketFilter::CreateDeleteInterface(bool)" (?CreateDeleteInterface@PacketFilter@@AAEK_N@Z) PacketFilter.obj FirewallVista – Barun Nov 08 '10 at 18:29