15,902,842 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14087451 (Top 14 by date)
Member 14087451
20-Jan-20 23:49pm
View
you are right i changed ref FileInfoStruct to ref Intptr solved my problem thanks :)
Member 14087451
20-Jan-20 8:36am
View
sir iam facing problem to pinvoke c code to c#, my struct remain null, it is working properly in c but iam not getting value in c#
Member 14087451
12-Aug-19 1:46am
View
Sir that is ampersand character, GetTcpTable2 return table and its size
Member 14087451
30-May-19 9:38am
View
ok thanks sir
Member 14087451
30-May-19 1:20am
View
i have compiled in vs2015
Member 14087451
27-May-19 9:25am
View
iam getting error here
m_container = cont;
Error C3249 illegal statement or sub-expression for 'constexpr' function
Member 14087451
15-May-19 3:35am
View
sample code plz
Member 14087451
15-May-19 1:28am
View
how can i send response in multiple thread so that i can make my application more responsive
Member 14087451
15-May-19 1:24am
View
complete code is like
typedef struct
{
char *Domain;
char *Uri;
UINT32 IpAddr;
UINT32 Port;
int Direction; //0:-InBound,1:-Outbound
}PACKETINFO, *PPACKETINFO;
typedef int(CALLBACK *ProgressCallback)(PACKETINFO *info);
PPACKETINFO pinfo = { 0 };
const int ALLOW = 1;
const int BLOCK = 0;
Dowork(ProgressCallback funcaddr)
{
while(true)
{
if (!PacketsRecv(handle, packet, sizeof(packet), &packet_len, &addr))
{
fprintf(stderr, "warning: failed to read packet (%d)\n",
GetLastError());
continue;
}
//printf("Receiving packet....\n");
ParsePacket(packet, packet_len, &ip_header, NULL,
NULL, NULL, NULL, &tcp_header, NULL, &payload, &payload_len,
NULL, NULL);
if (ip_header == NULL || tcp_header == NULL || payload == NULL)
{
// Packet does not match the blacklist; simply reinject it.
if (!PacketSend(handle, packet, packet_len, NULL, &addr))
{
fprintf(stderr, "warning: failed to reinject packet (%d)\n",
GetLastError());
}
continue;
}
int response = 0;
if(funcaddr !=0 )
{
//callback send here
response = funcaddr(pinfo);
}
free(pinfo);
pinfo = NULL;
if (response == ALLOW )
{
// Packet does not match the blacklist; simply reinject it.
if (!PacketSend(handle, packet, packet_len, NULL, &addr))
{
fprintf(stderr, "warning: failed to reinject packet (%d)\n",
GetLastError());
}
continue;
}
else we block it by hijacking the
// connection.
}
}
Member 14087451
15-May-19 1:12am
View
currently iam facing the problem that user mode dll is continuously sending information to UI application which is making UI application crash, i want if we send response in different thread UI application will get more time to response to user mode dll
Member 14087451
15-May-19 1:09am
View
iam iterating on a neverending loop because this user mode dll is reading the packets send by driver application and analysis the packet and dropping the packets and re injecting according the response getting from UI application
Member 14087451
15-May-19 1:04am
View
actually this is a code of User mode dll which is getting information from driver, which it is sending it to UI and getting resonse from there, res is a response
pinfo is PACKETINFO which it is sending to UI
Member 14087451
26-Apr-19 5:47am
View
sir, as you can see the software(struct) is having intptr members which iam unable to convert into string values
Member 14087451
26-Apr-19 3:25am
View
Deleted
Thanks Sir, i know you can help me
Show More