11 Mar
Posted by: Christian Wimmer in: JEDI Windows API Headers, JEDI Windows Security Code Lib
This article is about how to retrieve the owner of a file. If you are experienced with some of the WinAPI security function this can be pretty easy. There are some problems that needs to be addressed though. The first one is the size of the security items like the SID name of the owner. [...]
In my last article “Jwscl and FreeAndNil” there were some great comments on the source design. Oliver told me to use a guarded memory page so the memory is always invalid. With his information I wrote a source code that creates a pointer which always triggers an access violation.
If you look at the MSDN documentation of CreateProcess you might notice the following remark for the lpCommandLine parameter:
The Unicode version of this function, CreateProcessW, can modify the contents of this string. Therefore, this parameter cannot be a pointer to read-only memory (such as a const variable or a literal string). If this parameter is [...]
29 Aug
Posted by: Christian Wimmer in: Common, JEDI Windows API Headers
There is an interesting article about checking the version of the operating system. If you are too lazy to read it then just remember this: Do not check it at all!
Well, I changed my mind. You should read it! So go to Yochay Kiriaty’s Article, read it and then get back her for the [...]
You want to burn a CD out of your Delphi application easily? Read on!
Recently, I found an article about some API headers of the JEDI library. The article pointed to the very old JEDI API site
which contains FTP links to the Delphi API header units.
However the FTP server is empty and so all the links are invalid.
Luckily, you can find the most recent versions in our Download Area. [...]
20 Mar
Posted by: Remko in: Common, JEDI Windows API Headers
/EDIT: I forgot to mention that he headers are included in the Jedi Apilib as JwaWdm.pas.
I’m working on a new build of TSAdminEx for which I need to query the total amount of physical memory. Locally we can use the GlobalMemoryStatusEx API but there’s no API to do this remotely. It would be possible using [...]
16 Mar
Posted by: Christian Wimmer in: JEDI Windows API Headers, JEDI Windows Security Code Lib
Recently, I’ve found a bug in JWSCL. It happened that the function GetInheritanceSourceW didn’t work for me anymore. A long time ago I used this function for the last time and now again. However the strange thing was that the function returned no error but it didn’t fill a result array with expected inheritance data. [...]
23 Feb
Posted by: Remko in: JEDI Windows API Headers, JEDI Windows Security Code Lib
A couple of days ago I finished a first beta of my tool TSAdminEx. If you don’t know what TSAdminEx is let me briefly introduce it:
TSAdminEx is a tool that combines functionality of several existing tools: it has the power of task manager combined with the details of Process Explorer and the Terminal Server support [...]
People may think that BOOL and Boolean are the same types in Delphi since they can just contain true and false. Right? Yes and No. They seem to be the same, however there is a little difference how these types are handled in an assignment. To see the difference we have to open up the [...]