The RST can be send by any device/software which is involved in the transmission including routers between client and server. Did you capture the RST at client or server side?
You may install client and server on the same machine if possible and connect using the loopback interface. Such connections are usually not filtered by any software like firewalls. If the problem is then still there, it may be Windows 7 TCP stack specific.
Thanks for your replay. I just found out that it is server side's fault. A java coder write the server side code which sends out one byte urgent message via java API function sendUrgentData() at the end of the loop, in order to detect whether the connect is open( this is a really bad method to do the detection).
I asked he comment out this statement, than my code work fine!!
It turns out it is the win7 network stack that sends out RST packet in response to seeing frequent urgent packet. I guess it is a new self-protection reaction introduced in win7. The same phenomenon is never observed in xp or linux.
I'm working in pretty unfamiliar terrain, so I apologise if this is the wrong place to ask this question or if the question is wrong.
I'm trying to write code that acts on events in Microsoft software. I've worked out how to do this for generic Windows hooks like for keyboard entries, but can't work out how to do it for Office events (e.g., saving or printing a document).
Can anyone point me to a reference of hooks available in Office?
Please could you recommend a good book about programming for Windows 8.1 in Visual C++ which:-
* Lists all the Windows API functions and what they do and how to call them, including the difference between 1-byte and 2-byte characters.
* Says what a device-context etc is, and likewise all the technicalities of programming for Windows API.
There is no book that lists all of the Windows API functions. It would be way too thick. The only place that haas that information is MSDN.
As for "how to call all of them", you learn how to pass the various kinds of parameters then apply that knowledge to any API call you want. You will not find a "how to call this function" for every function in the API library.
But, for a book, there's these[^]. You will probably not find all the information you want in a single book.
The main core of Windows is spread out among three DLLs -- for 32 bit Windows, they are called kernel32.dll, user32.dll and gdi32.dll.
You are likely wanting to use them in a managed manner and those DLLs -- by default do not provide an unmanaged to managed interface, so -- you have a lot to learn -- not only about these three DLLs, but also about managed and unmanaged memory.
You have selected a very challenging task, but -- the Windows SDK is a great source for studying the componetry of Windows and .NET documentation will help some.
There is a website pinvoke.net that is a wiki about Interop -- the way to manage an unmanaged to managed application.
To ease the process -- I suggest that you procure an older version of Windows and first learn those DLLs in an unmanaged manner. XP is good for that.
If the screen window displays text, if the vertical bar's thumb is moved down a bit, so that the text on the window must be displayed n pixels higher, then it is quickest to scroll the window's existing contents up by n pixels, then I must rewrite only the bottom n rows of pixels. So please how, in a given screen area, to move every pixel upwards by n pixels?
I guess you are looking for an USB sniffer that is monitoring and logging data.
With Linux, you can use usbmon which is part of the kernel and Wireshark[^].
With Windows there are multiple commercial tools and some free (e.g. usbsnoop[^]). Just google for 'windows usb sniffer'. The Windows Wireshark version can also sniff USB traffic when installing an additional tool like USBPcap (see the above link).
Last Visit: 31-Dec-99 18:00 Last Update: 27-Aug-14 22:26