Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
if ((dwLastErrorCode = PfCreateInterface(
      1, 
      PF_ACTION_FORWARD, 
      PF_ACTION_FORWARD, 
      FALSE,
      TRUE,
      &hInterface )) != NO_ERROR) 
 {

      return ; (<<-- stop here)

 }


Hi,

I tried compiling as noted above to block or allow the packets on Win7-64bit .
But It does stop with no error .

Any ideas on how to solve it ?

Kindly help me.
Posted
Updated 25-Jan-13 22:05pm
v2
Comments
Richard MacCutchan 26-Jan-13 4:49am    
Check the value of dwLastErrorCode before executing the return statement.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900