Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Retrieving history of printed Files on Computer Pin
David Crow31-Jul-06 10:17
David Crow31-Jul-06 10:17 
Questionproblem wth project properties Pin
sach!!31-Jul-06 2:41
sach!!31-Jul-06 2:41 
AnswerRe: problem wth project properties Pin
Chris Losinger31-Jul-06 3:36
professionalChris Losinger31-Jul-06 3:36 
GeneralRe: problem wth project properties Pin
sach!!31-Jul-06 3:55
sach!!31-Jul-06 3:55 
GeneralRe: problem wth project properties Pin
Chris Losinger31-Jul-06 5:41
professionalChris Losinger31-Jul-06 5:41 
GeneralRe: problem wth project properties Pin
sach!!31-Jul-06 18:46
sach!!31-Jul-06 18:46 
GeneralRe: problem wth project properties Pin
Chris Losinger1-Aug-06 1:08
professionalChris Losinger1-Aug-06 1:08 
Questionpacket filtering api not blocking port Pin
_tasleem31-Jul-06 2:31
_tasleem31-Jul-06 2:31 
hi all i want to make the packet filtering application that take the port and ip adress and then block that port i m using this code.

what i want is to block http port so that any one cannot open website i m using vc6 with windows 2000. the code is given below.
if(::PfCreateInterface(0,PF_ACTION_FORWARD,PF_ACTION_FORWARD,false,true,&ihandle)==NO_ERROR)
{
BYTE ip[4]={202,165,250,50};
BYTE msk[4]={255,255,255,0};
BYTE dm[4]={0,0,0,0};
inFilter.dwFilterFlags = FD_FLAGS_NOSYN;//always this value
inFilter.dwRule = 0; //always this value
inFilter.pfatType= PF_IPV4; //using ipV4 addresses
inFilter.SrcAddr= (PBYTE)ip;
inFilter.SrcMask= (PBYTE)msk; //mask for local ip
inFilter.DstAddr= (PBYTE)dm; //any destination
inFilter.DstMask= (PBYTE)dm;
inFilter.wSrcPort=FILTER_TCPUDP_PORT_ANY;//any source port inFilter.wSrcPortHighRange=FILTER_TCPUDP_PORT_ANY;
inFilter.wDstPort=80; //destination port 80(http service)
inFilter.wDstPortHighRange=FILTER_TCPUDP_PORT_ANY;
inFilter.dwProtocol =(DWORD)FILTER_PROTO_ANY; //Tcp protocol
DWORD err;
err=::PfAddFiltersToInterface(ihandle,1,&inFilter,0,NULL,&fHandle);
if(err==NO_ERROR)
{
AfxMessageBox("Add Filters to interface");
if(::PfBindInterfaceToIPAddress(ihandle,PF_IPV4,(PBYTE)ip)==NO_ERROR)


Tasleem Arif

QuestionCListCtrl and CImageList fails to show images Pin
Gal Blank31-Jul-06 2:28
Gal Blank31-Jul-06 2:28 
AnswerRe: CListCtrl and CImageList fails to show images Pin
Hamid_RT31-Jul-06 6:38
Hamid_RT31-Jul-06 6:38 
Questionhey can't compile this sample driver... Pin
devvvy31-Jul-06 2:26
devvvy31-Jul-06 2:26 
Questionwidth change at runtime Pin
Desmo1631-Jul-06 1:22
Desmo1631-Jul-06 1:22 
AnswerRe: width change at runtime Pin
Hamid_RT31-Jul-06 1:32
Hamid_RT31-Jul-06 1:32 
AnswerRe: width change at runtime Pin
ThatsAlok31-Jul-06 3:25
ThatsAlok31-Jul-06 3:25 
GeneralRe: width change at runtime Pin
Desmo1631-Jul-06 3:51
Desmo1631-Jul-06 3:51 
GeneralRe: width change at runtime Pin
ThatsAlok31-Jul-06 4:13
ThatsAlok31-Jul-06 4:13 
QuestionC:\Documents and Settings\All Users\Application Data ?? Pin
jalsa G31-Jul-06 1:19
jalsa G31-Jul-06 1:19 
AnswerRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Naveen31-Jul-06 1:32
Naveen31-Jul-06 1:32 
GeneralRe: C:\Documents and Settings\All Users\Application Data ?? Pin
toxcct31-Jul-06 2:21
toxcct31-Jul-06 2:21 
GeneralRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Naveen31-Jul-06 3:08
Naveen31-Jul-06 3:08 
JokeRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Sarath C31-Jul-06 4:18
Sarath C31-Jul-06 4:18 
GeneralRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Naveen31-Jul-06 17:16
Naveen31-Jul-06 17:16 
AnswerRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Hamid_RT31-Jul-06 1:41
Hamid_RT31-Jul-06 1:41 
GeneralRe: C:\Documents and Settings\All Users\Application Data ?? Pin
jalsa G31-Jul-06 2:17
jalsa G31-Jul-06 2:17 
GeneralRe: C:\Documents and Settings\All Users\Application Data ?? Pin
Michael Dunn31-Jul-06 8:39
sitebuilderMichael Dunn31-Jul-06 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.