Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Win7
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
Edited 25-Jan-13 22:05pm
(no name)17.5K
v2
Comments
Richard MacCutchan at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.141022.2 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2014
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