Archive for March 19th, 2008

How to get the threads of a process?

Yesterday, I described how to get the process of a window. Today I show you how to obtain the threads of a process. There are two ways to retrieve all the threads of a foreign process. Use the Tool Help Library. There is also a sample about enumerating threads. So I am not going to [...]

Criticalsections with Delphi

Critical section is one way to protect resources against access by multiple threads. The Windows API allows you to create such sections by using the WinAPI. Find more about it here. Delphi ships with a simple class that implements a critical sections and makes them very easy to use. The following code shows everything you [...]

It is impossible to use SetThreadDesktop and the VCL at the same time because a thread can only show windows on one desktop at a time. However VCL is not written for the use with multiple threads, so there is no way to show Delphi forms of same process on two different desktops. SetThreadDesktop describes [...]

Paypal donation (EUR)

Archives

 

March 2008
M T W T F S S
« Dec   Apr »
 12
3456789
10111213141516
17181920212223
24252627282930
31