Some functions (like ExitWindowsEx) need a privilege (SE_SHUTDOWN_NAME) to be enabled to work properly. With the help of JWSCL this task is made very easy. JWSCL provides several ways to enable and disable privileges. Use the methods of TJwSecurityToken Use the function JWEnablePrivilege Use the interface IJwPrivilegeScope

Today I want to introduce a really useful application from the examples in JEDI Windows Security Code Library. In Windows Vista there is no possible way to run a program elevated from the command line. But today there is a cure. I call it RunEl, which stands for Run Elevated. This simple program uses Delphi, [...]

What is a SID?

SID is the short form of Security Identifier. It is used to uniquely name a user (like Alice or Bob), a group (like Users or Administrators) or a system account (like SYSTEM or Network Service). Important to understand is that not only human users get a SID but also system parts like the System or [...]

Many developers know that mysterious parameter some WinAPI function offer to use. What I am talking about is a parameter called lpSecurityAttributes. The documentation states that it allows to change the security descriptor of the desired element. The most known function is CreateFile which I want to use here. It allows to create a file [...]

Get the Windows Vista twin token

Windows Vista contains a new feature that allows an administrator to work with less privileges. Every time a user who belongs to the administrator group logs on, the LogonUser API creates two tokens. One tokens contains the real power of the user and the second contains only restricted access. We call such a token restricted [...]

Remko creates this fabolous application to see all the Terminal Server things we usually miss. This program does use the JWAPI and JWSCL. Find out more here.

How to setup JWSCL?

The JWSCL does only need a minor setup. You need to create a binary unit file (DCU-file) for the JEDI API Headers as described here. You must setup JEDI API first before you can start with JWSCL! Otherwise if you set Delphi source path to include JwaWindows.pas you’ll get an error like: Incompatible types: JwaWindows.XXX [...]

Online documentation

The documentation of JWSCL is available online. JWSCL Online documentation We will update it from time to time. This may lead to different features between the release packages and the Subversion repository.

JWSCL Release Revision 316

The JEDI Windows Security Code Library Release of Revision 316 is now available to download on Sourceforge. Direct link ~8.5 MiB Also read this and find out how to setup the library! The JWSCL Download also contains the JWAPI Revision 315. Changes: many bugfixes added AuthZ API added Terminal Service API added more examples added extended [...]

Vista: integrity label

I just found this complete example project. It shows how to get the integrity label of a file/folder in Windows Vista. Get Vista integrity label source.

Paypal donation (EUR)

Archives

 

May 2012
M T W T F S S
« Oct    
 123456
78910111213
14151617181920
21222324252627
28293031