Archive for March, 2008

1. Run your command line elevated by typing this. runel cmd 2. Did you ever try to get an elevated Windows Explorer? This command line starts Windows Explorer as a seperate and elevated process. runel explorer /separate 3. more to come…

Maybe you know this version of a folder browser dialog box that can be created by SHBrowseForFolder. For standard users or users who just put everything in one folder, is this dialog very good to use. However there are also users out there who have a deep directory structure and hate such dialogs, because you [...]

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 [...]

How to get the process of a window?

This answer is very easy – just use GetWindowThreadProcessId JWA declares it as followed: function GetWindowThreadProcessId(hWnd: HWND; lpdwProcessId: LPDWORD): DWORD; stdcall; The function returns an identifier (not a handle) and also may set lpdwProcessId to the identifier (again not a handle!) if it is not nil. Be aware that identifiers aren’t handles, so you must [...]

This little article shows you how to elevate an application using JWSCL. There are two possible ways to elevate an application : Elevate the application from the beginning Elevate special parts of your application Both ways needs a manifest to be included into your application. 1. Elevate the application from the beginning The easiest way [...]

How to get the user’s SID.

There is not much to write about how you can obtain the user’s SID.

The people from Microsoft decided that the user has to be in full control over the computer. So there is no assured way to make a program user resistant. She can always use TerminateProcess to forcibly kill the process.

Dear visitor, This page is all about the Joint Endavour of Delphi Innovators – JEDI. So what we are talking about is all about Delphi and the Windows API. There are plenty articles about C, C++, C# and Visual Basic which describes WinAPI problems everywhere over the Internet. The JEDI API Library (JWA) contains many [...]

Paypal donation (EUR)

Archives

 

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