Hi please help
i think your winpkfilter is work well but Can we use it in windows application? because your example are console applications
and when i try to use it in windows application, the other application that try to broadcast windows message will not respond until i close win app that use winpkfilter. if it can’t use with win app , please tell me how console app trap the windows message because i want to send WM_CLOSE to it.
i think your winpkfilter can work on GUI app but problem is the example code of winpkfilter. i try copy two example code (passthru and packetsniffer) to GUI app and problem still occure when other application try call SendMessage or GetMessage for broadcast windows message. so the other application will not respond because SendMessage and GetMessage wait for return message from process and i think the problem are few line of code (i use delphi )
while counter <> 0 do begin
WaitForSingleObject ( hEvent,INFINITE);
while (ReadPacket (hFilt, @ReadRequest) <> 0) do begin
i think because we use 2 while loop and WaitForSingleObject. if we don’t exit 2 while loop, the app can’t process any win message and also WaitForSingleObject , Can WaitForSingleObject not use INFINITE? or Can we use other method instead WaitForSingleObject?