Click here to Skip to main content
Sign Up to vote bad
good
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:53
Edited 25 Jan '13 - 22:05

Comments
Richard MacCutchan - 26 Jan '13 - 4:49
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
Your Filters
Interested
Ignored
     
0 Mohammed Hameed 268
1 Sergey Alexandrovich Kryukov 238
2 OriginalGriff 236
3 Mayur_Panchal 153
4 Dave Kreskowiak 125
0 Sergey Alexandrovich Kryukov 8,171
1 OriginalGriff 6,236
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 26 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid