Click here to Skip to main content
13,042,166 members (69,156 online)
Rate this:
 
Please Sign up or sign in to 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 25-Jan-13 21:53pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100