Click here to Skip to main content
12,077,753 members (49,332 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows 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 22:53pm
Edited 25-Jan-13 23: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
Web03 | 2.8.160212.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2016
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